bootstrap ircs-prod gitops config

This commit is contained in:
Prodiglagla
2026-06-14 11:46:13 +08:00
commit f83d1157b1
41 changed files with 3879 additions and 0 deletions
@@ -0,0 +1,138 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: ircs-notification-worker
namespace: ircs-prod
labels:
app: ircs-notification-worker
app.kubernetes.io/part-of: ircs
environment: prod
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: ircs-notification-worker
template:
metadata:
labels:
app: ircs-notification-worker
app.kubernetes.io/part-of: ircs
environment: prod
spec:
imagePullSecrets:
- name: harbor-secret
containers:
- name: app
image: harbor.mnnu.eu.org/ircs/ircs-notification-worker@sha256:c0234ec40b13b3a24925ec2bcfb5b6298622335f44284003d12f09199de3fdd3
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8080
envFrom:
- configMapRef:
name: ircs-prod-app-config
env:
- name: SPRING_APPLICATION_NAME
value: ircs-notification-worker
- name: SPRING_RABBITMQ_HOST
valueFrom:
configMapKeyRef:
name: ircs-prod-app-config
key: RABBITMQ_HOST
- name: SPRING_RABBITMQ_USERNAME
value: admin
- name: SPRING_RABBITMQ_PASSWORD
valueFrom:
secretKeyRef:
name: ircs-prod-secrets
key: RABBITMQ_PASSWORD
- name: SPRING_DATASOURCE_URL
valueFrom:
configMapKeyRef:
name: ircs-prod-app-config
key: DB_URL
- name: SPRING_DATASOURCE_USERNAME
value: postgres
- name: SPRING_DATASOURCE_PASSWORD
valueFrom:
secretKeyRef:
name: ircs-prod-secrets
key: DB_PASSWORD
- name: SPRING_DATASOURCE_HIKARI_MAXIMUM_POOL_SIZE
value: "2"
- name: SPRING_DATASOURCE_HIKARI_MINIMUM_IDLE
value: "0"
- name: SPRING_DATASOURCE_HIKARI_IDLE_TIMEOUT
value: "30000"
- name: APP_MAIL_HOST
valueFrom:
configMapKeyRef:
name: ircs-prod-app-config
key: MAIL_HOST
- name: APP_MAIL_PORT
valueFrom:
configMapKeyRef:
name: ircs-prod-app-config
key: MAIL_PORT
- name: APP_MAIL_FROM
valueFrom:
configMapKeyRef:
name: ircs-prod-app-config
key: MAIL_FROM
- name: APP_MAIL_ENABLED
valueFrom:
configMapKeyRef:
name: ircs-prod-app-config
key: APP_MAIL_ENABLED
- name: APP_MAIL_SEND_HISTORY_CLEANUP_ENABLED
value: "false"
- name: APP_MAIL_SEND_HISTORY_CLEANUP_DRY_RUN
value: "true"
- name: APP_MAIL_SEND_HISTORY_CLEANUP_EXECUTE_ENABLED
value: "false"
- name: APP_MAIL_SEND_HISTORY_CLEANUP_RATE_LIMIT_DELAY_MS
value: "0"
- name: APP_NOTIFICATION_CONFIG_LISTENER_ENABLED
value: "true"
- name: APP_WORKER_AUDIT_ENABLED
value: "true"
- name: APP_WORKER_AUDIT_DATASOURCE_URL
valueFrom:
configMapKeyRef:
name: ircs-prod-app-config
key: DB_URL
- name: APP_WORKER_AUDIT_USERNAME
value: postgres
- name: APP_WORKER_AUDIT_PASSWORD
valueFrom:
secretKeyRef:
name: ircs-prod-secrets
key: DB_PASSWORD
- name: APP_WORKER_AUDIT_SOURCE
value: ircs-notification-worker
startupProbe:
httpGet:
path: /actuator/health/liveness
port: http
failureThreshold: 30
periodSeconds: 5
readinessProbe:
httpGet:
path: /actuator/health/readiness
port: http
periodSeconds: 10
livenessProbe:
httpGet:
path: /actuator/health/liveness
port: http
periodSeconds: 30
resources:
requests:
cpu: 25m
memory: 128Mi
limits:
cpu: 250m
memory: 512Mi