May 2018
Intermediate to advanced
554 pages
13h 51m
English
Kubernetes supports creating a Secret with a single command line, as well:
// create a Secret via plain text in command line# kubectl create secret generic access-token --from-literal=2-7-1_access-token=9S\!g0U61699rsecret "access-token" created
Then we can use the get secret command to check if they're identical to the previous method:
// check the details of a Secret# kubectl get secret access-token -o yamlapiVersion: v1data: 2-7-1_access-token: OVMhZzBVNjE2OTlyCg==kind: Secretmetadata: creationTimestamp: 2018-01-01T21:44:32Z name: access-token ...type: Opaque
Read now
Unlock full access