diff --git a/helm/softplayer-web/templates/dotenv.yaml b/helm/softplayer-web/templates/dotenv.yaml new file mode 100644 index 0000000..7676b95 --- /dev/null +++ b/helm/softplayer-web/templates/dotenv.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ include "softplayer-web.fullname" . }} + labels: + {{- include "softplayer-web.labels" . | nindent 4 }} +data: + .env: |- + {{- range $key, $val := .Values.dotenv }} + {{ printf "%s=%s" $key $val }} + {{- end }} diff --git a/helm/softplayer-web/values.yaml b/helm/softplayer-web/values.yaml index 3c5e303..26aabbe 100644 --- a/helm/softplayer-web/values.yaml +++ b/helm/softplayer-web/values.yaml @@ -13,6 +13,9 @@ image: # Overrides the image tag whose default is the chart appVersion. tag: latest +dotenv: + SOFTPLAYER_BACKEND_URL: https://softplayer-backend.badhouseplants.net:443 + # This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ imagePullSecrets: [] # This is to override the chart name.