Skip to content
Snippets Groups Projects
Commit 5383080f authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

mounting secrets from k8s secret

parent cb13a827
No related branches found
No related tags found
3 merge requests!1895Development,!1818Development,!1816Development
...@@ -45,24 +45,12 @@ spec: ...@@ -45,24 +45,12 @@ spec:
imagePullSecrets: imagePullSecrets:
{{ toYaml .Values.image.secrets | indent 10 }} {{ toYaml .Values.image.secrets | indent 10 }}
volumes: volumes:
- name: secrets
secret:
secretName: {{ .Values.application.secretName }}
- name: mglogs-persistent-storage - name: mglogs-persistent-storage
persistentVolumeClaim: persistentVolumeClaim:
claimName: mg-logs claimName: mg-logs
- name: env-files
secret:
secretName: metager-env
- name: sumas
secret:
secretName: metager-sumas
- name: sumas-en
secret:
secretName: metager-sumas-en
- name: blacklist
secret:
secretName: metager-blacklist
- name: blacklist-ad
secret:
secretName: metager-ad-blacklist
- name: metager-config - name: metager-config
configMap: configMap:
name: metager name: metager
...@@ -105,37 +93,37 @@ spec: ...@@ -105,37 +93,37 @@ spec:
- name: mglogs-persistent-storage - name: mglogs-persistent-storage
mountPath: /html/storage/logs/metager mountPath: /html/storage/logs/metager
readOnly: false readOnly: false
- name: env-files - name: secrets
mountPath: /root/.env mountPath: /root/.env
subPath: .env subPath: env
readOnly: true readOnly: true
- name: env-files - name: secrets
mountPath: /html/database/seeds/UsersSeeder.php mountPath: /html/database/seeds/UsersSeeder.php
subPath: UsersSeeder.php subPath: userseeder
readOnly: true readOnly: true
- name: sumas - name: secrets
mountPath: /html/config/sumas.json mountPath: /html/config/sumas.json
subPath: sumas.json subPath: sumas
readOnly: true readOnly: true
- name: sumas-en - name: secrets
mountPath: /html/config/sumasEn.json mountPath: /html/config/sumasEn.json
subPath: sumasEn.json subPath: sumasen
readOnly: true readOnly: true
- name: blacklist - name: secrets
mountPath: /html/config/blacklistUrl.txt mountPath: /html/config/blacklistUrl.txt
subPath: blacklistUrl.txt subPath: blacklisturl
readOnly: true readOnly: true
- name: blacklist - name: secrets
mountPath: /html/config/blacklistDomains.txt mountPath: /html/config/blacklistDomains.txt
subPath: blacklistDomains.txt subPath: blacklistdomains
readOnly: true readOnly: true
- name: blacklist-ad - name: secrets
mountPath: /html/config/adBlacklistUrl.txt mountPath: /html/config/adBlacklistUrl.txt
subPath: adBlacklistUrl.txt subPath: adblacklisturl
readOnly: true readOnly: true
- name: blacklist-ad - name: secrets
mountPath: /html/config/adBlacklistDomains.txt mountPath: /html/config/adBlacklistDomains.txt
subPath: adBlacklistDomains.txt subPath: adblacklistdomains
readOnly: true readOnly: true
resources: resources:
{{ toYaml .Values.resourcesPhpfpm | indent 12 }} {{ toYaml .Values.resourcesPhpfpm | indent 12 }}
...@@ -216,9 +204,9 @@ spec: ...@@ -216,9 +204,9 @@ spec:
command: ["su"] command: ["su"]
args: ["-s", "/bin/sh", "-c", "php artisan requests:fetcher", "nginx"] args: ["-s", "/bin/sh", "-c", "php artisan requests:fetcher", "nginx"]
volumeMounts: volumeMounts:
- name: env-files - name: secrets
mountPath: /html/.env mountPath: /html/.env
subPath: .env subPath: env
readOnly: true readOnly: true
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
livenessProbe: livenessProbe:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment