77 lines
1.9 KiB
YAML
77 lines
1.9 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: chamilo
|
|
namespace: {{ .namespace }}
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
component: web
|
|
template:
|
|
metadata:
|
|
labels:
|
|
component: web
|
|
spec:
|
|
securityContext:
|
|
runAsNonRoot: false
|
|
runAsUser: 0
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
containers:
|
|
- name: chamilo
|
|
image: ipeos/chamilo:1.11.28
|
|
ports:
|
|
- name: http
|
|
containerPort: 80
|
|
protocol: TCP
|
|
env:
|
|
- name: PHP_TIMEZONE
|
|
value: UTC
|
|
- name: PHP_MEMORY_LIMIT
|
|
value: 256M
|
|
- name: PHP_MAX_EXECUTION_TIME
|
|
value: "300"
|
|
- name: PHP_UPLOAD_MAX_FILESIZE
|
|
value: 100M
|
|
- name: PHP_POST_MAX_SIZE
|
|
value: 100M
|
|
resources:
|
|
limits:
|
|
cpu: "1"
|
|
ephemeral-storage: 1Gi
|
|
memory: 512Mi
|
|
requests:
|
|
cpu: 50m
|
|
ephemeral-storage: 50Mi
|
|
memory: 256Mi
|
|
volumeMounts:
|
|
- name: chamilo-data
|
|
mountPath: /var/www/html
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 80
|
|
initialDelaySeconds: 120
|
|
timeoutSeconds: 10
|
|
periodSeconds: 30
|
|
failureThreshold: 6
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 80
|
|
initialDelaySeconds: 60
|
|
timeoutSeconds: 5
|
|
periodSeconds: 10
|
|
failureThreshold: 3
|
|
securityContext:
|
|
allowPrivilegeEscalation: true
|
|
readOnlyRootFilesystem: false
|
|
volumes:
|
|
- name: chamilo-data
|
|
persistentVolumeClaim:
|
|
claimName: chamilo-data
|
|
restartPolicy: Always
|