1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-21 18:18:20 +09:00
cherrypick/chart/templates/Deployment.yml
2023-12-22 00:11:05 +09:00

48 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "cherrypick.fullname" . }}
labels:
{{- include "cherrypick.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
{{- include "cherrypick.selectorLabels" . | nindent 6 }}
replicas: 1
template:
metadata:
labels:
{{- include "cherrypick.selectorLabels" . | nindent 8 }}
spec:
containers:
- name: cherrypick
image: {{ .Values.image }}
env:
- name: NODE_ENV
value: {{ .Values.environment }}
volumeMounts:
- name: {{ include "cherrypick.fullname" . }}-configuration
mountPath: /cherrypick/.config
readOnly: true
ports:
- containerPort: 3000
- name: postgres
image: postgres:15-alpine
env:
- name: POSTGRES_USER
value: "example-cherrypick-user"
- name: POSTGRES_PASSWORD
value: "example-cherrypick-pass"
- name: POSTGRES_DB
value: "cherrypick"
ports:
- containerPort: 5432
- name: redis
image: redis:7-alpine
ports:
- containerPort: 6379
volumes:
- name: {{ include "cherrypick.fullname" . }}-configuration
configMap:
name: {{ include "cherrypick.fullname" . }}-configuration