Creating Docker Store secret
The syntax is thus: -
kubectl create secret docker-registry
So off I went ....
The first hurdle was that my Docker password has special characters, including an ampersand ( & ), which broke the kubectl command; shells tend NOT to like ampersands in commands :-)
That was easily resolved - I just wrapped my password in double quotes ( " ), which resolved THAT particular issue.
I was using a randomly generated secret name, for no particular reason: -
I then hit this: -
The Secret "DitYPtiansUP" is invalid: metadata.name: Invalid value: "DitYPtiansUP": a DNS-1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')
- separated with a hyphen ( - ) or full stop / period ( . )