Secret.yml

From wikieduonline
Revision as of 11:52, 19 April 2020 by Welcome (talk | contribs)
Jump to navigation Jump to search
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


See also

Advertising: