Sergio
CCoder.com
•Created by Sergio on 10/24/2024 in #help
Specifying command for running coder-based deployment
Hi there.
I'm going to create python-based service for kubernetes using coder. I created template with deployment and specified the following parameters:
resource "coder_agent" "main" {
...
startup_script = "pip install requests"
...
}
resource "kubernetes_deployment" "main" {
...
args = ["sh", "-c", "bash ${coder_agent.main.init_script}"]
...
}
I need some place to specify command for run my code. For example
python web-server.py
What is the best place for it?
12 replies