chore: wip
Some checks are pending
Release Docs / Release Docs (push) Waiting to run
Release / Build and publish a Docker image / build-and-push-image (push) Waiting to run
Some checks are pending
Release Docs / Release Docs (push) Waiting to run
Release / Build and publish a Docker image / build-and-push-image (push) Waiting to run
This commit is contained in:
parent
491a9cc294
commit
eeada0e25d
17 changed files with 674 additions and 0 deletions
85
charts/pterodactyl-panel/templates/php-fpm/deployment.yaml
Normal file
85
charts/pterodactyl-panel/templates/php-fpm/deployment.yaml
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "pterodactyl-panel.fullname" . }}--php-fpm
|
||||
labels:
|
||||
app.kubernetes.io/name: php-fpm
|
||||
app.kubernetes.io/version: "{{ .Values.phpfpm.image.tag | default .Chart.AppVersion }}"
|
||||
app.kubernetes.io/component: backend
|
||||
app.kubernetes.io/part-of: pterodactyl-panel
|
||||
{{- include "pterodactyl-panel.labels" . | nindent 4 }}
|
||||
|
||||
spec:
|
||||
{{- if not .Values.autoscaling.enabled }}
|
||||
replicas: {{ .Values.phpFpm.replicaCount }}
|
||||
{{- end }}
|
||||
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "pterodactyl-panel.selectorLabels" . | nindent 6 }}
|
||||
|
||||
template:
|
||||
metadata:
|
||||
{{- with .Values.phpFpm.podAnnotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "pterodactyl-panel.selectorLabels" . | nindent 8 }}
|
||||
|
||||
spec:
|
||||
{{- with .Values.phpFpm.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
serviceAccountName: {{ include "pterodactyl-panel.serviceAccountName" . }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.phpFpm.podSecurityContext | nindent 8 }}
|
||||
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.phpFpm.securityContext | nindent 12 }}
|
||||
image: "{{ .Values.phpFpm.image.repository }}:{{ .Values.phpFpm.image.tag | default .Chart.AppVersion }}"
|
||||
imagePullPolicy: {{ .Values.phpFpm.image.pullPolicy }}
|
||||
|
||||
lifecycle:
|
||||
preStop:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- '-c'
|
||||
- sleep 5 && kill -SIGQUIT 1
|
||||
|
||||
ports:
|
||||
- name: fastcgi
|
||||
containerPort: 9000
|
||||
protocol: TCP
|
||||
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
port: 9000
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
|
||||
readinessProbe:
|
||||
tcpSocket:
|
||||
port: 9000
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
|
||||
resources:
|
||||
{{- toYaml .Values.phpFpm.resources | nindent 12 }}
|
||||
|
||||
{{- with .Values.phpFpm.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.phpFpm.affinity }}
|
||||
affinity:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.phpFpm.tolerations }}
|
||||
tolerations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
Reference in a new issue