forked from cloud-pi-native/tuto-java-infra-manifest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
42 lines (42 loc) · 1.1 KB
/
deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: dso-demo-java
labels:
app: dso-demo-java
spec:
replicas: 1
selector:
matchLabels:
app: dso-demo-java
template:
metadata:
labels:
app: dso-demo-java
spec:
imagePullSecrets:
- name: registry-pull-secret
containers:
- name: dso-demo-java
image: harbor.apps.dso.numerique-interieur.com/form-crtshenne/java-demo:master
imagePullPolicy: Always
env:
- name: SPRING_DATASOURCE_USERNAME
value: "userdemomanifest"
- name: SPRING_DATASOURCE_PASSWORD
valueFrom:
secretKeyRef:
name: postgre-secret
key: password
- name: SPRING_DATASOURCE_URL
value: jdbc:postgresql://postgres-manifest:5432/demo
resources:
requests:
memory: "256Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "500m"
ports:
- containerPort: 8080 # Exposes container port