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