How to create a docker registry secret without passing the password on the command line?
It is possible to create a secret without passing on the commandline by reading it from file:


$ kubectl create secret generic ssh-key-secret \
  --from-file=ssh-privatekey=/path/to/.ssh/id_rsa \
  --from-file=ssh-publickey=/path/to/.ssh/id_rsa.pub



See https://kubernetes.io/docs/concepts/configuration/secret/ for more information.