Coder.comC
Coder.com16mo ago
10 replies
Karan

How to push templates to Kubernetes Coder from GitLab CI/CD?

Hi all,

I am trying to push my Terraform templates to my self-hosted Coder running in Kuberentes. I followed this guide: https://coder.com/docs/admin/templates/managing-templates/change-management#coder-cli

This is the error I am getting:
Encountered an error running "coder templates push", see "coder templates push --help" for more information
error: get organizations: Get "https://coder.my-env.my-org.com/api/v2/users/me/organizations": dial tcp: lookup coder.my-env.my-org.com on XXX.XXX.1XX.XXX:XX: no such host


I am using this command:
coder templates push --yes ${TEMPLATE_NAME} --directory ${TEMPLATE_DIR}


I appreciate this may be more of a GitLab than Coder question, but I was wondering whether someone else has accomplished something similar?

To allow GitLab to connect to my Kuberentes cluster, I set up an agent in my Kubernetes cluster: https://docs.gitlab.com/ee/user/clusters/agent/install/index.html

Could anyone point me in the wrong direction? Any help would be much appreciated!
Learn about template change management and versioning
Change Management - Coder Docs
Preview image
Was this page helpful?