forked from cloud-pi-native/tuto-java-infra-manifest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
39 lines (39 loc) · 1.02 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
---
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.c6.numerique-interieur.com/mi-certfr/app-java-forge-dso-demo:master
imagePullPolicy: Always
env:
- name: SPRING_DATASOURCE_USERNAME
value: "userdemomanifest"
- name: SPRING_DATASOURCE_PASSWORD
value: "My$ecrETPAss0rd*"
- 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