This commit is contained in:
Emi BOUCLY 2025-10-20 09:45:26 +02:00
commit cbfc0a53b3
15 changed files with 214 additions and 0 deletions

30
tp2/r209-deployment.yaml Normal file
View file

@ -0,0 +1,30 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: r209-deployment
labels:
app: r209-deployment
spec:
replicas: 1
selector:
matchLabels:
app: r209-deployment
template:
metadata:
name: r209-deployment
labels:
app: r209-deployment
spec:
containers:
- name: r209-deployment
image: iut1r-registry.univ-grenoble-alpes.fr/but/r209-psql
imagePullPolicy: IfNotPresent
env:
- name: POSTGRES_DB
value: r209
- name: POSTGRES_HOST
value: db-service
envFrom:
- secretRef:
name: db-secret
restartPolicy: Always