'How can I pass in command line arguments with Kubernetes Deployment?
I am trying to figure out how to simulate passing in command line arguments, that would usually be passed in when running a Docker image. I'm using Kubernetes Deployment, and have successfully deployed my container, and it is running.
I want to replicate the functionality of passing in: --basicAuth.username=myusername --basicAuth.password=mypassword as part of a LHCI image.
I'm using Terraform, and the kubernetes_deployment resource. So far, I've tried using the args attribute, but I haven't been able to get this working:
args = [
- basicAuth.username,
- myusername,
- basicAuth.password,
- $(basicAuthPassword)
]
where basicAuthPassword is a container secret variable that I am specifing within the resource.
Any help on this would be greatly appreciated!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
