-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhosts
291 lines (225 loc) · 13.2 KB
/
hosts
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
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
[OSEv3:vars]
###########################################################################
### Ansible Vars
###########################################################################
timeout=60
ansible_become=yes
ansible_user=ec2-user
###########################################################################
### OpenShift Basic Vars
###########################################################################
# disable memory check, as we are not a production environment
openshift_disable_check="disk_availability,memory_availability,docker_image_availability"
# Set this line to enable NFS
openshift_enable_unsupported_configurations=True
oreg_url=registry.access.redhat.com/openshift3/ose-${component}:${version}
openshift_examples_modify_imagestreams=true
containerized=false
openshift_deployment_type=openshift-enterprise
openshift_release="3.10.34"
# Node Groups
openshift_node_groups=[{'name': 'node-config-master', 'labels': ['node-role.kubernetes.io/master=true','runtime=docker']}, {'name': 'node-config-infra', 'labels': ['node-role.kubernetes.io/infra=true','runtime=docker']}, {'name': 'node-config-glusterfs', 'labels': ['runtime=docker']}, {'name': 'node-config-compute', 'labels': ['node-role.kubernetes.io/compute=true','runtime=docker'], 'edits': [{ 'key': 'kubeletArguments.pods-per-core','value': ['20']}]}]
# Configure node kubelet arguments. pods-per-core is valid in OpenShift Origin 1.3 or OpenShift Container Platform 3.3 and later. -> These need to go into the above
# openshift_node_kubelet_args={'pods-per-core': ['10'], 'max-pods': ['250'], 'image-gc-high-threshold': ['85'], 'image-gc-low-threshold': ['75']}
# Configure logrotate scripts
logrotate_scripts=[{"name": "syslog", "path": "/var/log/cron\n/var/log/maillog\n/var/log/messages\n/var/log/secure\n/var/log/spooler\n", "options": ["daily", "rotate 7","size 500M", "compress", "sharedscripts", "missingok"], "scripts": {"postrotate": "/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true"}}]
###########################################################################
### OpenShift Cockpit Vars
###########################################################################
# Enable cockpit
osm_use_cockpit=true
osm_cockpit_plugins=['cockpit-kubernetes']
###########################################################################
### OpenShift Master Vars
###########################################################################
openshift_master_api_port=443
openshift_master_console_port=443
openshift_master_default_subdomain=apps.GUID.example.opentlc.com
openshift_master_cluster_method=native
openshift_master_cluster_hostname=loadbalancer1.GUID.internal
openshift_master_cluster_public_hostname=loadbalancer1.GUID.example.opentlc.com
openshift_master_overwrite_named_certificates=True
#openshift_master_identity_providers=[{'name': 'ldap', 'challenge': 'true', 'login': 'true', 'kind': 'LDAPPasswordIdentityProvider','attributes': {'id': ['dn'], 'email': ['mail'], 'name': ['cn'], 'preferredUsername': ['uid']}, 'bindDN': 'uid=admin,cn=users,cn=accounts,dc=shared,dc=example,dc=opentlc,dc=com', 'bindPassword': 'r3dh4t1!', 'ca': '/etc/origin/master/ipa-ca.crt','insecure': 'false', 'url': 'ldaps://ipa.shared.example.opentlc.com:636/cn=users,cn=accounts,dc=shared,dc=example,dc=opentlc,dc=com?uid?sub?(memberOf=cn=ocp-users,cn=groups,cn=accounts,dc=shared,dc=example,dc=opentlc,dc=com)'}]
#openshift_master_ldap_ca_file=/root/ipa-ca.crt
###########################################################################
### OpenShift Network Vars
###########################################################################
osm_cluster_network_cidr=10.1.0.0/16
openshift_portal_net=172.30.0.0/16
# os_sdn_network_plugin_name='redhat/openshift-ovs-subnet'
os_sdn_network_plugin_name='redhat/openshift-ovs-networkpolicy'
###########################################################################
### OpenShift Authentication Vars
###########################################################################
# Set up http authentication
# uncomment the following to enable htpasswd authentication; defaults to DenyAllPasswordIdentityProvider
#openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider'}]
#openshift_master_htpasswd_file=/root/htpasswd.openshift
openshift_master_htpasswd_users={'admin':'$apr1$8RyJ8EHP$niF29aAGt5Nh00ojbU5vO0','ankit':'$apr1$1vuZq/U0$Aq0Kz3wk0YPleDz/rTCdK0','andrew':'$apr1$dZPb2ECf$ercevOFO5znrynUfUj4tb/','briany':'$apr1$KjULqmcD$XrhyYt2nWuiaQkbciDIcN/','brett':'$apr1$gTPaNeq0$sqWJDPZ5//ZDjLf0dSbUh1'}
# LDAP Authentication (download ipa-ca.crt first)
# openshift_master_identity_providers=[{'name': 'ldap', 'challenge': 'true', 'login': 'true', 'kind': 'LDAPPasswordIdentityProvider','attributes': {'id': ['dn'], 'email': ['mail'], 'name': ['cn'], 'preferredUsername': ['uid']}, 'bindDN': 'uid=admin,cn=users,cn=accounts,dc=shared,dc=example,dc=opentlc,dc=com', 'bindPassword': 'r3dh4t1!', 'ca': '/etc/origin/master/ipa-ca.crt','insecure': 'false', 'url': 'ldaps://ipa.shared.example.opentlc.com:636/cn=users,cn=accounts,dc=shared,dc=example,dc=opentlc,dc=com?uid?sub?(memberOf=cn=ocp-users,cn=groups,cn=accounts,dc=shared,dc=example,dc=opentlc,dc=com)'}]
# openshift_master_ldap_ca_file=/root/ipa-ca.crt
###########################################################################
### OpenShift Metrics and Logging Vars
###########################################################################
# default project node selector
# osm_default_node_selector='client=common'
# selector for hosted infra resources
# openshift_hosted_infra_selector="env=infra"
# Enable cluster logging
########################
openshift_logging_install_logging=True
openshift_logging_storage_kind=nfs
openshift_logging_storage_access_modes=['ReadWriteOnce']
openshift_logging_storage_nfs_directory=/srv/nfs
openshift_logging_storage_nfs_options='*(rw,root_squash)'
openshift_logging_storage_volume_name=logging
openshift_logging_storage_volume_size=10Gi
openshift_logging_storage_labels={'storage': 'logging'}
openshift_logging_es_pvc_storage_class_name=''
openshift_logging_es_memory_limit=8Gi
openshift_logging_es_nodeselector={"node-role.kubernetes.io/infra": "true"}
openshift_logging_kibana_nodeselector={"node-role.kubernetes.io/infra": "true"}
openshift_logging_curator_nodeselector={"node-role.kubernetes.io/infra": "true"}
openshift_logging_es_cluster_size=1
openshift_logging_curator_default_days=2
# enable cluster metrics
openshift_metrics_install_metrics=True
openshift_metrics_storage_kind=nfs
openshift_metrics_storage_access_modes=['ReadWriteOnce']
openshift_metrics_storage_nfs_directory=/srv/nfs
openshift_metrics_storage_nfs_options='*(rw,root_squash)'
openshift_metrics_storage_volume_name=metrics
openshift_metrics_storage_volume_size=10Gi
openshift_metrics_storage_labels={'storage': 'metrics'}
openshift_metrics_cassanda_pvc_storage_class_name=''
openshift_metrics_cassandra_nodeselector={"node-role.kubernetes.io/infra": "true"}
openshift_metrics_hawkular_nodeselector={"node-role.kubernetes.io/infra": "true"}
openshift_metrics_heapster_nodeselector={"node-role.kubernetes.io/infra": "true"}
# Store Metrics for 2 days
openshift_metrics_duration=2
# Add Prometheus Metrics:
#########################
openshift_hosted_prometheus_deploy=true
openshift_prometheus_namespace=openshift-metrics
openshift_prometheus_node_selector={"node-role.kubernetes.io/infra": "true"}
# openshift_prometheus_storage_kind=nfs
openshift_prometheus_storage_type='emptydir'
# For prometheus-alertmanager
openshift_prometheus_alertmanager_storage_type='emptydir'
# For prometheus-alertbuffer
openshift_prometheus_alertbuffer_storage_type='emptydir'
# Suggested Quotas and limits for Prometheus components:
openshift_prometheus_memory_requests=2Gi
openshift_prometheus_cpu_requests=750m
openshift_prometheus_memory_limit=2Gi
openshift_prometheus_cpu_limit=750m
openshift_prometheus_alertmanager_memory_requests=300Mi
openshift_prometheus_alertmanager_cpu_requests=200m
openshift_prometheus_alertmanager_memory_limit=300Mi
openshift_prometheus_alertmanager_cpu_limit=200m
openshift_prometheus_alertbuffer_memory_requests=300Mi
openshift_prometheus_alertbuffer_cpu_requests=200m
openshift_prometheus_alertbuffer_memory_limit=300Mi
openshift_prometheus_alertbuffer_cpu_limit=200m
# openshift_prometheus_storage_nfs_directory=/srv/nfs
# openshift_prometheus_storage_nfs_options='*(rw,root_squash)'
# openshift_prometheus_storage_labels={'storage': 'prometheus'}
# openshift_prometheus_storage_volume_size=20Gi
# openshift_prometheus_storage_access_modes=['ReadWriteOnce']
# openshift_prometheus_storage_volume_name=prometheus
# openshift_prometheus_storage_type='pvc'
# openshift_prometheus_alertmanager_storage_kind=nfs
# openshift_prometheus_alertmanager_storage_nfs_directory=/srv/nfs
# openshift_prometheus_alertmanager_storage_nfs_options='*(rw,root_squash)'
# openshift_prometheus_alertmanager_storage_labels={'storage': 'prometheus-alertmanager'}
# openshift_prometheus_alertmanager_storage_access_modes=['ReadWriteOnce']
# openshift_prometheus_alertmanager_storage_volume_size=10Gi
# openshift_prometheus_alertmanager_storage_volume_name=prometheus-alertmanager
# openshift_prometheus_alertmanager_storage_type='pvc'
# openshift_prometheus_alertbuffer_storage_kind=nfs
# openshift_prometheus_alertbuffer_storage_nfs_directory=/srv/nfs
# openshift_prometheus_alertbuffer_storage_nfs_options='*(rw,root_squash)'
# openshift_prometheus_alertbuffer_storage_labels={'storage': 'prometheus-alertbuffer'}
# openshift_prometheus_alertbuffer_storage_access_modes=['ReadWriteOnce']
# openshift_prometheus_alertbuffer_storage_volume_name=prometheus-alertbuffer
# openshift_prometheus_alertbuffer_storage_volume_size=10Gi
# openshift_prometheus_alertbuffer_storage_type='pvc'
# Grafana
openshift_grafana_node_selector={"node-role.kubernetes.io/infra":"true"}
openshift_grafana_storage_type=pvc
openshift_grafana_pvc_size=2Gi
openshift_grafana_node_exporter=true
###########################################################################
### OpenShift Service Catalog Vars
###########################################################################
openshift_enable_service_catalog=true
template_service_broker_install=true
# openshift_template_service_broker_namespaces=['openshift']
ansible_service_broker_install=true
ansible_service_broker_local_registry_whitelist=['.*-apb$']
###########################################################################
### OpenShift Router and Registry Vars
###########################################################################
openshift_hosted_router_replicas=2
# openshift_hosted_router_certificate={"certfile": "/path/to/router.crt", "keyfile": "/path/to/router.key", "cafile": "/path/to/router-ca.crt"}
openshift_hosted_registry_replicas=1
openshift_hosted_registry_storage_kind=nfs
openshift_hosted_registry_storage_access_modes=['ReadWriteMany']
openshift_hosted_registry_storage_nfs_directory=/srv/nfs
openshift_hosted_registry_storage_nfs_options='*(rw,root_squash)'
openshift_hosted_registry_storage_volume_name=registry
openshift_hosted_registry_storage_volume_size=20Gi
openshift_hosted_registry_pullthrough=true
openshift_hosted_registry_acceptschema2=true
openshift_hosted_registry_enforcequota=true
# openshift_hosted_etcd_storage_kind=nfs
# openshift_hosted_etcd_storage_nfs_options="*(rw,root_squash,sync,no_wdelay)"
# openshift_hosted_etcd_storage_nfs_directory=/srv/nfs
# openshift_hosted_etcd_storage_labels={'storage': 'etcd-asb'}
# openshift_hosted_etcd_storage_volume_name=etcd-asb
# openshift_hosted_etcd_storage_access_modes=['ReadWriteOnce']
# openshift_hosted_etcd_storage_volume_size=10G
###########################################################################
### OpenShift Hosts
###########################################################################
[OSEv3:children]
lb
masters
etcd
nodes
nfs
#glusterfs
[lb]
loadbalancer1.GUID.internal
[masters]
master1.GUID.internal
master2.GUID.internal
master3.GUID.internal
[etcd]
master1.GUID.internal
master2.GUID.internal
master3.GUID.internal
[nodes]
## These are the masters
master1.GUID.internal openshift_node_group_name='node-config-master'
master2.GUID.internal openshift_node_group_name='node-config-master'
master3.GUID.internal openshift_node_group_name='node-config-master'
## These are infranodes
infranode1.GUID.internal openshift_node_group_name='node-config-infra'
infranode2.GUID.internal openshift_node_group_name='node-config-infra'
## These are regular nodes
node1.GUID.internal openshift_node_group_name='node-config-compute'
node2.GUID.internal openshift_node_group_name='node-config-compute'
node3.GUID.internal openshift_node_group_name='node-config-compute'
## These are CNS nodes
# support1.GUID.internal openshift_hostname=support1.GUID.internal openshift_node_labels="{'env':'glusterfs', 'cluster': 'GUID'}"
# support2.GUID.internal openshift_hostname=support2.GUID.internal openshift_node_labels="{'env':'glusterfs', 'cluster': 'GUID'}"
# support3.GUID.internal openshift_hostname=support3.GUID.internal openshift_node_labels="{'env':'glusterfs', 'cluster': 'GUID'}"
[nfs]
support1.GUID.internal
# openshift_hostname=support1.GUID.internal
#[glusterfs]
# support1.GUID.internal glusterfs_devices='[ "/dev/xvdd" ]'
# support2.GUID.internal glusterfs_devices='[ "/dev/xvdd" ]'
# support3.GUID.internal glusterfs_devices='[ "/dev/xvdd" ]'