“Anotação do patch kubectl” Respostas de código

Anotação do patch kubectl

#much easier for me was to annotate rather than patch:

kubectl annotate ingress mying kubernetes.io/ingress.class=value --dry-run=client -o yaml
kubectl annotate ingress mying kubernetes.io/ingress.class=value

#add --dry-run -o yaml flags if you want to test it before applying the change.
DreamCoder

Anotação do patch kubectl

#Replace the forward slash (/) in kubernetes.io/ingress.class with ~1.
#Your command should look like this,

$ kubectl patch ingress mying --type='json' -p='[{"op": "add", "path": "/metadata/annotations/kubernetes.io~1ingress.class", "value":"nginx"}]'
#Reference: RFC 6901 https://www.rfc-editor.org/rfc/rfc6901#section-3
DreamCoder

Respostas semelhantes a “Anotação do patch kubectl”

Perguntas semelhantes a “Anotação do patch kubectl”

Procure respostas de código populares por idioma

Procurar outros idiomas de código