-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnode-port-no-ingress.yaml
95 lines (95 loc) · 2.47 KB
/
node-port-no-ingress.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
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
86
87
88
89
90
91
92
93
94
95
# IBM Confidential
# PID 5900-BAF
# Copyright StreamSets Inc., an IBM Company 2024
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: streamsets-deployment-${DEP_ID}
name: streamsets-deployment-${DEP_ID}
namespace: ${NAMESPACE}
spec:
replicas: 1
selector:
matchLabels:
app: streamsets-deployment-${DEP_ID}
template:
metadata:
labels:
app: streamsets-deployment-${DEP_ID}
spec:
serviceAccountName: ${SDC_SERVICE_ACCOUNT}
containers:
- name: streamsets-engine-${DEP_ID}
image: streamsets/datacollector:${SDC_VERSION}
startupProbe:
failureThreshold: 60
httpGet:
path: /public-rest/ping
port: engine-port
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
livenessProbe:
failureThreshold: 20
httpGet:
path: /public-rest/ping
port: engine-port
scheme: HTTPS
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
env:
- name: STREAMSETS_DEPLOYMENT_ID
value: ${DEP_ID}:${ORG_ID}
- name: STREAMSETS_DEPLOYMENT_TOKEN
valueFrom:
secretKeyRef:
key: token
name: streamsets-deployment-secret-${DEP_ID}
optional: false
- name: STREAMSETS_DEPLOYMENT_SCH_URL
value: ${SCH_URL}
ports:
- containerPort: 18630
name: engine-port
resources:
requests:
memory: "${REQUESTS_MEMORY}"
cpu: "${REQUESTS_CPU}"
limits:
memory: "${LIMITS_MEMORY}"
cpu: "${LIMITS_CPU}"
volumeMounts:
- name: sdc-keystore
mountPath: /resources/${KEYSTORE}
subPath: ${KEYSTORE}
- name: sdc-keystore-password
mountPath: /etc/sdc/keystore-password.txt
subPath: keystore-password.txt
volumes:
- name: sdc-keystore
secret:
secretName: sdc-keystore
- name: sdc-keystore-password
secret:
secretName: sdc-keystore-password
---
apiVersion: v1
kind: Service
metadata:
name: ${DEPLOYMENT_SUFFIX}
namespace: ${NAMESPACE}
labels:
app: ${DEP_ID}
spec:
type: ${SERVICE_TYPE}
ports:
- name: http
nodePort: ${SERVICE_PORT}
port: ${SERVICE_PORT}
targetPort: 18630
protocol: TCP
selector:
app: streamsets-deployment-${DEP_ID}