Using a DaemonSet for logstash is problematic for HA k8s
because pods are being scheduled on etcd and orchestration
nodes where we do not want them. Reverting back to a
Deployment with a default of 5 replicas instead.
Issue-ID: LOG-181
Change-Id: I8bbc165a6f23c31b372320c3a94181c689f1baef
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
# limitations under the License.
apiVersion: extensions/v1beta1
-kind: DaemonSet
+kind: Deployment
metadata:
name: {{ include "common.fullname" . }}
namespace: {{ include "common.namespace" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
+ replicas: {{ .Values.replicaCount }}
template:
metadata:
labels:
elasticsearchServiceName: log-es
elasticsearchPort: 9200
-# default number of instances matches cluster size via DaemonSet deployment
+# default number of instances
+# 30+ logs/sec will saturate a single node to 6+ vCores
+replicaCount: 5
nodeSelector: {}