1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-24 03:28:43 +09:00
misskey/chart/templates/Deployment.yml

48 lines
1.3 KiB
YAML
Raw Normal View History

2022-05-15 16:39:23 +09:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "misskey.fullname" . }}
labels:
{{- include "misskey.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
{{- include "misskey.selectorLabels" . | nindent 6 }}
replicas: 1
template:
metadata:
labels:
{{- include "misskey.selectorLabels" . | nindent 8 }}
spec:
containers:
- name: misskey
2022-05-15 22:22:06 +09:00
image: {{ .Values.image }}
env:
- name: NODE_ENV
value: {{ .Values.environment }}
2022-05-15 16:39:23 +09:00
volumeMounts:
2022-05-15 22:22:06 +09:00
- name: {{ include "misskey.fullname" . }}-configuration
2022-05-15 16:39:23 +09:00
mountPath: /misskey/.config
readOnly: true
ports:
- containerPort: 3000
- name: postgres
image: postgres:14-alpine
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:alpine
ports:
- containerPort: 6379
volumes:
2022-05-15 22:22:06 +09:00
- name: {{ include "misskey.fullname" . }}-configuration
2022-05-15 16:39:23 +09:00
configMap:
2022-05-15 22:22:06 +09:00
name: {{ include "misskey.fullname" . }}-configuration