-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathk8s_deployment_template.yaml
59 lines (59 loc) · 1.38 KB
/
k8s_deployment_template.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
52
53
54
55
56
57
58
59
apiVersion: apps/v1
kind: Deployment
metadata:
name: $MOD_DEPLOY_AS
labels:
app: $MOD_DEPLOY_AS
module: "mod-oa"
folio_role: "backend-module"
namespace: "$TARGET_NAMESPACE"
spec:
selector:
matchLabels:
app: $MOD_DEPLOY_AS
replicas: 1
template:
metadata:
labels:
app: $MOD_DEPLOY_AS
module: "mod-oa"
folio_role: "backend-module"
spec:
containers:
- name: $MOD_DEPLOY_AS
image: docker.libsdev.k-int.com/$MOD_IMAGE
imagePullPolicy: Always
envFrom:
- secretRef:
name: folio-db-connect
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: OKAPI_SERVICE_PORT
value: "9130"
- name: OKAPI_SERVICE_HOST
value: "okapi"
- name: JAVA_OPTIONS
value: "-server -XX:+UseContainerSupport -XX:MaxRAMPercentage=55.0 -XX:+PrintFlagsFinal"
ports:
- containerPort: 8080
protocol: TCP
resources:
requests:
memory: 768Mi
limits:
memory: 2Gi
---
apiVersion: v1
kind: Service
metadata:
name: $MOD_DEPLOY_AS
namespace: "$TARGET_NAMESPACE"
spec:
type: "ClusterIP"
selector:
app: $MOD_DEPLOY_AS
ports:
- port: 8080