Skip to content

Commit

Permalink
upgraded ECK to v2.10.0, GKE and Elastic Stack to 8.11.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bindiego committed Dec 25, 2023
1 parent 33d69ef commit b171567
Show file tree
Hide file tree
Showing 11 changed files with 81 additions and 198 deletions.
4 changes: 2 additions & 2 deletions bin/demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ default_pool=default-pool
nodes_per_zone=5 # per zone
machine_type=e2-standard-2
release_channel=None # None -> static, e.g. rapid, regular, stable
gke_version=1.27.6-gke.1506000
eck_version=2.9.0
gke_version=1.28.4-gke.1083000
eck_version=2.10.0
es_cluster_name=dingo-demo

__create_gke() {
Expand Down
4 changes: 2 additions & 2 deletions bin/gke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ default_pool=default-pool
nodes_per_zone=6 # per zone
machine_type=n2-standard-8
release_channel=None # None -> static, e.g. rapid, regular, stable
gke_version=1.27.6-gke.1506000
eck_version=2.9.0
gke_version=1.28.4-gke.1083000
eck_version=2.10.0
__usage() {
echo "Usage: ./bin/gke.sh {create|(delete,del,d)|scale|fix}"
}
Expand Down
230 changes: 55 additions & 175 deletions conf/crds.yaml

Large diffs are not rendered by default.

27 changes: 15 additions & 12 deletions conf/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
namespace: elastic-system
labels:
control-plane: elastic-operator
app.kubernetes.io/version: "2.9.0"
app.kubernetes.io/version: "2.10.0"
---
# Source: eck-operator/templates/webhook.yaml
apiVersion: v1
Expand All @@ -24,7 +24,7 @@ metadata:
namespace: elastic-system
labels:
control-plane: elastic-operator
app.kubernetes.io/version: "2.9.0"
app.kubernetes.io/version: "2.10.0"
---
# Source: eck-operator/templates/configmap.yaml
apiVersion: v1
Expand All @@ -34,7 +34,7 @@ metadata:
namespace: elastic-system
labels:
control-plane: elastic-operator
app.kubernetes.io/version: "2.9.0"
app.kubernetes.io/version: "2.10.0"
data:
eck.yaml: |-
log-verbosity: 0
Expand All @@ -45,6 +45,7 @@ data:
ca-cert-rotate-before: 24h
cert-validity: 8760h
cert-rotate-before: 24h
disable-config-watch: false
exposed-node-labels: [topology.kubernetes.io/.*,failure-domain.beta.kubernetes.io/.*]
set-default-security-context: auto-detect
kube-client-timeout: 60s
Expand All @@ -55,8 +56,10 @@ data:
enable-webhook: true
webhook-name: elastic-webhook.k8s.elastic.co
webhook-port: 9443
operator-namespace: elastic-system
enable-leader-election: true
elasticsearch-observation-interval: 10s
ubi-only: false
---
# Source: eck-operator/templates/cluster-roles.yaml
apiVersion: rbac.authorization.k8s.io/v1
Expand All @@ -65,7 +68,7 @@ metadata:
name: elastic-operator
labels:
control-plane: elastic-operator
app.kubernetes.io/version: "2.9.0"
app.kubernetes.io/version: "2.10.0"
rules:
- apiGroups:
- "authorization.k8s.io"
Expand Down Expand Up @@ -309,7 +312,7 @@ metadata:
rbac.authorization.k8s.io/aggregate-to-edit: "true"
rbac.authorization.k8s.io/aggregate-to-admin: "true"
control-plane: elastic-operator
app.kubernetes.io/version: "2.9.0"
app.kubernetes.io/version: "2.10.0"
rules:
- apiGroups: ["elasticsearch.k8s.elastic.co"]
resources: ["elasticsearches"]
Expand Down Expand Up @@ -351,7 +354,7 @@ metadata:
rbac.authorization.k8s.io/aggregate-to-edit: "true"
rbac.authorization.k8s.io/aggregate-to-admin: "true"
control-plane: elastic-operator
app.kubernetes.io/version: "2.9.0"
app.kubernetes.io/version: "2.10.0"
rules:
- apiGroups: ["elasticsearch.k8s.elastic.co"]
resources: ["elasticsearches"]
Expand Down Expand Up @@ -391,7 +394,7 @@ metadata:
name: elastic-operator
labels:
control-plane: elastic-operator
app.kubernetes.io/version: "2.9.0"
app.kubernetes.io/version: "2.10.0"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand All @@ -409,7 +412,7 @@ metadata:
namespace: elastic-system
labels:
control-plane: elastic-operator
app.kubernetes.io/version: "2.9.0"
app.kubernetes.io/version: "2.10.0"
spec:
ports:
- name: https
Expand All @@ -426,7 +429,7 @@ metadata:
namespace: elastic-system
labels:
control-plane: elastic-operator
app.kubernetes.io/version: "2.9.0"
app.kubernetes.io/version: "2.10.0"
spec:
selector:
matchLabels:
Expand All @@ -439,7 +442,7 @@ spec:
# Rename the fields "error" to "error.message" and "source" to "event.source"
# This is to avoid a conflict with the ECS "error" and "source" documents.
"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\"}]}}]}]"
"checksum/config": 90e420c91a6a08851abad958cd4fa4e26788e4bc86c633f9459fdc92b7b2be7f
"checksum/config": 6cebba0f4c50f773d0b3c7c11dec9734a9e66da1dbd3f07510302bb9da864c26
labels:
control-plane: elastic-operator
spec:
Expand All @@ -448,7 +451,7 @@ spec:
securityContext:
runAsNonRoot: true
containers:
- image: "docker.elastic.co/eck/eck-operator:2.9.0"
- image: "docker.elastic.co/eck/eck-operator:2.10.0"
imagePullPolicy: IfNotPresent
name: manager
args:
Expand Down Expand Up @@ -506,7 +509,7 @@ metadata:
name: elastic-webhook.k8s.elastic.co
labels:
control-plane: elastic-operator
app.kubernetes.io/version: "2.9.0"
app.kubernetes.io/version: "2.10.0"
webhooks:
- clientConfig:
service:
Expand Down
2 changes: 1 addition & 1 deletion templates/apm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: ApmServer
metadata:
name: dingo-apm
spec:
version: 8.10.4
version: 8.11.3
count: 1
elasticsearchRef:
name: dingo
Expand Down
2 changes: 1 addition & 1 deletion templates/es.all_role.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Elasticsearch
metadata:
name: dingo
spec:
version: 8.10.4
version: 8.11.3
#http:
#service:
#spec:
Expand Down
2 changes: 1 addition & 1 deletion templates/es.demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Elasticsearch
metadata:
name: dingo-demo
spec:
version: 8.10.4
version: 8.11.3
http:
service:
spec:
Expand Down
2 changes: 1 addition & 1 deletion templates/es.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Elasticsearch
metadata:
name: dingo
spec:
version: 8.10.4
version: 8.11.3
#http:
#service:
#spec:
Expand Down
2 changes: 1 addition & 1 deletion templates/es.single_node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Elasticsearch
metadata:
name: dingo
spec:
version: 8.10.4
version: 8.11.3
#http:
#service:
#spec:
Expand Down
2 changes: 1 addition & 1 deletion templates/kbn.demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Kibana
metadata:
name: dingo-demo-kbn
spec:
version: 8.10.4
version: 8.11.3
count: 1
http:
service:
Expand Down
2 changes: 1 addition & 1 deletion templates/kbn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Kibana
metadata:
name: dingo-kbn
spec:
version: 8.10.4
version: 8.11.3
count: 1
#http:
#service:
Expand Down

0 comments on commit b171567

Please sign in to comment.