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 @@ -1068,6 +1068,51 @@ test-project:
1068
1068
read_lines_limit: 100
1069
1069
----
1070
1070
====
1071
+
1072
+ When you make changes to any part of the EFK stack, specifically Elasticsearch
1073
+ or Fluentd, you should first scale Elasicsearch down to zero and scale Fluentd
1074
+ so it does not match any other nodes. Then, make the changes and scale
1075
+ Elasicsearch and Fluentd back.
1076
+
1077
+ To scale Elasicsearch to zero:
1078
+ ----
1079
+ $ oc scale --replicas=0 dc/<ELASTICSEARCH_DC>
1080
+ ----
1081
+
1082
+ Change nodeSelector in the daemonset configuration to match zero:
1083
+
1084
+ .Get the fluentd node selector:
1085
+ ----
1086
+ $ oc get ds logging-fluentd -o yaml |grep -A 1 Selector
1087
+ nodeSelector:
1088
+ logging-infra-fluentd: "true"
1089
+ ----
1090
+
1091
+ .Use the `oc patch` command to modify the daemonset nodeSelector:
1092
+ ----
1093
+ $ oc patch ds logging-fluentd -p '{"spec":{"template":{"spec":{"nodeSelector":{"nonexistlabel":"true"}}}}}'
1094
+ ----
1095
+
1096
+ .Get the fluentd node selector:
1097
+ ----
1098
+ $ oc get ds logging-fluentd -o yaml |grep -A 1 Selector
1099
+ nodeSelector:
1100
+ "nonexistlabel: "true"
1101
+ ----
1102
+
1103
+ Scale Elastcsearch back up from zero:
1104
+ ----
1105
+ $ oc scale --replicas=# dc/<ELASTICSEARCH_DC>
1106
+ ----
1107
+
1108
+ Change nodeSelector in the daemonset configuration back to
1109
+ logging-infra-fluentd: "true".
1110
+
1111
+ Use the `oc patch` command to modify the daemonset nodeSelector:
1112
+ ----
1113
+ oc patch ds logging-fluentd -p '{"spec":{"template":{"spec":{"nodeSelector":{"logging-infra-fluentd":"true"}}}}}'
1114
+ ----
1115
+
1071
1116
[[aggregate-logging-kibana]]
1072
1117
=== Kibana
1073
1118
You can’t perform that action at this time.
0 commit comments