mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
|
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
|
||
|
image: okteto.dev/misskey:latest
|
||
|
volumeMounts:
|
||
|
- name: config-file
|
||
|
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:
|
||
|
- name: config-file
|
||
|
configMap:
|
||
|
name: {{ include "misskey.fullname" . }}-config-file
|