Difference between revisions of "Secret.yml"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
(17 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{lc}} | |
− | + | [[apiVersion]]: v1 | |
− | + | [[kind: Secret]] | |
− | + | metadata: | |
− | + | name: mysecret | |
− | + | type: [[Opaque]] | |
− | + | data: | |
+ | username: YWRtaW4= | ||
+ | password: MWYyZDFlMmU2N2Rm | ||
apiVersion: v1 | apiVersion: v1 | ||
− | + | kind: Secret | |
metadata: | metadata: | ||
name: mysecret | name: mysecret | ||
+ | namespace: mynamespace | ||
type: Opaque | type: Opaque | ||
data: | data: | ||
Line 16: | Line 19: | ||
password: MWYyZDFlMmU2N2Rm | password: MWYyZDFlMmU2N2Rm | ||
+ | Create secret: | ||
+ | * <code>[[kubectl apply -f secret.yml]]</code> | ||
− | <code>[[kubectl | + | == Related commands == |
− | + | * <code>[[kubectl create secret]]</code> | |
− | + | * <code>[[kubectl apply -f ./secret.yaml]]</code> | |
+ | * [[Helm]] [[redis]] [[redis/templates/secret.yaml]] | ||
== See also == | == See also == | ||
− | * | + | * {{Kubernetes secrets}} |
− | |||
[[Category:Kubernetes]] | [[Category:Kubernetes]] |
Latest revision as of 07:21, 10 March 2023
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[edit]
See also[edit]
- Kubernetes secrets:
kubectl [ get | create | describe | delete | secret ] secrets
,secret.yml, kind: Secret, secretKeyRef, default-token, imagePullSecrets:, kubernetes.io/dockerconfigjson
Advertising: