coder/helm/coder
Cian Johnston c62a8b0bee
fix(helm)!: remove prometheus-http port declaration from coderd service spec (#12214)
This PR removes the prometheus-http port entirely from the coder service specification (originally added in #10448). It also removes the Helm value coder.service.prometheusNodePort.

Rationale: some cloud providers will helpfully expose all ports on a LoadBalancer service for you. The net effect of this is that setting CODER_PROMETHEUS_ENABLE will end up exposing port 2112 on your coderd service to the internet, which is likely undesired behaviour.
2024-02-20 11:36:17 +00:00
..
templates fix(helm)!: remove prometheus-http port declaration from coderd service spec (#12214) 2024-02-20 11:36:17 +00:00
tests fix(helm)!: remove prometheus-http port declaration from coderd service spec (#12214) 2024-02-20 11:36:17 +00:00
.helmignore feat: add external provisioner daemon helm chart (#8939) 2023-08-10 13:59:43 +04:00
Chart.lock feat: add external provisioner daemon helm chart (#8939) 2023-08-10 13:59:43 +04:00
Chart.yaml feat: add external provisioner daemon helm chart (#8939) 2023-08-10 13:59:43 +04:00
README.md docs: migrate all deprecated `CODER_ADDRESS `to `CODER_HTTP_ADDRESS` (#10780) 2023-11-19 17:54:02 +00:00
values.yaml fix(helm)!: remove prometheus-http port declaration from coderd service spec (#12214) 2024-02-20 11:36:17 +00:00

README.md

Coder Helm Chart

This directory contains the Helm chart used to deploy Coder onto a Kubernetes cluster. It contains the minimum required components to run Coder on Kubernetes, and notably (compared to Coder Classic) does not include a database server.

Getting Started

Warning: The main branch in this repository does not represent the latest release of Coder. Please reference our installation docs for instructions on a tagged release.

View our docs for detailed installation instructions.

Values

Please refer to values.yaml for available Helm values and their defaults.

A good starting point for your values file is:

coder:
  # You can specify any environment variables you'd like to pass to Coder
  # here. Coder consumes environment variables listed in
  # `coder server --help`, and these environment variables are also passed
  # to the workspace provisioner (so you can consume them in your Terraform
  # templates for auth keys etc.).
  #
  # Please keep in mind that you should not set `CODER_HTTP_ADDRESS`,
  # `CODER_TLS_ENABLE`, `CODER_TLS_CERT_FILE` or `CODER_TLS_KEY_FILE` as
  # they are already set by the Helm chart and will cause conflicts.
  env:
    - name: CODER_ACCESS_URL
      value: "https://coder.example.com"
    - name: CODER_PG_CONNECTION_URL
      valueFrom:
        secretKeyRef:
          # You'll need to create a secret called coder-db-url with your
          # Postgres connection URL like:
          # postgres://coder:password@postgres:5432/coder?sslmode=disable
          name: coder-db-url
          key: url

    # This env enables the Prometheus metrics endpoint.
    - name: CODER_PROMETHEUS_ADDRESS
      value: "0.0.0.0:2112"
  tls:
    secretNames:
      - my-tls-secret-name