php-fpm.yaml 2.08 KB
Newer Older
Dominik Hebeler's avatar
Dominik Hebeler committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
name: {{ .Chart.Name }}-phpfpm
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if .Values.application.secretName }}
envFrom:
- secretRef:
    name: {{ .Values.application.secretName }}
{{- end }}
env:
- name: DATABASE_URL
    value: {{ .Values.application.database_url | quote }}
- name: GITLAB_ENVIRONMENT_NAME
    value: {{ .Values.gitlab.envName }}
- name: GITLAB_ENVIRONMENT_URL
    value: {{ .Values.gitlab.envURL }}
ports:
- name: "{{ .Values.service.name }}-phpfpm"
    containerPort: 9000
livenessProbe:
    tcpSocket:
    port: "{{ .Values.service.name }}-phpfpm"
    initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
    timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
readinessProbe:
    tcpSocket:
    port: "{{ .Values.service.name }}-phpfpm"
    initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
    timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
volumeMounts:
- name: mglogs-persistent-storage
    mountPath: /html/storage/logs/metager
    readOnly: false
- name: env-files
    mountPath: /root/.env
    subPath: .env
    readOnly: true
- name: env-files
    mountPath: /html/database/seeds/UsersSeeder.php
    subPath: UsersSeeder.php
    readOnly: true
- name: env-files
    mountPath: /html/config/spam.txt
    subPath: spam.txt
    readOnly: true
- name: sumas
    mountPath: /html/config/sumas.json
    subPath: sumas.json
    readOnly: true
- name: sumas-en
    mountPath: /html/config/sumasEn.json
    subPath: sumasEn.json
    readOnly: true
- name: blacklist
    mountPath: /html/config/blacklistUrl.txt
    subPath: blacklistUrl.txt
    readOnly: true
- name: blacklist
    mountPath: /html/config/blacklistDomains.txt
    subPath: blacklistDomains.txt
    readOnly: true
- name: blacklist-ad
    mountPath: /html/config/adBlacklistUrl.txt
    subPath: adBlacklistUrl.txt
    readOnly: true
- name: blacklist-ad
    mountPath: /html/config/adBlacklistDomains.txt
    subPath: adBlacklistDomains.txt
    readOnly: true
resources:
    requests:
    cpu: 500m
    memory: 500m