Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 414 Bytes

20.Secrets.md

File metadata and controls

24 lines (15 loc) · 414 Bytes
kubectl get secret

kubectl describe secret secret-test

kubectl create secret --help

kubectl create secret generic --help

kubectl create secret generic --from-literal DB_Host=sql01 --from-literal DB_User=root --from-literal DB_Password=password123 db-secret





spec:
  containers:
  - image: kodekloud/simple-webapp-mysql
    ...
    name: webapp
    envFrom:
    - secretRef:
        name: db-secret