-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpalo-be.yaml
108 lines (108 loc) · 2.08 KB
/
palo-be.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
96
97
98
99
100
101
102
103
104
105
106
107
108
---
kind: Service
apiVersion: v1
metadata:
name: palo-be-service
namespace: ns-palo
labels:
app: palo-be
spec:
ports:
- port: 9060
name: be-port
- port: 9070
name: be-rpc-port
- port: 8040
name: webserver-port
- port: 9050
name: heartbeat-service-port
- port: 8060
name: brpc-port
selector:
app: palo-be
---
kind: PersistentVolume
apiVersion: v1
metadata:
name: pv-volume-palo-be
namespace: ns-palo
labels:
type: local
spec:
storageClassName: manual
capacity:
storage: 100Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/data3/palo-be"
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: pv-claim-palo-be
namespace: ns-palo
spec:
storageClassName: manual
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 3Gi
---
kind: StatefulSet
apiVersion: apps/v1
metadata:
name: palo-be
namespace: ns-palo
labels:
app: palo-be
spec:
replicas: 3
selector:
matchLabels:
app: palo-be
serviceName: palo-be-service
template:
metadata:
labels:
app: palo-be
spec:
volumes:
- name: pv-storage-palo-be
persistentVolumeClaim:
claimName: pv-claim-palo-be
containers:
- name: palo-be
image: palo-be:v0.9.21-3
command: ["bash", "-c", "chown -R palo:palo /usr/share/palo/be && exec su palo docker-entrypoint.sh"]
ports:
- containerPort: 9060
protocol: TCP
- containerPort: 9070
protocol: TCP
- containerPort: 8040
protocol: TCP
- containerPort: 9050
protocol: TCP
- containerPort: 8060
protocol: TCP
volumeMounts:
- mountPath: /usr/share/palo/be/data
name: pv-storage-palo-be
---
kind: Service
apiVersion: v1
metadata:
labels:
app: palo-be
name: palo-be-web-service
namespace: ns-palo
spec:
type: NodePort
ports:
- port: 8040
targetPort: 8040
nodePort: 28040
selector:
app: palo-be