Skip to content

Commit 60f02f9

Browse files
committed
keep things up to date
1 parent 237db64 commit 60f02f9

File tree

11 files changed

+722
-96
lines changed

11 files changed

+722
-96
lines changed

bin/demo.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
# Author: Bin Wu <[email protected]>
44

55
pwd=`pwd`
6-
cluster_name=elk-demo
6+
cluster_name=elastic-demo
77
region=asia-east1
88
# zone=asia-east1-a
99
project_id=du-hast-mich
1010
default_pool=default-pool
1111
nodes_per_zone=5 # per zone
1212
machine_type=e2-standard-2
1313
release_channel=None # None -> static, e.g. rapid, regular, stable
14-
gke_version=1.24.5-gke.600
15-
eck_version=2.4.0
14+
gke_version=1.25.5-gke.1500
15+
eck_version=2.6.1
1616
es_cluster_name=dingo-demo
1717

1818
__create_gke() {

bin/gke.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ default_pool=default-pool
1111
nodes_per_zone=6 # per zone
1212
machine_type=n2-standard-8
1313
release_channel=None # None -> static, e.g. rapid, regular, stable
14-
gke_version=1.24.5-gke.600
15-
eck_version=2.4.0
14+
gke_version=1.25.5-gke.1500
15+
eck_version=2.6.1
1616
__usage() {
1717
echo "Usage: ./bin/gke.sh {create|(delete,del,d)|scale|fix}"
1818
}

conf/crds.yaml

Lines changed: 610 additions & 53 deletions
Large diffs are not rendered by default.

conf/operator.yaml

Lines changed: 100 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ metadata:
1414
namespace: elastic-system
1515
labels:
1616
control-plane: elastic-operator
17-
app.kubernetes.io/version: "2.4.0"
17+
app.kubernetes.io/version: "2.6.1"
1818
---
1919
# Source: eck-operator/templates/webhook.yaml
2020
apiVersion: v1
@@ -24,7 +24,7 @@ metadata:
2424
namespace: elastic-system
2525
labels:
2626
control-plane: elastic-operator
27-
app.kubernetes.io/version: "2.4.0"
27+
app.kubernetes.io/version: "2.6.1"
2828
---
2929
# Source: eck-operator/templates/configmap.yaml
3030
apiVersion: v1
@@ -34,27 +34,9 @@ metadata:
3434
namespace: elastic-system
3535
labels:
3636
control-plane: elastic-operator
37-
app.kubernetes.io/version: "2.4.0"
37+
app.kubernetes.io/version: "2.6.1"
3838
data:
39-
eck.yaml: |-
40-
log-verbosity: 0
41-
metrics-port: 0
42-
container-registry: docker.elastic.co
43-
max-concurrent-reconciles: 3
44-
ca-cert-validity: 8760h
45-
ca-cert-rotate-before: 24h
46-
cert-validity: 8760h
47-
cert-rotate-before: 24h
48-
exposed-node-labels: [topology.kubernetes.io/.*,failure-domain.beta.kubernetes.io/.*]
49-
set-default-security-context: auto-detect
50-
kube-client-timeout: 60s
51-
elasticsearch-client-timeout: 180s
52-
disable-telemetry: false
53-
distribution-channel: all-in-one
54-
validate-storage-class: true
55-
enable-webhook: true
56-
webhook-name: elastic-webhook.k8s.elastic.co
57-
enable-leader-election: true
39+
eck.yaml: "log-verbosity: 0\nmetrics-port: 0\ncontainer-registry: docker.elastic.co\ncontainer-suffix: \nmax-concurrent-reconciles: 3\nca-cert-validity: 8760h\nca-cert-rotate-before: 24h\ncert-validity: 8760h\ncert-rotate-before: 24h\nexposed-node-labels: [topology.kubernetes.io/.*,failure-domain.beta.kubernetes.io/.*]\nset-default-security-context: auto-detect\nkube-client-timeout: 60s\nelasticsearch-client-timeout: 180s\ndisable-telemetry: false\ndistribution-channel: all-in-one\nvalidate-storage-class: true\nenable-webhook: true\nwebhook-name: elastic-webhook.k8s.elastic.co\nenable-leader-election: true\nelasticsearch-observation-interval: 10s"
5840
---
5941
# Source: eck-operator/templates/cluster-roles.yaml
6042
apiVersion: rbac.authorization.k8s.io/v1
@@ -63,7 +45,7 @@ metadata:
6345
name: elastic-operator
6446
labels:
6547
control-plane: elastic-operator
66-
app.kubernetes.io/version: "2.4.0"
48+
app.kubernetes.io/version: "2.6.1"
6749
rules:
6850
- apiGroups:
6951
- "authorization.k8s.io"
@@ -151,6 +133,19 @@ rules:
151133
- create
152134
- update
153135
- patch
136+
- apiGroups:
137+
- autoscaling.k8s.elastic.co
138+
resources:
139+
- elasticsearchautoscalers
140+
- elasticsearchautoscalers/status
141+
- elasticsearchautoscalers/finalizers # needed for ownerReferences with blockOwnerDeletion on OCP
142+
verbs:
143+
- get
144+
- list
145+
- watch
146+
- create
147+
- update
148+
- patch
154149
- apiGroups:
155150
- kibana.k8s.elastic.co
156151
resources:
@@ -229,6 +224,19 @@ rules:
229224
- create
230225
- update
231226
- patch
227+
- apiGroups:
228+
- stackconfigpolicy.k8s.elastic.co
229+
resources:
230+
- stackconfigpolicies
231+
- stackconfigpolicies/status
232+
- stackconfigpolicies/finalizers # needed for ownerReferences with blockOwnerDeletion on OCP
233+
verbs:
234+
- get
235+
- list
236+
- watch
237+
- create
238+
- update
239+
- patch
232240
- apiGroups:
233241
- storage.k8s.io
234242
resources:
@@ -268,11 +276,14 @@ metadata:
268276
rbac.authorization.k8s.io/aggregate-to-edit: "true"
269277
rbac.authorization.k8s.io/aggregate-to-admin: "true"
270278
control-plane: elastic-operator
271-
app.kubernetes.io/version: "2.4.0"
279+
app.kubernetes.io/version: "2.6.1"
272280
rules:
273281
- apiGroups: ["elasticsearch.k8s.elastic.co"]
274282
resources: ["elasticsearches"]
275283
verbs: ["get", "list", "watch"]
284+
- apiGroups: ["autoscaling.k8s.elastic.co"]
285+
resources: ["elasticsearchautoscalers"]
286+
verbs: ["get", "list", "watch"]
276287
- apiGroups: ["apm.k8s.elastic.co"]
277288
resources: ["apmservers"]
278289
verbs: ["get", "list", "watch"]
@@ -291,6 +302,9 @@ rules:
291302
- apiGroups: ["maps.k8s.elastic.co"]
292303
resources: ["elasticmapsservers"]
293304
verbs: ["get", "list", "watch"]
305+
- apiGroups: ["stackconfigpolicy.k8s.elastic.co"]
306+
resources: ["stackconfigpolicies"]
307+
verbs: ["get", "list", "watch"]
294308
---
295309
# Source: eck-operator/templates/cluster-roles.yaml
296310
apiVersion: rbac.authorization.k8s.io/v1
@@ -301,11 +315,14 @@ metadata:
301315
rbac.authorization.k8s.io/aggregate-to-edit: "true"
302316
rbac.authorization.k8s.io/aggregate-to-admin: "true"
303317
control-plane: elastic-operator
304-
app.kubernetes.io/version: "2.4.0"
318+
app.kubernetes.io/version: "2.6.1"
305319
rules:
306320
- apiGroups: ["elasticsearch.k8s.elastic.co"]
307321
resources: ["elasticsearches"]
308322
verbs: ["create", "delete", "deletecollection", "patch", "update"]
323+
- apiGroups: ["autoscaling.k8s.elastic.co"]
324+
resources: ["elasticsearchautoscalers"]
325+
verbs: ["create", "delete", "deletecollection", "patch", "update"]
309326
- apiGroups: ["apm.k8s.elastic.co"]
310327
resources: ["apmservers"]
311328
verbs: ["create", "delete", "deletecollection", "patch", "update"]
@@ -324,6 +341,9 @@ rules:
324341
- apiGroups: ["maps.k8s.elastic.co"]
325342
resources: ["elasticmapsservers"]
326343
verbs: ["create", "delete", "deletecollection", "patch", "update"]
344+
- apiGroups: ["stackconfigpolicy.k8s.elastic.co"]
345+
resources: ["stackconfigpolicies"]
346+
verbs: ["create", "delete", "deletecollection", "patch", "update"]
327347
---
328348
# Source: eck-operator/templates/role-bindings.yaml
329349
apiVersion: rbac.authorization.k8s.io/v1
@@ -332,7 +352,7 @@ metadata:
332352
name: elastic-operator
333353
labels:
334354
control-plane: elastic-operator
335-
app.kubernetes.io/version: "2.4.0"
355+
app.kubernetes.io/version: "2.6.1"
336356
roleRef:
337357
apiGroup: rbac.authorization.k8s.io
338358
kind: ClusterRole
@@ -350,7 +370,7 @@ metadata:
350370
namespace: elastic-system
351371
labels:
352372
control-plane: elastic-operator
353-
app.kubernetes.io/version: "2.4.0"
373+
app.kubernetes.io/version: "2.6.1"
354374
spec:
355375
ports:
356376
- name: https
@@ -367,7 +387,7 @@ metadata:
367387
namespace: elastic-system
368388
labels:
369389
control-plane: elastic-operator
370-
app.kubernetes.io/version: "2.4.0"
390+
app.kubernetes.io/version: "2.6.1"
371391
spec:
372392
selector:
373393
matchLabels:
@@ -380,7 +400,7 @@ spec:
380400
# Rename the fields "error" to "error.message" and "source" to "event.source"
381401
# This is to avoid a conflict with the ECS "error" and "source" documents.
382402
"co.elastic.logs/raw": "[{\"type\":\"container\",\"json.keys_under_root\":true,\"paths\":[\"/var/log/containers/*${data.kubernetes.container.id}.log\"],\"processors\":[{\"convert\":{\"mode\":\"rename\",\"ignore_missing\":true,\"fields\":[{\"from\":\"error\",\"to\":\"_error\"}]}},{\"convert\":{\"mode\":\"rename\",\"ignore_missing\":true,\"fields\":[{\"from\":\"_error\",\"to\":\"error.message\"}]}},{\"convert\":{\"mode\":\"rename\",\"ignore_missing\":true,\"fields\":[{\"from\":\"source\",\"to\":\"_source\"}]}},{\"convert\":{\"mode\":\"rename\",\"ignore_missing\":true,\"fields\":[{\"from\":\"_source\",\"to\":\"event.source\"}]}}]}]"
383-
"checksum/config": a99a5f63f628a1ca8df440c12506cdfbf17827a1175dc5765b05f22f92b12b95
403+
"checksum/config": 0167077654d0c8023b9201c09b02b9213c73d47b50aab990b1e2e8cd41653ca7
384404
labels:
385405
control-plane: elastic-operator
386406
spec:
@@ -389,12 +409,19 @@ spec:
389409
securityContext:
390410
runAsNonRoot: true
391411
containers:
392-
- image: "docker.elastic.co/eck/eck-operator:2.4.0"
412+
- image: "docker.elastic.co/eck/eck-operator:2.6.1"
393413
imagePullPolicy: IfNotPresent
394414
name: manager
395415
args:
396416
- "manager"
397417
- "--config=/conf/eck.yaml"
418+
securityContext:
419+
allowPrivilegeEscalation: false
420+
capabilities:
421+
drop:
422+
- ALL
423+
readOnlyRootFilesystem: true
424+
runAsNonRoot: true
398425
env:
399426
- name: OPERATOR_NAMESPACE
400427
valueFrom:
@@ -440,7 +467,7 @@ metadata:
440467
name: elastic-webhook.k8s.elastic.co
441468
labels:
442469
control-plane: elastic-operator
443-
app.kubernetes.io/version: "2.4.0"
470+
app.kubernetes.io/version: "2.6.1"
444471
webhooks:
445472
- clientConfig:
446473
caBundle: Cg==
@@ -652,4 +679,46 @@ webhooks:
652679
- UPDATE
653680
resources:
654681
- kibanas
682+
- clientConfig:
683+
caBundle: Cg==
684+
service:
685+
name: elastic-webhook-server
686+
namespace: elastic-system
687+
path: /validate-autoscaling-k8s-elastic-co-v1alpha1-elasticsearchautoscaler
688+
failurePolicy: Ignore
689+
name: elastic-esa-validation-v1alpha1.k8s.elastic.co
690+
matchPolicy: Exact
691+
admissionReviewVersions: [v1beta1]
692+
sideEffects: None
693+
rules:
694+
- apiGroups:
695+
- autoscaling.k8s.elastic.co
696+
apiVersions:
697+
- v1alpha1
698+
operations:
699+
- CREATE
700+
- UPDATE
701+
resources:
702+
- elasticsearchautoscalers
703+
- clientConfig:
704+
caBundle: Cg==
705+
service:
706+
name: elastic-webhook-server
707+
namespace: elastic-system
708+
path: /validate-scp-k8s-elastic-co-v1alpha1-stackconfigpolicies
709+
failurePolicy: Ignore
710+
name: elastic-scp-validation-v1alpha1.k8s.elastic.co
711+
matchPolicy: Exact
712+
admissionReviewVersions: [v1, v1beta1]
713+
sideEffects: None
714+
rules:
715+
- apiGroups:
716+
- stackconfigpolicy.k8s.elastic.co
717+
apiVersions:
718+
- v1alpha1
719+
operations:
720+
- CREATE
721+
- UPDATE
722+
resources:
723+
- stackconfigpolicies
655724

templates/apm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: ApmServer
33
metadata:
44
name: dingo-apm
55
spec:
6-
version: 8.4.3
6+
version: 8.5.3
77
count: 1
88
elasticsearchRef:
99
name: dingo

templates/es.all_role.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: Elasticsearch
33
metadata:
44
name: dingo
55
spec:
6-
version: 8.4.3
6+
version: 8.5.3
77
#http:
88
#service:
99
#spec:

templates/es.demo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: Elasticsearch
33
metadata:
44
name: dingo-demo
55
spec:
6-
version: 8.4.3
6+
version: 8.5.3
77
http:
88
service:
99
spec:

templates/es.prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: Elasticsearch
33
metadata:
44
name: dingo
55
spec:
6-
version: 8.4.3
6+
version: 8.5.3
77
#http:
88
#service:
99
#spec:

templates/es.single_node.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: Elasticsearch
33
metadata:
44
name: dingo
55
spec:
6-
version: 8.4.3
6+
version: 8.5.3
77
#http:
88
#service:
99
#spec:

templates/kbn.demo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: Kibana
33
metadata:
44
name: dingo-demo-kbn
55
spec:
6-
version: 8.4.3
6+
version: 8.5.3
77
count: 1
88
http:
99
service:

0 commit comments

Comments
 (0)