Add ToDo, Questions, async and rabbitmq

This commit is contained in:
erik 2023-08-09 10:58:30 +02:00
parent 73f3271f3c
commit b7fe9aa309

View file

@ -20,8 +20,48 @@ spec:
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
ports: ports:
- containerPort: 80 - containerPort: 80
env: volumeMounts:
- name: taiga-static
mountPath: /taiga-back/static
readOnly: false
- name: taiga-media
mountPath: /taiga-back/media
readOnly: false
env: # Does every container need access to all env vars?
- name: POSTGRES_USER # does taiga need a specific postgres version? - name: POSTGRES_USER # does taiga need a specific postgres version?
valueFrom: # which env vars are needed by taiga-back and taiga-async
secretKeyRef: # ToDo: If all env vars are needed by taiga-back a config-map would be suitable
name: postgres-secret
key: postgres-user
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: postgres-secret
key: postgres-password
- name: POSTGRES_DB
valueFrom:
configMapKeyRef:
name: postgres-config
key: postgres-db
- name: POSTGRES_HOST
value: "postgresql-service"
- name: POSTGRES_PORT
value: 5432
- name: taiga-async
image: taigaio/taiga-back:latest
imagePullPolicy: IfNotPresent
command: ["async_entrypoint.sh"]
ports:
- containerPort: 80
volumeMounts:
- name: taiga-static
mountPath: /taiga-back/static
readOnly: false
- name: taiga-media
mountPath: /taiga-back/media
readOnly: false
env:
- name: POSTGRES_USER
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: postgres-secret name: postgres-secret
@ -40,16 +80,42 @@ spec:
value: "postgresql-service" value: "postgresql-service"
- name: POSTGRES_PORT - name: POSTGRES_PORT
value: 5432 value: 5432
- name: taiga-back
- name: taiga-async
- name: taiga-async-rabbitmq - name: taiga-async-rabbitmq
image: rabbitmq:3.8-management-alpine
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
volumeMounts:
- name: taiga-async-rabbitmq-data
mountPath: /var/lib/rabbitmq
readOnly: false
env:
- name: RABBITMQ_ERLANG_COOKIE
value: ERLANG_COOKIE_VALUE
- name: RABBITMQ_DEFAULT_USER
value: RABBITMQ_USER
- name: RABBITMQ_DEFAULT_PASS
value: RABBITMQ_PASS
- name: RABBITMQ_DEFAULT_VHOST
value: RABBITMQ_VHOST
- name: taiga-front - name: taiga-front
- name: taiga-events - name: taiga-events
- name: taiga-events-rabbitmq - name: taiga-events-rabbitmq
- name: taiga-protected - name: taiga-protected
# - name: taiga-gateway # - name: taiga-gateway
initContainers:
- name:
volumes:
- name: taiga-static
persistentVolumeClaim:
claimName: taiga-static
- name: taiga-media
persistentVolumeClaim:
claimName: taiga-media
- name: taiga-async-rabbitmq-data
persistentVolumeClaim:
claimName: taiga-async-rabbitmq-data
x-environment: x-environment: