tp2
This commit is contained in:
commit
cbfc0a53b3
15 changed files with 214 additions and 0 deletions
30
tp2/r209-deployment.yaml
Normal file
30
tp2/r209-deployment.yaml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue