Skip to content
Snippets Groups Projects

k8s: forge-intranet: deploy srvc-rtc

Merged Léo Portemont requested to merge deploy-srvc-rtc into main
Compare and
8 files
+ 144
0
Preferences
File browser
Compare changes
# yamllint disable rule:line-length
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: srvc-rtc
spec:
replicas: 1
revisionHistoryLimit: 0
selector:
matchLabels:
component: srvc-rtc
template:
metadata:
labels:
component: srvc-rtc
spec:
imagePullSecrets:
- name: intranet-dockerconfig
containers:
- name: srvc-rtc
image: registry.cri.epita.fr/laboratoires/lab-si/intern/srvc-rtc
command: ["java", "-XmX1024M", "-jar", "/app.jar"]
env:
- name: FORGE_PERSISTENCE_DB_NAME
value: srvc_rtc
- name: FORGE_PERSISTENCE_USERNAME
valueFrom:
secretKeyRef:
name: forge-intranet.srvc-rtc.forge-dev-cluster.credentials
key: username
- name: FORGE_PERSISTENCE_PASSWORD
valueFrom:
secretKeyRef:
name: forge-intranet.srvc-rtc.forge-dev-cluster.credentials
key: password
- name: INTRANET_MAAS_TOKEN
valueFrom:
secretKeyRef:
name: intranet-maas
key: MAAS_API_TOKEN
envFrom:
- configMapRef:
name: framework-common-config
- configMapRef:
name: framework-s3-buckets-definition
- secretRef:
name: rtc-oidc
- secretRef:
name: framework-s3
ports:
- name: http
containerPort: 8080
protocol: TCP
startupProbe:
httpGet:
port: http
path: /q/health
initialDelaySeconds: 30
failureThreshold: 30
periodSeconds: 10
readinessProbe:
httpGet:
port: http
path: /q/health
livenessProbe:
httpGet:
port: http
path: /q/health
resources:
requests:
cpu: 100m
memory: 2048Mi
limits:
memory: 2048Mi
securityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000