Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

817 B
Raw Blame
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "helm.fullname" . }}-api
  labels:
    {{- include "helm.labels" . | nindent 4 }}
data:
  PORT: {{ .Values.api.service.port | quote }}
  {{- range $k, $v := .Values.api.env }}
  {{- if ne (toString $v) "" }}
  {{ $k }}: {{ toString $v | quote }}
  {{- end }}
  {{- end }}
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: {{ include "helm.fullname" . }}-web
  labels:
    {{- include "helm.labels" . | nindent 4 }}
data:
  NGINX_PORT: {{ .Values.web.service.port | quote }}
  PORT: {{ .Values.api.service.port | quote }}
  # Both containers share the pod's network, so the API is on localhost.
  BACKEND: "127.0.0.1"
  {{- range $k, $v := .Values.web.env }}
  {{- if ne (toString $v) "" }}
  {{ $k }}: {{ toString $v | quote }}
  {{- end }}
  {{- end }}