Repository navigation
Expand file tree
/
Copy path70-xd.yaml
More file actions
85 lines (85 loc) · 2.16 KB
/
Copy path70-xd.yaml
File metadata and controls
85 lines (85 loc) · 2.16 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Direct RI XD* / XDR web endpoint (IHE ProvideAndRegisterDocumentSet-b SOAP endpoint,
# bridges XDR -> Direct SMTP/XDM delivery). WAR app, context path /xd, HTTP on 8080.
# No k8s manifest ships in the xd repo; this one is modeled on the other RI services.
#
# The image's default Spring profile serves plain HTTP on 8080. The "tls"/"mtls"
# profiles (self-signed dev certs, port 9443) are available but not enabled here.
apiVersion: v1
kind: Secret
metadata:
name: xd-config
namespace: direct-project
labels:
app: xd
type: Opaque
stringData:
direct.webservices.security.basic.user.name: admin
direct.webservices.security.basic.user.password: "d1r3ct;"
spring.rabbitmq.host: rabbitmq
spring.rabbitmq.port: "5672"
spring.rabbitmq.username: direct
spring.rabbitmq.password: direct
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: xd
namespace: direct-project
labels:
app: xd
spec:
replicas: 1
selector:
matchLabels:
app: xd
template:
metadata:
labels:
app: xd
spec:
containers:
- name: xd
image: directproject/xd:9.0.0
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
resources:
requests:
memory: "384Mi"
limits:
memory: "1Gi"
env:
- name: SERVER_PORT
value: "8080"
- name: JAVA_TOOL_OPTIONS
value: "-XX:MaxDirectMemorySize=256m"
- name: SPRING_CLOUD_CONFIG_ENABLED
value: "false"
- name: DIRECT_CONFIG_SERVICE_URL
value: "http://config-service:8080/"
- name: SPRING_CONFIG_IMPORT
value: "optional:configtree:/etc/secrets/"
volumeMounts:
- name: config-secrets
mountPath: /etc/secrets
readOnly: true
volumes:
- name: config-secrets
secret:
secretName: xd-config
---
apiVersion: v1
kind: Service
metadata:
name: xd
namespace: direct-project
labels:
app: xd
spec:
type: ClusterIP
selector:
app: xd
ports:
- name: http
port: 8080
targetPort: 8080