skip to Main Content

Nginx – How to pass environment variables to kubectl create deployment command?

How to pass environment variables to kubectl create deployment command? I'm trying to pass environment variable to kubectl create deployment command with below syntax kubectl create deployment nginx-deployment --replicas=2 --env="HOSTNAME=dev.example.com" --env="KEY=randomkey1456" --env="PORT_NUMBER=5601" --image=nginx It's throwing below error message saying --env…

VIEW QUESTION

Hetzler LB, cert-manager, nginx-ingress example

I installed kubernetes in Hetner based on the repository. I am using godaddy as DNS management I have install cert manager in the cluster. I took it from here. kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.12.0/cert-manager.yaml Load balancer: apiVersion: v1 kind: Service metadata:…

VIEW QUESTION
Back To Top
Search