Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Deployment "flagger" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app":"flagger", "app.kubernetes.io/instance":"flagger", "app.kubernetes.io/name":"flagger"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable #683

Closed
zzguang520 opened this issue Sep 1, 2020 · 1 comment

Comments

@zzguang520
Copy link

have error when install Flagger using Kustomize reference: https://docs.flagger.app/tutorials/istio-progressive-delivery

[root@~]# kubectl apply -k github.com/weaveworks/flagger//kustomize/istio
customresourcedefinition.apiextensions.k8s.io/alertproviders.flagger.app unchanged
customresourcedefinition.apiextensions.k8s.io/canaries.flagger.app unchanged
customresourcedefinition.apiextensions.k8s.io/metrictemplates.flagger.app unchanged
serviceaccount/flagger unchanged
clusterrole.rbac.authorization.k8s.io/flagger unchanged
clusterrolebinding.rbac.authorization.k8s.io/flagger unchanged
Warning: kubectl apply should be used on resource created by either kubectl create --save-config or kubectl apply
The Deployment "flagger" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app":"flagger", "app.kubernetes.io/instance":"flagger", "app.kubernetes.io/name":"flagger"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable
@stefanprodan
Copy link
Member

stefanprodan commented Dec 21, 2020

Delete the old deployment are rerun the kubectl command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants