Karan
Karan
CCoder.com
Created by Karan on 10/10/2024 in #help
How to push templates to Kubernetes Coder from GitLab CI/CD?
No description
11 replies
CCoder.com
Created by Karan on 10/10/2024 in #help
How to push templates to Kubernetes Coder from GitLab CI/CD?
No description
11 replies
CCoder.com
Created by Karan on 10/10/2024 in #help
How to push templates to Kubernetes Coder from GitLab CI/CD?
Thanks, Atif.
Could you try to get your org name or uuid for the default org with https://${CODER_URL}/api/v2/organizations
I have tried this:
# Example request using curl
curl -X GET https://coder.myenv.myorg.com/api/v2/organizations \
-H 'Accept: application/json' \
-H 'Coder-Session-Token: redacted'
# Example request using curl
curl -X GET https://coder.myenv.myorg.com/api/v2/organizations \
-H 'Accept: application/json' \
-H 'Coder-Session-Token: redacted'
But I don't get back a 405. It looks like it's expecting POST instead of GET I am looking at this endpoint section in your API reference: https://coder.com/docs/reference/api/organizations#code-samples-2
11 replies
CCoder.com
Created by Karan on 10/10/2024 in #help
How to push templates to Kubernetes Coder from GitLab CI/CD?
Hi all, We are running Coder self-hosted in our Kubernetes cluster. I would like to push templates from GitLab CI/CD to Coder: https://coder.com/docs/admin/templates/managing-templates/change-management#coder-cli. I followed this approach using the Coder CLI where I am using an API token. This is the error message I'm seeing:
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.XXX.XXX:XX: no such host
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.XXX.XXX:XX: no such host
I set up my GitLab (using gitlab.com, not self-hosted) to talk to Kubernetes via an agent I installed in my cluster (following these instructions: https://docs.gitlab.com/ee/user/clusters/agent/install/index.html) Has anyone else tried to accomplish the same thing? If so, any pointers would be much appreciated!
11 replies
CCoder.com
Created by Karan on 10/10/2024 in #help
How to push templates to Kubernetes Coder from GitLab CI/CD?
Sorry, it looks like my description disappeared. Retyping...
11 replies