kubectl patch deployment command returns "no change" message
search cancel

kubectl patch deployment command returns "no change" message

book

Article ID: 267494

calendar_today

Updated On:

Products

VIP Authentication Hub

Issue/Introduction

 

When running VIP AuthHub in Google Cloud, and running the command:

# kubectl patch deployment -n ingress ingress-nginx-controller -p '{"spec": {"replicas": 2}}'

to update the ingress pod to set a replica, the command return message:

"deployment.apps/ingress-nginx-controller patched (no change)

It seems to have no effect.

When running the same command to upgrade the Vanity Nginx, it doesn't return a "no change" message.

This happens for the Nginx for the admin services, which has no replica yet.

 

Resolution

 

Run command:

# kubectl edit deployment ingress-nginx-controller -n ingress

and manually change "replicas: 2"