Difference between revisions of "Secret.yml"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 25: Line 25:
  
 
== See also ==
 
== See also ==
* [[secrets]]
+
* {{secrets}}
  
  
 
[[Category:Kubernetes]]
 
[[Category:Kubernetes]]

Revision as of 11:58, 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: