mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-12-13 14:43:03 +00:00
84f2060d33
The k8s quickstart command is now functional, with suppport for https, xqueue, notes and minio. There are still a few bugs to get rid of, though.
57 lines
1.4 KiB
Plaintext
57 lines
1.4 KiB
Plaintext
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: minio
|
|
labels:
|
|
app.kubernetes.io/name: minio
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: minio
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: minio
|
|
spec:
|
|
containers:
|
|
- name: minio
|
|
image: {{ MINIO_DOCKER_REGISTRY }}{{ MINIO_DOCKER_IMAGE_SERVER }}
|
|
args: ["server", "--address", ":9000", "/data"]
|
|
env:
|
|
- name: MINIO_ACCESS_KEY
|
|
value: "{{ OPENEDX_AWS_ACCESS_KEY }}"
|
|
- name: MINIO_SECRET_KEY
|
|
value: "{{ OPENEDX_AWS_SECRET_ACCESS_KEY }}"
|
|
ports:
|
|
- containerPort: 9000
|
|
volumeMounts:
|
|
- mountPath: /data
|
|
name: data
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: minio
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: minio-client
|
|
labels:
|
|
app.kubernetes.io/name: minio-client
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: minio-client
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: minio-client
|
|
spec:
|
|
containers:
|
|
- name: minio
|
|
image: {{ MINIO_DOCKER_REGISTRY }}{{ MINIO_DOCKER_IMAGE_CLIENT }}
|
|
command: ["sh", "-e", "-c"]
|
|
args: ["while true; do echo 'ready'; sleep 10; done"] |