Skip to content

Commit

Permalink
Keep ECK, GKE and Elastis Stack up2date
Browse files Browse the repository at this point in the history
  • Loading branch information
bindiego committed Oct 31, 2024
1 parent 57fb13f commit b8a37a4
Show file tree
Hide file tree
Showing 12 changed files with 230 additions and 57 deletions.
8 changes: 4 additions & 4 deletions bin/demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

pwd=`pwd`
cluster_name=elastic-demo
region=asia-east1
# zone=asia-east1-a
region=us-central1
# zone=us-central1-a
project_id=`gcloud config get-value project`
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.29.6-gke.1038001
eck_version=2.13.0
gke_version=1.30.5-gke.1014001
eck_version=2.14.0
es_cluster_name=dingo-demo

__create_gke() {
Expand Down
8 changes: 4 additions & 4 deletions bin/gke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

pwd=`pwd`
cluster_name=elk
region=asia-east1
# zone=asia-east1-a
region=us-central1
# zone=us-central1-a
project_id=`gcloud config get-value project`
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.29.6-gke.1038001
eck_version=2.13.0
gke_version=1.30.5-gke.1014001
eck_version=2.14.0
__usage() {
echo "Usage: ./bin/gke.sh {create|(delete,del,d)|scale|fix}"
}
Expand Down
225 changes: 199 additions & 26 deletions conf/crds.yaml

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions conf/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ metadata:
namespace: elastic-system
labels:
control-plane: elastic-operator
app.kubernetes.io/version: "2.13.0"
app.kubernetes.io/version: "2.14.0"
---
# Source: eck-operator/templates/webhook.yaml
apiVersion: v1
Expand All @@ -25,7 +25,7 @@ metadata:
namespace: elastic-system
labels:
control-plane: elastic-operator
app.kubernetes.io/version: "2.13.0"
app.kubernetes.io/version: "2.14.0"
---
# Source: eck-operator/templates/configmap.yaml
apiVersion: v1
Expand All @@ -35,7 +35,7 @@ metadata:
namespace: elastic-system
labels:
control-plane: elastic-operator
app.kubernetes.io/version: "2.13.0"
app.kubernetes.io/version: "2.14.0"
data:
eck.yaml: |-
log-verbosity: 0
Expand Down Expand Up @@ -69,7 +69,7 @@ metadata:
name: elastic-operator
labels:
control-plane: elastic-operator
app.kubernetes.io/version: "2.13.0"
app.kubernetes.io/version: "2.14.0"
rules:
- apiGroups:
- "authorization.k8s.io"
Expand Down Expand Up @@ -313,7 +313,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.13.0"
app.kubernetes.io/version: "2.14.0"
rules:
- apiGroups: ["elasticsearch.k8s.elastic.co"]
resources: ["elasticsearches"]
Expand Down Expand Up @@ -355,7 +355,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.13.0"
app.kubernetes.io/version: "2.14.0"
rules:
- apiGroups: ["elasticsearch.k8s.elastic.co"]
resources: ["elasticsearches"]
Expand Down Expand Up @@ -395,7 +395,7 @@ metadata:
name: elastic-operator
labels:
control-plane: elastic-operator
app.kubernetes.io/version: "2.13.0"
app.kubernetes.io/version: "2.14.0"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand All @@ -413,7 +413,7 @@ metadata:
namespace: elastic-system
labels:
control-plane: elastic-operator
app.kubernetes.io/version: "2.13.0"
app.kubernetes.io/version: "2.14.0"
spec:
ports:
- name: https
Expand All @@ -430,7 +430,7 @@ metadata:
namespace: elastic-system
labels:
control-plane: elastic-operator
app.kubernetes.io/version: "2.13.0"
app.kubernetes.io/version: "2.14.0"
spec:
selector:
matchLabels:
Expand All @@ -443,7 +443,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": 8b10381ca4067cf2c56aecc94c799473b09486202e146d2d7e5d6714f4c2e533
"checksum/config": 882102069a9b11c3a4edfd77edcbbf9c3873f3dfc0d3f41676bd953ed4a3ce28
labels:
control-plane: elastic-operator
spec:
Expand All @@ -453,7 +453,7 @@ spec:
securityContext:
runAsNonRoot: true
containers:
- image: "docker.elastic.co/eck/eck-operator:2.13.0"
- image: "docker.elastic.co/eck/eck-operator:2.14.0"
imagePullPolicy: IfNotPresent
name: manager
args:
Expand Down Expand Up @@ -511,7 +511,7 @@ metadata:
name: elastic-webhook.k8s.elastic.co
labels:
control-plane: elastic-operator
app.kubernetes.io/version: "2.13.0"
app.kubernetes.io/version: "2.14.0"
webhooks:
- clientConfig:
service:
Expand Down
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Elasticsearch status:
"cluster_name" : "dingo-demo",
"cluster_uuid" : "ouod-dk1R8-o_Et1LhJ19g",
"version" : {
"number" : "8.12.2",
"number" : "8.15.3",
"build_flavor" : "default",
"build_type" : "docker",
"build_hash" : "48a287ab9497e852de30327444b0809e55d46466",
Expand Down Expand Up @@ -96,7 +96,7 @@ For targeting region, you will need to update two files
- [./bin/gke.sh](https://github.com/bindiego/local_services/blob/develop/k8s/gke/elastic/bin/gke.sh#L7)
- [Makefile](https://github.com/bindiego/local_services/blob/develop/k8s/gke/elastic/Makefile#L1)

Change the `region` variable on your choice, `asia-east1` by default.
Change the `region` variable on your choice, `us-central1` by default.

#### Choose a predefined Elasticsearch deployment 选择一个预置的集群架构

Expand Down Expand Up @@ -351,7 +351,7 @@ kind: Kibana
metadata:
name: kbn
spec:
version: 8.11.3
version: 8.15.3
count: 1
config:
elasticsearch.hosts:
Expand All @@ -369,7 +369,7 @@ kind: Kibana
metadata:
name: kbn
spec:
version: 8.11.3
version: 8.15.3
count: 1
config:
elasticsearch.hosts:
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.14.3
version: 8.15.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.14.3
version: 8.15.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.14.3
version: 8.15.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.14.3
version: 8.15.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.14.3
version: 8.15.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.14.3
version: 8.15.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.14.3
version: 8.15.3
count: 1
#http:
#service:
Expand Down

0 comments on commit b8a37a4

Please sign in to comment.