-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvalues.yaml
64 lines (54 loc) · 1.89 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
# Default values for ficus-eureka.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
image:
registry: harbor.sobey.com
repository: ficus/gluster/gluster-centos
repositorys3: ficus/gluster/gluster-s3
pullPolicy: IfNotPresent
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
proactive: release
shadowadminname: glustershadowadmin
# 是否允许k8s集群外访问,如果是,则意味着要开很多NodePort端口 @see StatefulSet.xml
cluster:
# 集群节点
nodes: 192.168.0.1,192.168.0.2
ports:
# @see https://docs.gluster.org/en/latest/Administrator%20Guide/Setting%20Up%20Clients/
# 主机端口从30807,30808代表
- 24007
- 24008
brickports:
# 根据描述,预留8个bricks端口
#(因为最终在Stateful中通过反亲和设置为按主机分布,
# 因此这里相当于最多8个主机,也就差球不多了)
# 主机端口从30852,30859代表
- 49152
- 49153
- 49154
- 49155
- 49156
- 49157
- 49158
- 49159
# S3服务相关
s3:
enable: false
capacity: 5
account: "glusters3volume"
user: "sobeyficus"
password: "sobeyficus2020"
enablenodeport: false
nodeport: 30880
# glusterfs的卷和对应的宿主机挂载路径
fs:
# 主机上面映射的工作目录。写死/var/lib/kubelet/glusterworkspace
# 在容器化的k8s环境,针对hostpath用subPath或subPathExpr,mount的主机路径一定要用一个特别的路径
# 一定要用/var/lib/kubelet路径。 @see https://github.com/kubernetes/kubernetes/issues/61456#issuecomment-375648214 @see https://github.com/rancher/rancher/issues/14836
# 实际上每个工作目录最终是/var/lib/kubelet/glusterworkspace//glusterfs-{n}
workdir: /var/lib/kubelet/glusterworkspace
# 这些就是将要创建的卷,同时,也就在工作目录下创建对应名称的brick目录
volumes: sobeyvolume
updateStrategy: RollingUpdate