|
|
@ -1,14 +1,15 @@ |
|
|
|
--- |
|
|
|
# https://raw.githubusercontent.com/kubernetes/kubernetes/v1.5.2/cluster/addons/fluentd-elasticsearch/es-controller.yaml |
|
|
|
apiVersion: extensions/v1beta1 |
|
|
|
kind: Deployment |
|
|
|
# https://raw.githubusercontent.com/kubernetes/kubernetes/v1.10.2/cluster/addons/fluentd-elasticsearch/es-statefulset.yaml |
|
|
|
apiVersion: apps/v1 |
|
|
|
kind: StatefulSet |
|
|
|
metadata: |
|
|
|
name: elasticsearch-logging-v1 |
|
|
|
name: elasticsearch-logging |
|
|
|
namespace: kube-system |
|
|
|
labels: |
|
|
|
k8s-app: elasticsearch-logging |
|
|
|
version: "{{ elasticsearch_image_tag }}" |
|
|
|
kubernetes.io/cluster-service: "true" |
|
|
|
addonmanager.kubernetes.io/mode: Reconcile |
|
|
|
spec: |
|
|
|
replicas: 2 |
|
|
|
selector: |
|
|
@ -53,4 +54,10 @@ spec: |
|
|
|
{% if rbac_enabled %} |
|
|
|
serviceAccountName: efk |
|
|
|
{% endif %} |
|
|
|
initContainers: |
|
|
|
- image: alpine:3.6 |
|
|
|
command: ["/sbin/sysctl", "-w", "vm.max_map_count=262144"] |
|
|
|
name: elasticsearch-logging-init |
|
|
|
securityContext: |
|
|
|
privileged: true |
|
|
|
|