-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathceph-hosts.j2
150 lines (148 loc) · 2.93 KB
/
ceph-hosts.j2
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
---
service_type: host
hostname: master
addr: {{ master_ip }}
labels:
- _admin
---
service_type: host
hostname: worker1
addr: {{ worker1_ip }}
labels:
- mon
- mgr
- mds
- osd
- alertmanager
- rgw
---
service_type: host
hostname: worker2
addr: {{ worker2_ip }}
labels:
- mon
- mgr
- mds
- osd
- prometheus
- rgw
---
service_type: host
hostname: worker3
addr: {{ worker3_ip }}
labels:
- mon
- mgr
- mds
- osd
- rgw
---
service_type: alertmanager
service_name: alertmanager
placement:
count: 1
hosts:
- 'worker1'
---
service_type: prometheus
service_name: prometheus
placement:
count: 1
hosts:
- 'worker2'
---
service_type: mds
service_id: mds
service_name: mds.mds
placement:
count: 2
label: mds
---
service_type: mgr
service_name: mgr
placement:
count: 2
hosts:
- worker1
- worker2
- worker3
---
service_type: mon
service_name: mon
placement:
count: 3
hosts:
- worker1
- worker2
- worker3
---
service_type: osd
service_name: osd
placement:
count: 3
hosts:
- worker1
- worker2
- worker3
crush_device_class: hdd
spec:
data_devices:
rotational: true
size: 10GB
filter_logic: AND
objectstore: bluestore
{% if disk_scenario == "scenario2" %}
db_devices:
rotational: true
size: 9GB
{% elif disk_scenario == "scenario3" %}
db_devices:
rotational: true
size: 9GB
wal_devices:
rotational: true
size: 8GB
{% endif %}
---
service_type: node-exporter
service_name: node-exporter
placement:
host_pattern: 'worker*'
---
service_type: crash
service_name: crash
placement:
host_pattern: 'worker*'
---
service_type: rgw
service_id: testing-eu-east
service_name: rgw.testing-eu-east
placement:
count: 3
host_pattern: 'worker*'
#spec:
# rgw_zonegroup: eu
# rgw_zone: eu-east
# rgw_realm: eu-east
# rgw_frontend_type: "beast"
# rgw_frontend_port: 8080
#
# NOTE: rgw object might be created, good, but the config is set elsewhere, which means: the default will not be changed for the zones.
# So current solution: change default afterwards, like this, manually:
# sudo radosgw-admin realm create --rgw-realm=eu-east --default
# sudo radosgw-admin zonegroup create --rgw-zonegroup=eu --rgw-realm=eu-east --master --default
# sudo radosgw-admin zone create --rgw-zonegroup=eu --rgw-zone=eu-east --master --default
# sudo radosgw-admin zonegroup remove --rgw-zonegroup=default --rgw-zone=default
# sudo radosgw-admin period update --commit
#
# you might want to delete the default entirely as well
# sudo radosgw-admin zone delete --rgw-zone=default
# sudo radosgw-admin period update --commit
# sudo radosgw-admin zonegroup delete --rgw-zonegroup=default
# sudo radosgw-admin period update --commit
#
# Then redeploy all rgws! (in the gui for example)
# ceph orch redeploy rgw.testing-eu-east (first check with ceph orch ls for correct name of rgw resource)
#
# NOTE: you dont need grafana? Me neither. This is how you delete it:
# ceph orch rm grafana