diff --git a/.values.yaml b/.values.yaml index 34601b69..52a7cd16 100644 --- a/.values.yaml +++ b/.values.yaml @@ -72,12 +72,20 @@ deployment: # - "foo.remote" # - "bar.remote" - # Init containers which runs before the app container + # Init containers which runs before the app container initContainers: - # init-contaner: - # image: busybox - # imagePullPolicy: IfNotPresent - # command: ['/bin/sh'] + init-artisan: + args: + - /bin/bash + - -c + - (php artisan migrate --force || true) && (php artisan config:cache || true) + envFrom: + - configMapRef: + name: cssd-production-back-configmap + - secretRef: + name: cssd-production-back-secret + image: docker.willaspace.com/repository/docker-hosted/external-projects/cssd-back:latest + imagePullPolicy: IfNotPresent # Additional labels for Deployment additionalLabels: