Difference between revisions of "Secret.yml"
Jump to navigation
Jump to search
Line 20: | Line 20: | ||
Create secret: | Create secret: | ||
− | * <code>[[kubectl apply | + | * <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
- Kubernetes secrets:
kubectl [ get | create | describe | delete | secret ] secrets
,secret.yml, kind: Secret, secretKeyRef, default-token, imagePullSecrets:, kubernetes.io/dockerconfigjson
Advertising: