2022-05-15 16:39:23 +09:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: {{ include "misskey.fullname" . }}
|
|
|
|
labels:
|
2023-03-04 17:42:03 +09:00
|
|
|
{{- include "misskey.labels" . | nindent 4 }}
|
2022-05-15 16:39:23 +09:00
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
2023-03-04 17:42:03 +09:00
|
|
|
{{- include "misskey.selectorLabels" . | nindent 6 }}
|
2022-05-15 16:39:23 +09:00
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2023-03-04 17:42:03 +09:00
|
|
|
{{- include "misskey.selectorLabels" . | nindent 8 }}
|
2022-05-15 16:39:23 +09:00
|
|
|
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
|
2023-10-30 00:27:20 +09:00
|
|
|
image: postgres:15-alpine
|
2022-05-15 16:39:23 +09:00
|
|
|
env:
|
|
|
|
- name: POSTGRES_USER
|
|
|
|
value: "example-misskey-user"
|
|
|
|
- name: POSTGRES_PASSWORD
|
|
|
|
value: "example-misskey-pass"
|
|
|
|
- name: POSTGRES_DB
|
|
|
|
value: "misskey"
|
|
|
|
ports:
|
|
|
|
- containerPort: 5432
|
2024-09-17 03:46:58 +09:00
|
|
|
- name: dragonfly
|
|
|
|
image: docker.dragonflydb.io/dragonflydb/dragonfly
|
|
|
|
env:
|
|
|
|
- name: DFLY_version_check
|
|
|
|
value: false
|
|
|
|
- name: DFLY_tcp_backlog
|
|
|
|
value: 2048
|
|
|
|
- name: DFLY_default_lua_flags
|
|
|
|
value: allow-undeclared-keys
|
|
|
|
- name: DFLY_pipeline_squash
|
|
|
|
value: 0
|
|
|
|
- name: DFLY_multi_exec_squash
|
|
|
|
value: false
|
|
|
|
- name: DFLY_conn_io_threads
|
|
|
|
value: 4
|
|
|
|
- name: DFLY_epoll_file_threads
|
|
|
|
value: 4
|
|
|
|
- name: DFLY_proactor_threads
|
|
|
|
value: 4
|
2022-05-15 16:39:23 +09:00
|
|
|
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
|