Skip to main content

Apps Helm Chart

Several applications of one repository (monorepo) in a single release: one Argo CD Application, one values.yaml, one Deployment per entry of apps.

Use it together with the git-flow docker-monorepo.yml pipeline: the build pushes <image.repository>/<name>:<version> for every app of the project's welance.yaml, the deploy job writes apps.<name>.image.tag and image.commit.* into the tenant values.yaml.

Values​

  • image.repository: base repository; app <name> pulls <repository>/<name> (override with apps.<name>.image.repository).
  • defaults: applied to every app, each apps.<name> is merged on top.
  • apps.<name>: enabled, replicaCount, image.tag, command, args, env, ports, service.ports, liveness/readiness/startup (plain probes), resources, nodeSelector, securityContext, shm, volumes (one PVC each). No ports: no Service (a worker).
  • redis: one Redis for the release (redis:6379), opt-in, same values as node.
  • envFileContent / onepassword: one env file and one 1Password item shared by every app, mounted like in the node and app charts (/tmp/env_config + /tmp/env_secret, or /app/.env.config).
  • routes: one HTTPRoute per entry (Gateway API only), rules pointing at service-<app>; basicAuth and botBlock default to true per route.

Example​

image:
repository: registry.gitlab.com/welance/p000-01-example
defaults:
nodeSelector:
welance/environment: develop
apps:
api:
ports: [{name: http, containerPort: 8080}]
readiness: {enabled: true, httpGet: {path: /health, port: http}}
web:
ports: [{name: http, containerPort: 3000}]
worker:
command: ["node", "worker.js"]
gatewayApi:
enabled: true
basicAuth:
enabled: true
routes:
- name: web
hosts: [p000-01.develop.welance.space]
rules:
- {path: /api, app: api}
- {path: /, app: web}