helm: add deploy chart for self-hosted installation
This commit is contained in:
@@ -0,0 +1,85 @@
|
||||
# deployment.yaml — Deployment shared-sqs с RollingUpdate
|
||||
# Created: 2026-04-11
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: shared-sqs
|
||||
namespace: {{ .Values.namespace }}
|
||||
labels:
|
||||
{{- include "shared-sqs.labels" . | nindent 4 }}
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 1
|
||||
maxUnavailable: 0
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "shared-sqs.selectorLabels" . | nindent 6 }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{- include "shared-sqs.selectorLabels" . | nindent 8 }}
|
||||
spec:
|
||||
containers:
|
||||
- name: shared-sqs
|
||||
image: "naeel/shared-sqs:{{ .Values.image.tag }}"
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 4100
|
||||
name: http
|
||||
env:
|
||||
- name: SHARED_SQS_ADMIN_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: shared-sqs-admin
|
||||
key: token
|
||||
- name: SHARED_SQS_SEED_DEMO
|
||||
value: {{ .Values.seedDemo | quote }}
|
||||
- name: REDIS_ADDR
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: shared-sqs-redis
|
||||
key: addr
|
||||
- name: REDIS_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: shared-sqs-redis
|
||||
key: user
|
||||
- name: REDIS_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: shared-sqs-redis
|
||||
key: password
|
||||
{{- if .Values.billing.enabled }}
|
||||
- name: BILLING_PG_HOST
|
||||
value: {{ .Values.billing.postgres.host | quote }}
|
||||
- name: BILLING_PG_PORT
|
||||
value: {{ .Values.billing.postgres.port | quote }}
|
||||
- name: BILLING_PG_DATABASE
|
||||
value: {{ .Values.billing.postgres.database | quote }}
|
||||
- name: BILLING_PG_USER
|
||||
value: {{ .Values.billing.postgres.user | quote }}
|
||||
- name: BILLING_PG_SSLMODE
|
||||
value: {{ .Values.billing.postgres.sslmode | quote }}
|
||||
- name: BILLING_PG_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: shared-sqs-billing-pg
|
||||
key: password
|
||||
{{- end }}
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 10 }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 4100
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 4100
|
||||
initialDelaySeconds: 3
|
||||
periodSeconds: 5
|
||||
Reference in New Issue
Block a user