I am trying to create a docker-registry secrete for GCR, but am getting a really cryptic error message. This is the kubectl cmd that I am running:
kubectl create secret docker-registry gcrsecret --docker-username=_json_key --docker-password=”$(cat wk-test-1-b3c9659d9a07.json)” --docker-server=https://gcr.io [email protected]
But it is erroring out with the following error message:
error: exactly one NAME is required, got 26
Any thoughts? I am not seeing anything obvious in the documentation.
It seems that you are using ”
(Unicode RIGHT DOUBLE QUOTATION MARK) instead of "
(ASCII 0x22), which is confusing your shell.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With