Sharkey/chart/templates/Deployment.yml

48 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2022-05-15 09:39:23 +02:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "misskey.fullname" . }}
labels:
2023-03-04 09:42:03 +01:00
{{- include "misskey.labels" . | nindent 4 }}
2022-05-15 09:39:23 +02:00
spec:
selector:
matchLabels:
2023-03-04 09:42:03 +01:00
{{- include "misskey.selectorLabels" . | nindent 6 }}
2022-05-15 09:39:23 +02:00
replicas: 1
template:
metadata:
labels:
2023-03-04 09:42:03 +01:00
{{- include "misskey.selectorLabels" . | nindent 8 }}
2022-05-15 09:39:23 +02:00
spec:
containers:
- name: misskey
2022-05-15 15:22:06 +02:00
image: {{ .Values.image }}
env:
- name: NODE_ENV
value: {{ .Values.environment }}
2022-05-15 09:39:23 +02:00
volumeMounts:
2022-05-15 15:22:06 +02:00
- name: {{ include "misskey.fullname" . }}-configuration
2022-05-15 09:39:23 +02:00
mountPath: /misskey/.config
readOnly: true
ports:
- containerPort: 3000
- name: postgres
image: postgres:15-alpine
2022-05-15 09:39:23 +02:00
env:
- name: POSTGRES_USER
value: "example-misskey-user"
- name: POSTGRES_PASSWORD
value: "example-misskey-pass"
- name: POSTGRES_DB
value: "misskey"
ports:
- containerPort: 5432
- name: redis
image: redis:7-alpine
2022-05-15 09:39:23 +02:00
ports:
- containerPort: 6379
volumes:
2022-05-15 15:22:06 +02:00
- name: {{ include "misskey.fullname" . }}-configuration
2022-05-15 09:39:23 +02:00
configMap:
2022-05-15 15:22:06 +02:00
name: {{ include "misskey.fullname" . }}-configuration