-
Notifications
You must be signed in to change notification settings - Fork 6
/
nifi-statefulset-aks-zookeeper.yaml
91 lines (91 loc) · 2.36 KB
/
nifi-statefulset-aks-zookeeper.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
apiVersion: v1
kind: Service
metadata:
name: nifi-headless
labels:
app: nifi
spec:
ports:
- port: 8080
name: http
clusterIP: None
selector:
app: nifi
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: nifi
spec:
selector:
matchLabels:
app: nifi
tier: backend
track: stable
serviceName: nifi-headless
replicas: 2
template:
metadata:
labels:
app: nifi
tier: backend
track: stable
spec:
containers:
- name: nifi
image: whshk/nifi
env:
- name: NIFI_CLUSTER_IS_NODE
value: "true"
- name: NIFI_CLUSTER_NODE_PROTOCOL_PORT
value: "2882"
- name: NIFI_ZK_CONNECT_STRING
value: vocal-whippet-zookeeper
- name: KUBERNETES_HEADLESS_SERVICE_NAME
value: nifi-headless
resources:
requests:
memory: "1Gi"
cpu: "250m"
limits:
memory: "1.5Gi"
cpu: "500m"
ports:
- name: http
containerPort: 8080
- name: protocol
containerPort: 2882
volumeMounts:
- name: nifi-data
mountPath: /opt/nifi/nifi-current/conf
subPath: conf
- name: nifi-data
mountPath: /opt/nifi/nifi-current/logs
subPath: logs
- name: nifi-data
mountPath: /opt/nifi/nifi-current/database_repository
subPath: database_repository
- name: nifi-data
mountPath: /opt/nifi/nifi-current/flowfile_repository
subPath: flowfile_repository
- name: nifi-data
mountPath: /opt/nifi/nifi-current/content_repository
subPath: content_repository
- name: nifi-data
mountPath: /opt/nifi/nifi-current/provenance_repository
subPath: provenance_repository
- name: nifi-data
mountPath: /opt/nifi/nifi-current/state
subPath: state
securityContext:
runAsUser: 1000
fsGroup: 1000
volumeClaimTemplates:
- metadata:
name: nifi-data
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: "default"
resources:
requests:
storage: 10Gi