Difference between revisions of "Kubectl create secret generic"

From wikieduonline
Jump to navigation Jump to search
Line 13: Line 13:
 
  [[kubectl create secret]] generic your-secret-name -f /var/tmp/your-secret-definition.yml
 
  [[kubectl create secret]] generic your-secret-name -f /var/tmp/your-secret-definition.yml
 
  secret/your-secret-name created
 
  secret/your-secret-name created
 +
 +
kubectl create secret generic [[cronitor]]-secret
 +
    -n <namespace>
 +
    --from-literal=CRONITOR_API_KEY=XXXXXXXXXXX
  
 
== Related ==
 
== Related ==

Revision as of 19:09, 18 November 2023

kubectl create secret generic
kubectl create secret generic -h
kubectl create secret generic yoursecret
secret/yoursecret created
kubectl create secret generic
error: exactly one NAME is required, got 0
See 'kubectl create secret generic -h' for help and examples
kubectl create secret generic your-secret-name -f /var/tmp/your-secret-definition.yml
secret/your-secret-name created
kubectl create secret generic cronitor-secret
   -n <namespace>
   --from-literal=CRONITOR_API_KEY=XXXXXXXXXXX

Related

See also

Advertising: