@@ -16,14 +16,14 @@ metadata:
16
16
k8s-app : elasticsearch-logging
17
17
addonmanager.kubernetes.io/mode : Reconcile
18
18
rules :
19
- - apiGroups :
20
- - " "
21
- resources :
22
- - " services"
23
- - " namespaces"
24
- - " endpoints"
25
- verbs :
26
- - " get"
19
+ - apiGroups :
20
+ - " "
21
+ - resources :
22
+ - " services"
23
+ - " namespaces"
24
+ - " endpoints"
25
+ - verbs :
26
+ - " get"
27
27
---
28
28
kind : ClusterRoleBinding
29
29
apiVersion : rbac.authorization.k8s.io/v1
@@ -34,10 +34,10 @@ metadata:
34
34
k8s-app : elasticsearch-logging
35
35
addonmanager.kubernetes.io/mode : Reconcile
36
36
subjects :
37
- - kind : ServiceAccount
38
- name : elasticsearch-logging
39
- namespace : kube-system
40
- apiGroup : " "
37
+ - kind : ServiceAccount
38
+ name : elasticsearch-logging
39
+ namespace : kube-system
40
+ apiGroup : " "
41
41
roleRef :
42
42
kind : ClusterRole
43
43
name : elasticsearch-logging
@@ -59,60 +59,62 @@ spec:
59
59
selector :
60
60
matchLabels :
61
61
k8s-app : elasticsearch-logging
62
- version : v7.4.2
62
+ version : v7.4.2-1
63
63
template :
64
64
metadata :
65
65
labels :
66
66
k8s-app : elasticsearch-logging
67
- version : v7.4.2
67
+ version : v7.4.2-1
68
68
spec :
69
69
serviceAccountName : elasticsearch-logging
70
70
containers :
71
- - image : quay.io/fluentd_elasticsearch/elasticsearch:v7.4.2
72
- name : elasticsearch-logging
73
- imagePullPolicy : Always
74
- resources :
75
- # need more cpu upon initialization, therefore burstable class
76
- limits :
77
- cpu : 1000m
78
- memory : 3Gi
79
- requests :
80
- cpu : 100m
81
- memory : 3Gi
82
- ports :
83
- - containerPort : 9200
84
- name : db
85
- protocol : TCP
86
- - containerPort : 9300
87
- name : transport
88
- protocol : TCP
89
- livenessProbe :
90
- tcpSocket :
91
- port : transport
92
- initialDelaySeconds : 5
93
- timeoutSeconds : 10
94
- readinessProbe :
95
- tcpSocket :
96
- port : transport
97
- initialDelaySeconds : 5
98
- timeoutSeconds : 10
99
- volumeMounts :
100
- - name : elasticsearch-logging
101
- mountPath : /data
102
- env :
103
- - name : " NAMESPACE"
104
- valueFrom :
105
- fieldRef :
106
- fieldPath : metadata.namespace
71
+ - image : quay.io/fluentd_elasticsearch/elasticsearch:v7.4.2
72
+ name : elasticsearch-logging
73
+ imagePullPolicy : Always
74
+ resources :
75
+ # need more cpu upon initialization, therefore burstable class
76
+ limits :
77
+ cpu : 1000m
78
+ memory : 3Gi
79
+ requests :
80
+ cpu : 100m
81
+ memory : 3Gi
82
+ ports :
83
+ - containerPort : 9200
84
+ name : db
85
+ protocol : TCP
86
+ - containerPort : 9300
87
+ name : transport
88
+ protocol : TCP
89
+ livenessProbe :
90
+ tcpSocket :
91
+ port : transport
92
+ initialDelaySeconds : 5
93
+ timeoutSeconds : 10
94
+ readinessProbe :
95
+ tcpSocket :
96
+ port : transport
97
+ initialDelaySeconds : 5
98
+ timeoutSeconds : 10
99
+ volumeMounts :
100
+ - name : elasticsearch-logging
101
+ mountPath : /data
102
+ env :
103
+ - name : " NAMESPACE"
104
+ valueFrom :
105
+ fieldRef :
106
+ fieldPath : metadata.namespace
107
+ - name : " MINIMUM_MASTER_NODES"
108
+ value : " 1"
107
109
volumes :
108
- - name : elasticsearch-logging
109
- emptyDir : {}
110
+ - name : elasticsearch-logging
111
+ emptyDir : {}
110
112
# Elasticsearch requires vm.max_map_count to be at least 262144.
111
113
# If your OS already sets up this number to a higher value, feel free
112
114
# to remove this init container.
113
115
initContainers :
114
- - image : alpine:3.6
115
- command : ["/sbin/sysctl", "-w", "vm.max_map_count=262144"]
116
- name : elasticsearch-logging-init
117
- securityContext :
118
- privileged : true
116
+ - image : alpine:3.6
117
+ command : ["/sbin/sysctl", "-w", "vm.max_map_count=262144"]
118
+ name : elasticsearch-logging-init
119
+ securityContext :
120
+ privileged : true
0 commit comments