/
KUBECTL
Search
Notion
KUBECTL
To generate a base64-encoded secret, containing .yml file:
kubectl create secret generic secretName -n namespaceName \ --from-file=./source.yml --dry-run -o yaml > ./secret.yml
Bash