knative / docs

User documentation for Knative components.
https://knative.dev/docs/
Other
4.54k stars 1.23k forks source link

domain-mapping `CrashLoopBackOff` use yaml to deploy knative #5784

Closed lou-lan closed 11 months ago

lou-lan commented 11 months ago

Expected Behavior

All pods to Running.

kubectl get pods
NAME                                      READY   STATUS             RESTARTS        AGE
...
domain-mapping-7b87f895b6-k7z66           1/1     Running   11 (3m8s ago)   22m
...

Actual Behavior

kubectl get pods
NAME                                      READY   STATUS             RESTARTS        AGE
activator-558c6cd86f-kk6ws                1/1     Running            1 (3h18m ago)   3h22m
autoscaler-74d5fff59f-q7xrb               1/1     Running            2 (4h5m ago)    4h13m
controller-67c76797fd-b6bvl               1/1     Running            4 (4h5m ago)    4h13m
domain-mapping-7b87f895b6-k7z66           0/1     CrashLoopBackOff   11 (3m8s ago)   22m
domainmapping-webhook-54cddcb594-mlsjc    1/1     Running            3 (4h3m ago)    4h26m
net-kourier-controller-767c959785-qw2mr   1/1     Running            0               3h34m
webhook-676958d654-mddjx                  1/1     Running            3 (4h3m ago)    4h13m
E1204 06:32:08.495345       1 reflector.go:140] k8s.io/client-go@v0.25.4/tools/cache/reflector.go:169: Failed to watch *v1alpha1.DomainMapping: failed to list *v1alpha1.DomainMapping: the server could not find the requested resource (get domainmappings.serving.knative.dev)
W1204 06:32:15.617913       1 reflector.go:424] k8s.io/client-go@v0.25.4/tools/cache/reflector.go:169: failed to list *v1alpha1.DomainMapping: the server could not find the requested resource (get domainmappings.serving.knative.dev)

Steps to Reproduce the Problem

  1. kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.12.2/serving-crds.yaml
  2. kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.12.2/serving-core.yaml
  3. kubectl get pods

Additional Info

Additional context

kubectl get crd domainmappings.serving.knative.dev
NAME                                 CREATED AT
domainmappings.serving.knative.dev   2023-12-04T03:25:50Z

kubectl get domainmappings.serving.knative.dev -A
No resources found

I have observed that the kubectl command is using v1beta1/domainmappings, while the pod domain-mapping is requesting v1alpha1/domainmappings.

Install information:

lou-lan commented 11 months ago

When I tried again, I found that I wouldn't create domain-mapping deployment again. Did it happen that the file serving-core.yaml was updated?

ReToCode commented 11 months ago

The domain-mapping deployment no longer exists, it was integrated with the existing Serving controller in 1.11: https://github.com/knative/serving/releases/tag/knative-v1.11.0.

Make sure to remove old resources when you install a new version. With the YAML installation method, it is not possible to do this automatically.

lou-lan commented 11 months ago

The domain-mapping deployment no longer exists, it was integrated with the existing Serving controller in 1.11: https://github.com/knative/serving/releases/tag/knative-v1.11.0.

Make sure to remove old resources when you install a new version. With the YAML installation method, it is not possible to do this automatically.

Thanks