mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-24 05:58:24 +00:00
bb5f10fc16
Kubernetes is currently *not* functional, but it will be, soon!
35 lines
748 B
YAML
35 lines
748 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: nginx
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: nginx
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: nginx
|
|
spec:
|
|
containers:
|
|
- name: nginx
|
|
image: nginx:latest
|
|
volumeMounts:
|
|
- mountPath: /etc/nginx/conf.d/
|
|
name: config
|
|
- mountPath: /openedx/data/lms
|
|
name: data
|
|
ports:
|
|
- containerPort: 80
|
|
name: http-port
|
|
- containerPort: 443
|
|
name: https-port
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: nginx-config
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: lms-data
|