You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 19, 2022. It is now read-only.
Service label is app: pytorch-operator, while selector is name: pytorch-operator. Deployment spec label and selector are both name: pytorch-operator.
In such a case, both the service and deployment have been deployed via kubectl create -f manifests/base. Then we want to update the operator image, but now we need to run kubectl apply -k manifests/overlays/latest. kustomize will add all the labels of service to selector, as shown below:
Service label is
app: pytorch-operator
, while selector isname: pytorch-operator
. Deployment spec label and selector are bothname: pytorch-operator
.In such a case, both the service and deployment have been deployed via
kubectl create -f manifests/base
. Then we want to update the operator image, but now we need to runkubectl apply -k manifests/overlays/latest
.kustomize
will add all the labels of service to selector, as shown below:Then the following error occurs:
Better to match service labels with selectors and deployment's labels and selectors.
The text was updated successfully, but these errors were encountered: