Hi Guys,
I have my pod in minikube cluster. I used the concept of secret key for username and password. For that I have created one yml file as given below.
apiVersion: v1
kind: Secret
metadata:
name: secret
data:
rootpass: abc
userpass: abc
But it gave me the below error, when I tried to create this file.
$ kubectl create -f secret.yml
Error from server (BadRequest): error when creating "secret.yml": Secret in version "v1" cannot be handled as a Secret: v1.Secret.Data: decode base64: illegal base64 data at input byte 0, error found in #10 byte of ...|ass":"abc","userpass|..., bigger context ...|{"apiVersion":"v1","data":{"rootpass":"abc","userpass":"abc"},"kind":"Secret","metadata":{"na|..