I am using kubernetes imperative way instead of declarative. As there are many parameters changing regularly and can't update the yaml file every time.
For creating a deployment, we use this
kubectl create deployment nginx --image=nginx:1.7.1
This is fine for public images. But for provate images, we need to pass credentials data using secrets.As in link If it is yaml file, we keep in the file below line.
imagePullSecrets:
- name: regcred
But, how to pass this data for below type of line.?
kubectl create deployment nginx --image=nginx:1.7.1