mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ .Release.Name }}-webapp
|
|
labels:
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
app.kubernetes.io/name: human-connection
|
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
|
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
|
|
spec:
|
|
replicas: 2
|
|
minReadySeconds: 15
|
|
progressDeadlineSeconds: 60
|
|
selector:
|
|
matchLabels:
|
|
human-connection.org/selector: deployment-webapp
|
|
template:
|
|
metadata:
|
|
name: webapp
|
|
labels:
|
|
human-connection.org/commit: {{ .Values.commit }}
|
|
human-connection.org/selector: deployment-webapp
|
|
spec:
|
|
containers:
|
|
- name: webapp
|
|
image: "{{ .Values.webappImage }}:{{ .Chart.AppVersion }}"
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
envFrom:
|
|
- configMapRef:
|
|
name: {{ .Release.Name }}-configmap
|
|
- secretRef:
|
|
name: {{ .Release.Name }}-secrets
|
|
env:
|
|
- name: HOST
|
|
value: 0.0.0.0
|
|
ports:
|
|
- containerPort: 3000
|
|
resources: {}
|
|
imagePullPolicy: Always
|
|
restartPolicy: Always
|
|
terminationGracePeriodSeconds: 30
|
|
status: {}
|