May 2018
Intermediate to advanced
554 pages
13h 51m
English
A Secret can also be created directly through the configuration file; however, you'll have to encode the Secret manually. Just use the kind of Secret:
// encode Secret manually# echo '9S!g0U61699r' | base64OVMhZzBVNjE2OTlyCg==// create a Secret via configuration file, put encoded Secret into the file# cat 2-7-1_secret.yamlapiVersion: v1kind: Secretmetadata: name: access-tokentype: Opaquedata: 2-7-1_access-token: OVMhZzBVNjE2OTlyCg==// create the resource# kubectl create -f 2-7-1_secret.yamlsecret "access-token" created
Read now
Unlock full access