Difference between revisions of "Secret.yml"

From wikieduonline
Jump to navigation Jump to search
m (Welcome moved page Secret.yaml to Secret.yml)
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 18: Line 18:
  
 
<code>[[kubectl apply]] -f secret.yml</code>
 
<code>[[kubectl apply]] -f secret.yml</code>
 +
 +
== Related commands ==
 +
* <code>[[kubectl create secret]]</code>
  
  

Revision as of 11:56, 19 April 2020

echo -n 'admin' | base64
YWRtaW4=
echo -n '1f2d1e2e67df' | base64
MWYyZDFlMmU2N2Rm
Write a Secret that looks like this:
apiVersion: v1
kind: Secret
metadata:
  name: mysecret
type: Opaque
data:
  username: YWRtaW4=
  password: MWYyZDFlMmU2N2Rm


kubectl apply -f secret.yml

Related commands


See also

Advertising: