-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathquestions.yml
88 lines (88 loc) · 2.59 KB
/
questions.yml
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
labels:
io.cattle.role: project # options are cluster/project
io.rancher.app_min_version: 0.1.0
categories:
- Microservice
- glusterfs
questions:
- variable: image.registry
default: "opendata.sobeylingyun.com"
description: "镜像服务器地址"
type: enum
required: true
label: 镜像服务器地址
options:
- "opendata.sobeylingyun.com"
- "harbor.sobey.com"
#- variable: cluster.hostAffinity
# group: "集群配置"
# default: true
# description: "默认开启,意味着每个主机只能启动一个POD"
# label: 是否开启主机反亲和
# type: enum
# options:
# - true
# - false
- variable: cluster.nodes
group: "集群配置"
description: "集群的node的IP,所有节点都应该配置进来。集群节点一旦确定,后续将不会再修改"
label: 以“,”分割,设置集群node的ip
type: string
required: true
- variable: fs.volumes
group: "集群配置"
description: |-
设置卷,多个以','分割。每一个名称就是复制卷卷名。
以sobeyvolume为例,容器内/glustervolumes/sobeyvolume;主机/var/lib/kubelet/glusterworkspace/glusterfs-0/volumes/sobeyvolume
type: string
label: 以“,”分割,设置1个或多个卷
required: true
- variable: s3.enable
default: false
description: |-
是否开启S3服务。如果开启,将设置S3相关信息\nS3的集群内访问地址为http://glusterfs-s3[.namespace]:8080/xxxx\n
如果开启了nodeport,则集群外访问地址为http://host:nodeport/xxxxx
type: enum
group: "S3设置"
options:
- true
- false
required: true
label: 是否开启S3服务
show_subquestion_if: true
subquestions:
- variable: s3.account
default: "glusters3volume"
description: "S3卷设置"
type: string
label: "S3_ACCOUNT设置"
- variable: s3.user
default: "sobeyficus"
description: "S3_USER设置"
type: string
label: "S3_USER设置"
- variable: s3.password
default: "sobeyficus2020"
description: "S3_PASSWORD设置"
type: string
label: "S3_PASSWORD设置"
- variable: s3.capacity
default: 5
description: "S3存储卷的大小设置(Gi)"
type: int
label: "S3存储卷的大小设置"
- variable: s3.enablenodeport
description: "是否开启S3服务的nodeport,如果开启,需要填写nodeport"
type: enum
default: false
options:
- true
- false
label: "是否开启S3服务的nodeport"
- variable: s3.nodeport
default: 30880
group: "S3设置"
description: "设置S3服务的nodeport"
type: int
label: "S3服务的nodeport"
show_if: "s3.enablenodeport=true"