Difference between revisions of "Kubernetes secrets"

From wikieduonline
Jump to navigation Jump to search
 
(18 intermediate revisions by 2 users not shown)
Line 1: Line 1:
* https://kubernetes.io/docs/concepts/configuration/secret/
+
https://kubernetes.io/docs/concepts/configuration/secret/
  
 +
* <code>[[kind: Secret]]</code>
 +
 +
Kubernetes Secret Types:
 +
{{secret types TOC}}
  
 
== Examples ==
 
== Examples ==
Line 12: Line 16:
 
* <code>[[kubectl get secret]]</code>
 
* <code>[[kubectl get secret]]</code>
 
* <code>[[kubectl get secrets]]</code>
 
* <code>[[kubectl get secrets]]</code>
* <code>[[kubectl describe]] secrets/MY_SECRET_NAME</code>
+
* <code>[[kubectl get secrets -A]]</code>
 +
* <code>[[kubectl describe secrets]]/MY_SECRET_NAME</code>
 
* <code>[[kubectl apply]] -f ./[[secret.yml]]</code>
 
* <code>[[kubectl apply]] -f ./[[secret.yml]]</code>
 
* <code>[[kubectl apply]] -k</code>
 
* <code>[[kubectl apply]] -k</code>
 
* <code>[[kubectl edit secrets]]</code>
 
* <code>[[kubectl edit secrets]]</code>
 
* <code>[[kubectl describe secret]] -n [[kubernetes-dashboard]]</code>
 
* <code>[[kubectl describe secret]] -n [[kubernetes-dashboard]]</code>
 +
* <code>[[kubectl describe secret default-token]]</code>
  
 
== Related terms ==
 
== Related terms ==
Line 24: Line 30:
 
* <code>[[ConfigMaps]]</code>
 
* <code>[[ConfigMaps]]</code>
 
* <code>[[secret not found]]</code>
 
* <code>[[secret not found]]</code>
* <code>[[kind: Secret]]</code>
 
 
* [[Kustomize]]
 
* [[Kustomize]]
 
* <code>[[base64 --decode]]; echo</code>
 
* <code>[[base64 --decode]]; echo</code>
 
* <code>[[SecretKeyRef]]</code>
 
* <code>[[SecretKeyRef]]</code>
 
* <code>[[type: Opaque]]</code>
 
* <code>[[type: Opaque]]</code>
 +
* [[SOPS: Secrets OPerationS]]: <code>[[sops]]</code>
 +
* [[Kubernetes HostPath volume provider]]
 +
* [[1password Kubernetes Injector]]
 +
* [[secret:]]
  
 
== Activities ==
 
== Activities ==
 
* [[Delete and recreate your secret]]
 
* [[Delete and recreate your secret]]
 +
* Learn about different <code>[[kind: Secret]]</code> types.
 +
* Read https://poweruser.blog/how-to-encrypt-secrets-in-config-files-1dbb794f7352
 +
* [[Distribute Credentials Securely Using Secrets]]
 +
* [[Pull an Image from a Private Registry in Kubernetes]]
  
 
== News ==
 
== News ==

Latest revision as of 10:59, 15 October 2024

https://kubernetes.io/docs/concepts/configuration/secret/

Kubernetes Secret Types:

Opaque	                                 arbitrary user-defined data
kubernetes.io/service-account-token	ServiceAccount token
kubernetes.io/dockercfg	                serialized ~/.dockercfg file
kubernetes.io/dockerconfigjson	        serialized ~/.docker/config.json file
kubernetes.io/basic-auth	        credentials for basic authentication
kubernetes.io/ssh-auth	                credentials for SSH authentication
kubernetes.io/tls	                data for a TLS client or server
bootstrap.kubernetes.io/token	        bootstrap token data
istio.io/key-and-cert

Examples[edit]


Related terms[edit]

Activities[edit]

News[edit]

See also[edit]

Advertising: