File tree 1 file changed +45
-0
lines changed
1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -1178,6 +1178,51 @@ test-project:
1178
1178
read_lines_limit: 100
1179
1179
----
1180
1180
====
1181
+
1182
+ When you make changes to any part of the EFK stack, specifically Elasticsearch
1183
+ or Fluentd, you should first scale Elasicsearch down to zero and scale Fluentd
1184
+ so it does not match any other nodes. Then, make the changes and scale
1185
+ Elasicsearch and Fluentd back.
1186
+
1187
+ To scale Elasicsearch to zero:
1188
+ ----
1189
+ $ oc scale --replicas=0 dc/<ELASTICSEARCH_DC>
1190
+ ----
1191
+
1192
+ Change nodeSelector in the daemonset configuration to match zero:
1193
+
1194
+ .Get the fluentd node selector:
1195
+ ----
1196
+ $ oc get ds logging-fluentd -o yaml |grep -A 1 Selector
1197
+ nodeSelector:
1198
+ logging-infra-fluentd: "true"
1199
+ ----
1200
+
1201
+ .Use the `oc patch` command to modify the daemonset nodeSelector:
1202
+ ----
1203
+ $ oc patch ds logging-fluentd -p '{"spec":{"template":{"spec":{"nodeSelector":{"nonexistlabel":"true"}}}}}'
1204
+ ----
1205
+
1206
+ .Get the fluentd node selector:
1207
+ ----
1208
+ $ oc get ds logging-fluentd -o yaml |grep -A 1 Selector
1209
+ nodeSelector:
1210
+ "nonexistlabel: "true"
1211
+ ----
1212
+
1213
+ Scale Elastcsearch back up from zero:
1214
+ ----
1215
+ $ oc scale --replicas=# dc/<ELASTICSEARCH_DC>
1216
+ ----
1217
+
1218
+ Change nodeSelector in the daemonset configuration back to
1219
+ logging-infra-fluentd: "true".
1220
+
1221
+ Use the `oc patch` command to modify the daemonset nodeSelector:
1222
+ ----
1223
+ oc patch ds logging-fluentd -p '{"spec":{"template":{"spec":{"nodeSelector":{"logging-infra-fluentd":"true"}}}}}'
1224
+ ----
1225
+
1181
1226
[[aggregate-logging-kibana]]
1182
1227
=== Kibana
1183
1228
You can’t perform that action at this time.
0 commit comments