-
Notifications
You must be signed in to change notification settings - Fork 0
/
values.yaml
271 lines (265 loc) · 6.33 KB
/
values.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
################################
############ 共享配置 ############
################################
shareConfig:
image:
repository: foxiswho/rocketmq
tag: 4.7.0
pullPolicy: IfNotPresent
# 日志共享挂载
# 节点选择
nodeSelector: {}
# type: manager
# 容忍节点
tolerations: []
# - operator: Exists
# 亲和性
affinity: {}
# 私有仓库秘钥
imagePullmi: []
# 全局名称
nameOverride: ""
# 全局名称
fullnameOverride: ""
serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name:
# Cluster domain
clusterDomain: cluster.local
publishNotReadyAddresses: true
# Broker所属哪个集群,默认【DefaultCluster】
brokerClusterName: quark
# 删除文件时间点,默认凌晨4点
deleteWhen: "04"
# 文件保留时间,默认48小时
fileReservedTime: "48"
# 是否允许Broker自动创建Topic,建议线下开启,线上关闭,默认【true】
autoCreateTopicEnable: true
# 刷盘方式,SYNC_FLUSH 同部刷盘,ASYNC_FLUSH 异步刷盘
flushDiskType: ASYNC_FLUSH
################################
############ 域名配置 ############
################################
ingress:
enabled: false
certManager: false
hostname: rockermq.akiraka.net
path: /
annotations:
kubernetes.io/ingress.allow-http: "true"
# 只在配置了HTTPS之后才会生效进行跳转
nginx.ingress.kubernetes.io/ssl-redirect: "false"
# 强制跳转到https,不论是否配置了https证书
nginx.ingress.kubernetes.io/force-ssl-redirect: "false"
# extraHosts:
# - name: tomcat.akiraka.net
# path: /
tls: false
# extraTls:
# - hosts:
# - tomcat.akiraka.net
# secretName: tomcat.akiraka.net
secrets: []
# - name: tomcat.akiraka.net
# key:
# certificate:
################################
######## RocketMQ Console ########
################################
console:
enabled: true
# 副本数量
replicaCount: 1
# 应用名称
appName: rocketmq-console
image:
repository: styletang/rocketmq-console-ng
tag: 1.0.0
pullPolicy: IfNotPresent
# svc 设置
service:
type: NodePort
consoleport: 8080
# nodePort:
# 判断容器是否存活
livenessProbe:
enabled: false
initialDelaySeconds: 30
failureThreshold: 6
timeoutSeconds: 5
# 判断容器是否启动完成
readinessProbe:
enabled: false
initialDelaySeconds: 30
periodSeconds: 20
timeoutSeconds: 3
# 性能设置
resources:
limits:
cpu: 500m
memory: 1024Mi
requests:
cpu: 500m
memory: 512Mi
# 安全上下文
securityContext:
runAsUser: 0
runAsGroup: 0
privileged: true
################################
######## RocketMQ Namesrv #######
################################
namesrv:
enabled: true
# Slave 数量
replicaCount: 1
# 应用名称
appName: rocketmq-namesrv
# svc 设置
service:
type: ClusterIP
namesrvPort: 9876
# nodePort:
# 判断容器是否存活
livenessProbe:
enabled: false
initialDelaySeconds: 30
failureThreshold: 6
timeoutSeconds: 5
# 判断容器是否启动完成
readinessProbe:
enabled: false
initialDelaySeconds: 30
periodSeconds: 20
timeoutSeconds: 3
# 性能设置
resources:
limits:
cpu: 500m
memory: 1024Mi
requests:
cpu: 500m
memory: 512Mi
# 安全上下文
securityContext:
runAsUser: 0
runAsGroup: 0
privileged: true
# 容器环境变量
containerEnv:
- name: JAVA_OPT_EXT
value: -Duser.home=/opt -Xms512M -Xmx1024M -Xmn256m
################################
######## RocketMQ Master #######
################################
master:
enabled: true
# 副本数量
replicaCount: 1
# 应用名称
appName: rocketmq-master
# svc 设置
service:
type: ClusterIP
slavePort: 10911
serverPort: 10909
haListenPort: 10912
# 判断容器是否存活
livenessProbe:
enabled: false
initialDelaySeconds: 30
failureThreshold: 6
timeoutSeconds: 5
# 判断容器是否启动完成
readinessProbe:
enabled: false
initialDelaySeconds: 30
periodSeconds: 20
timeoutSeconds: 3
# 性能设置
resources:
limits:
cpu: 500m
memory: 1024Mi
requests:
cpu: 500m
memory: 512Mi
# 安全上下文
securityContext:
runAsUser: 0
runAsGroup: 0
# allowPrivilegeEscalation: false
privileged: true
# 容器环境变量
containerEnv:
- name: JAVA_OPT_EXT
value: -Duser.home=/opt -Xms512M -Xmx1024M -Xmn256m
# Broker 角色,SYNC_MASTER 同步双写 Master,ASYNC_MASTER 异步复制 Master,SLAVE 从角色
brokerRole: SYNC_MASTER
# BrokerId,必须是大等于0的整数,0 表示Master,> 0表示Slave
brokerId: "0"
################################
######## RocketMQ Slave ########
################################
slave:
enabled: true
# 副本数量
replicaCount: 1
# 应用名称
appName: rocketmq-salve
# svc 设置
service:
type: ClusterIP
slavePort: 10911
serverPort: 10909
haListenPort: 10912
# 判断容器是否存活
livenessProbe:
enabled: false
initialDelaySeconds: 30
failureThreshold: 6
timeoutSeconds: 5
# 判断容器是否启动完成
readinessProbe:
enabled: false
initialDelaySeconds: 30
periodSeconds: 20
timeoutSeconds: 3
# 性能设置
resources:
limits:
cpu: 500m
memory: 1024Mi
requests:
cpu: 500m
memory: 512Mi
# 安全上下文
securityContext:
runAsUser: 0
runAsGroup: 0
privileged: true
# 容器环境变量
containerEnv:
- name: JAVA_OPT_EXT
value: -Duser.home=/opt -Xms512M -Xmx1024M -Xmn256m
# Broker 角色,SYNC_MASTER 同步双写 Master,ASYNC_MASTER 异步复制 Master,SLAVE 从角色
brokerRole: SLAVE
# BrokerId,必须是大等于0的整数,0 表示Master,> 0表示Slave
brokerId: "1"
################################
####### 自动绑定 pvc 与 pv #######
################################
persistence:
enabled: false
size: "60Gi"
accessModes:
- ReadWriteOnce
# 绑定动态 PV
storageClass: rocketmq-test
# existingClaim:
annotations: {}