Difference between revisions of "Secret.yml"

From wikieduonline
Jump to navigation Jump to search
Line 20: Line 20:
  
 
Create secret:
 
Create secret:
* <code>[[kubectl apply]] -f secret.yml</code>
+
* <code>[[kubectl apply -f secret.yml]]</code>
  
 
== Related commands ==
 
== Related commands ==

Revision as of 10:40, 26 August 2022

apiVersion: v1
kind: Secret
metadata:
  name: mysecret
type: Opaque
data:
  username: YWRtaW4=
  password: MWYyZDFlMmU2N2Rm
apiVersion: v1
kind: Secret
metadata:
  name: mysecret
  namespace: mynamespace
type: Opaque
data:
  username: YWRtaW4=
  password: MWYyZDFlMmU2N2Rm

Create secret:

Related commands

See also

Advertising: