Complete the command to encode the string 'password' to base64.
echo -n 'password' | [1]
The base64 command encodes data to base64 format, which is required for Kubernetes Secrets.
Complete the YAML snippet to define a Kubernetes Secret with base64 encoded data.
apiVersion: v1
kind: Secret
metadata:
name: mysecret
data:
password: [1]The value for password must be base64 encoded. 'cGFzc3dvcmQ=' is the base64 encoding of 'password'.
Fix the error in the command to decode a base64 encoded secret value.
echo 'cGFzc3dvcmQ=' | [1]
The -d flag tells base64 to decode the input back to plain text.
Fill both blanks to create a Kubernetes Secret YAML with a base64 encoded username and password.
apiVersion: v1 kind: Secret metadata: name: usersecret data: username: [1] password: [2]
The username 'user' encoded in base64 is 'dXNlcg==', and the password 'password' encoded is 'cGFzc3dvcmQ='.
Fill all three blanks to create a Kubernetes Secret YAML with base64 encoded keys and values.
apiVersion: v1 kind: Secret metadata: name: appsecret data: apiKey: [1] token: [2] env: [3]
'apikey123' encoded is 'YXBpS2V5MTIz', 'tokenValue' encoded is 'dG9rZW5WYWx1ZQ==', and 'production' encoded is 'cHJvZHVjdGlvbg=='.