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