I want to pass arguments to Kubernetes deployment when I use kubectl command to apply the deployment file.
Example: In my deployment .yaml, I have arguments as below and I want to pass the argument values when I run with the kubectl apply - f <my-deployment>.yaml
So, in the below example, I want to override the args - userid and role when I run the above kubectl command.
spec:
containers:
- name: testimage
image: <my image name>:<tag>
args:
- --userid=testuser
- --role=manager