forked from FraunhoferISST/DataspaceConnector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
51 lines (51 loc) · 1.48 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
43
44
45
46
47
48
49
50
51
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: dataspace-connector
name: dataspace-connector
spec:
replicas: 1
selector:
matchLabels:
app: dataspace-connector
template:
metadata:
labels:
app: dataspace-connector
spec:
containers:
- image: localhost:5000/dataspace-connector:latest
imagePullPolicy: IfNotPresent
name: dataspace-connector
ports:
- containerPort: 8080
env:
- name: SPRING_DATASOURCE_URL
value: "jdbc:postgresql://postgres:5432/test"
- name: SPRING_DATASOURCE_USERNAME
value: "admin"
- name: SPRING_DATASOURCE_PASSWORD
value: "password"
- name: SPRING_DATASOURCE_PLATFORM
value: "postgres"
- name: SPRING_DATASOURCE_DRIVER-CLASS-NAME
value: "org.postgresql.Driver"
- name: SPRING_JPA_DATABASE-PLATFORM
value: "org.hibernate.dialect.PostgreSQLDialect"
- name: CONFIGURATION_PATH
value: "file:///connector-certs/config.json"
volumeMounts:
- name: certs-volume
mountPath: /connector-certs
resources:
requests:
memory: 512Mi
cpu: 0.1
limits:
memory: 2Gi
cpu: 1
volumes:
- name: certs-volume
secret:
secretName: dataspace-connector-certs