Difference between revisions of "Kubectl create secret"

From wikieduonline
Jump to navigation Jump to search
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
 +
https://jamesdefabia.github.io/docs/user-guide/kubectl/kubectl_create_secret_generic/
 +
 
* <code>[[kubectl create]] secret</code>
 
* <code>[[kubectl create]] secret</code>
* <code>[[kubectl create secret generic -h]]</code>
+
* <code>[[kubectl create secret generic]] [[kubectl create secret generi -h|-h]]</code>
 +
* <code>[[kubectl create secret docker-registry]]</code>
 +
* <code>[[kubectl create secret docker-registry -h]]</code>
 +
* <code>[[kubectl create secret tls]]</code>
 +
* <code>[[kubectl create secret tls -h]]</code>
 
** https://kubernetes.io/docs/tasks/configmap-secret/managing-secret-using-kubectl/
 
** https://kubernetes.io/docs/tasks/configmap-secret/managing-secret-using-kubectl/
 +
* <code>[[kubectl create secret --help]]</code>
 +
 +
[[kubectl create secret generic]] regcred --from-file=.dockerconfigjson=<path/to/.docker/config.json> --type=[[kubernetes.io/dockerconfigjson]] <ref>https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/#registry-secret-existing-credentials</ref>
  
kubectl create secret --help
 
Create a secret using specified subcommand.
 
 
Available Commands:
 
  docker-registry  Create a secret for use with a Docker registry
 
  generic          Create a secret from a local file, directory, or literal value
 
  tls              Create a TLS secret
 
 
Usage:
 
  kubectl create secret [flags] [options]
 
 
Use "kubectl <command> --help" for more information about a given command.
 
Use "kubectl options" for a list of global command-line options (applies to all commands).
 
  
 
   
 
   
== Related commands ==
+
== Related ==
 
* <code>[[kubectl get secrets]]</code>
 
* <code>[[kubectl get secrets]]</code>
 
* <code>[[kubectl describe]] secrets/MY_SECRET_NAME</code>
 
* <code>[[kubectl describe]] secrets/MY_SECRET_NAME</code>
 
* <code>[[secret.yml]]</code>
 
* <code>[[secret.yml]]</code>
 +
* <code>[[ansible-vault encrypt]]</code>
 +
* <code>[[kubectl apply -f ./secret.yaml]]</code>
 +
* Lowercase [[RFC 1123]]
  
 
== Activities ==
 
== Activities ==
* [[CKAD:Create & consume Secrets]]
+
* [[CKA v1.15: Create & consume Secrets]]
  
 
== See also ==
 
== See also ==
* {{secrets}}
+
* {{kubectl create secret}}
 
* {{Kubernetes secrets}}  
 
* {{Kubernetes secrets}}  
 
  
 
[[Category:Kubernetes]]
 
[[Category:Kubernetes]]
 +
[[Category:Secrets]]

Latest revision as of 05:29, 18 July 2024

Advertising: