Sonam Samdupkhangsar

Sonam Samdupkhangsar

My Helm Chart

I created a Helm chart to deploy my Dockerized app on Kubernetes (K8s) cluster. I use DigitalOcean K8s and this chart should work for other providers too.

The features on this Helm chart are:

Ingress route

create Ingress route to subdomain for a application, meaning it will route traffic on a subdomain to the application using this configuration :

ingress:
enabled: true
ingressClass: nginx
hosts:
  - host: subdomain.domain.com
    paths:
      - path: /
        pathType: Prefix
tls:
  - secretName: domain.com
    hosts:
      - "*.domain.com"

Postgres db variables

This supports Postgres database username and password such as:

postgres:
  port: "5432"
  postgresUsername: PACT_BROKER_DATABASE_USERNAME
  postgresPassword: PACT_BROKER_DATABASE_PASSWORD
  postgresDbname: PACT_BROKER_DATABASE_NAME

Load Secret file key/values as environment variables

It also supports loading secret files and using the key and value as environment variables with this configuration:

# this section shows how you can create environment variables using a secret file
# on the k8 cluster    
secretFiles:
  - file: file1
    keys:
      - key: pgdb_username
        name: PG_USERNAME
      - key: pgdb_password
        name: PG_PASSWORD
  - file: file2abc
    keys:
      - key: pgdb_username
        name: PGDB
      - key: apple
        name: APPLE_DB