Hands-on task
Secret with data
Prepare in /root/secret.yaml a Secret db-cred (type Opaque) with the key password=s3cret. It's easiest to generate it with a kubectl command using --dry-run=client -o yaml. Note: kubectl will base64-encode the value itself — that's how secrets are stored in the cluster. Open the resulting file in the Editor tab and find the encoded value.
- kubernetes
- secret
- kubectl
- base64
- dry-run