Skip to content

Commit 526cdb7

Browse files
committed
Update Elasticsearch
1 parent 14bb64e commit 526cdb7

File tree

8 files changed

+29
-22
lines changed

8 files changed

+29
-22
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# https://www.docker.elastic.co/
2-
FROM docker.elastic.co/elasticsearch/elasticsearch:8.19.2
2+
FROM docker.elastic.co/elasticsearch/elasticsearch:8.19.5
33

44
RUN elasticsearch-plugin install -b mapper-size
55

k8s/elastic-monitor.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ metadata:
44
name: elastic-monitor
55
namespace: elastic-system
66
spec:
7-
version: 8.17.4
7+
version: 8.19.5
88
podDisruptionBudget: {}
99
nodeSets:
1010
- name: main
1111
count: 1
1212
config:
13-
# if not setting max_map_count in an init container, then use this setting
14-
#node.store.allow_mmap: false
13+
# if not setting max_map_count in an init container, then use this setting
14+
#node.store.allow_mmap: false
1515
podTemplate:
1616
spec:
1717
containers:
@@ -51,7 +51,7 @@ metadata:
5151
name: kibana-monitor
5252
namespace: elastic-system
5353
spec:
54-
version: 8.17.4
54+
version: 8.19.5
5555
count: 1
5656
elasticsearchRef:
5757
name: elastic-monitor
@@ -145,7 +145,7 @@ metadata:
145145
name: fleet-server
146146
namespace: elastic-system
147147
spec:
148-
version: 8.17.4
148+
version: 8.19.5
149149
kibanaRef:
150150
name: kibana-monitor
151151
elasticsearchRefs:
@@ -169,7 +169,7 @@ metadata:
169169
name: elastic-agent
170170
namespace: elastic-system
171171
spec:
172-
version: 8.17.4
172+
version: 8.19.5
173173
kibanaRef:
174174
name: kibana-monitor
175175
fleetServerRef:

k8s/ex-dev-elasticsearch.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ metadata:
44
name: ex-dev
55
namespace: ex-dev
66
spec:
7-
version: 8.17.4
8-
image: exceptionless/elasticsearch:8.17.4 # https://github.com/exceptionless/Exceptionless/tree/main/build/docker/elasticsearch
7+
version: 8.19.5
8+
image: exceptionless/elasticsearch:8.19.5 # https://github.com/exceptionless/Exceptionless/tree/main/build/docker/elasticsearch
99
secureSettings:
1010
- secretName: ex-dev-snapshots
1111
http:
@@ -57,7 +57,7 @@ metadata:
5757
name: ex-dev
5858
namespace: ex-dev
5959
spec:
60-
version: 8.17.4
60+
version: 8.19.5
6161
count: 1
6262
elasticsearchRef:
6363
name: ex-dev

k8s/ex-prod-elasticsearch.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ metadata:
44
name: ex-prod
55
namespace: ex-prod
66
spec:
7-
version: 8.17.4
8-
image: exceptionless/elasticsearch:8.17.4 # https://github.com/exceptionless/Exceptionless/tree/main/build/docker/elasticsearch
7+
version: 8.19.5
8+
image: exceptionless/elasticsearch:8.19.5 # https://github.com/exceptionless/Exceptionless/tree/main/build/docker/elasticsearch
99
monitoring:
1010
metrics:
1111
elasticsearchRefs:
@@ -68,7 +68,7 @@ metadata:
6868
name: ex-prod
6969
namespace: ex-prod
7070
spec:
71-
version: 8.17.4
71+
version: 8.19.5
7272
count: 1
7373
elasticsearchRef:
7474
name: ex-prod

k8s/ex-prod-redis-values.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
global:
2+
imageRegistry:
23
storageClass: managed-csi-premium
34

4-
# https://hub.docker.com/r/bitnami/redis/tags
5+
# https://hub.docker.com/r/bitnamilegacy/redis/tags
56
image:
6-
tag: 8.0.2-debian-12-r3
7+
repository: bitnamilegacy/redis
8+
tag: 8.0.3-debian-12-r3
79

810
auth:
911
enabled: true
@@ -19,6 +21,9 @@ replica:
1921
cpu: 600m
2022

2123
sentinel:
24+
image:
25+
repository: bitnamilegacy/redis
26+
tag: 8.0.3-debian-12-r3
2227
enabled: true
2328
masterSet: ex-prod
2429
downAfterMilliseconds: 5000

k8s/ex-prod-tasks.ps1

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ curl -k https://elastic:$ELASTIC_MONITOR_PASSWORD@localhost:9280/_cluster/health
2222
curl -k https://elastic:$ELASTIC_MONITOR_PASSWORD@localhost:9280/_cat/allocation?v
2323
curl -k https://elastic:$ELASTIC_MONITOR_PASSWORD@localhost:9280/_cluster/allocation/explain?pretty
2424
curl -k "https://elastic:$ELASTIC_MONITOR_PASSWORD@localhost:9280/_cat/indices/*traces*?v=true&s=index"
25+
curl -X PUT -H "Content-Type: application/json" -g -k -d '{ "index": { "number_of_replicas": 0, "number_of_shards": 1 } }' https://elastic:$ELASTIC_MONITOR_PASSWORD@localhost:9280/*/_settings
2526
curl -X PUT -H "Content-Type: application/json" -g -k -d '{ "transient": { "action.destructive_requires_name": false } }' https://elastic:$ELASTIC_MONITOR_PASSWORD@localhost:9280/_cluster/settings
26-
curl -k -X DELETE "https://elastic:$ELASTIC_MONITOR_PASSWORD@localhost:9280/.ds-traces-apm-default-2022.09.01-000108"
27+
curl -X PUT -H "Content-Type: application/json" -g -k -d '{ "index_patterns": ["*"], "order": 0, "settings": { "number_of_replicas": 0, "number_of_shards": 1 } }' https://elastic:$ELASTIC_MONITOR_PASSWORD@localhost:9280/_template/replicas
28+
curl -k -X DELETE "https://elastic:$ELASTIC_MONITOR_PASSWORD@localhost:9280/.ds-metrics-elastic_agent.filebeat_input-default-2024.12.03-000001"
2729

2830
# connect to redis OR use k9s to shell into a redis pod
2931
$REDIS_PASSWORD = $(kubectl get secret --namespace ex-prod ex-prod-redis -o go-template='{{index .data "redis-password" | base64decode }}')
@@ -88,9 +90,9 @@ helm upgrade --reset-values signoz-collector signoz/k8s-infra -f signoz.yaml --s
8890
# upgrade elasticsearch operator
8991
# https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-quickstart.html
9092
# https://github.com/elastic/cloud-on-k8s/releases
91-
kubectl replace -f https://download.elastic.co/downloads/eck/2.16.1/crds.yaml
92-
kubectl create -f https://download.elastic.co/downloads/eck/2.16.1/crds.yaml
93-
kubectl apply -f https://download.elastic.co/downloads/eck/2.16.1/operator.yaml
93+
kubectl replace -f https://download.elastic.co/downloads/eck/3.1.0/crds.yaml
94+
kubectl create -f https://download.elastic.co/downloads/eck/3.1.0/crds.yaml
95+
kubectl apply -f https://download.elastic.co/downloads/eck/3.1.0/operator.yaml
9496

9597
# upgrade elasticsearch
9698
kubectl apply --namespace ex-prod -f ex-prod-elasticsearch.yaml

k8s/ex-setup.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ kubectl config set-context --current --namespace=ex-$ENV
6262
# setup elasticsearch operator
6363
# https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-quickstart.html
6464
# https://github.com/elastic/cloud-on-k8s/releases
65-
kubectl create -f https://download.elastic.co/downloads/eck/2.16.1/crds.yaml
66-
kubectl apply -f https://download.elastic.co/downloads/eck/2.16.1/operator.yaml
65+
kubectl create -f https://download.elastic.co/downloads/eck/3.1.0/crds.yaml
66+
kubectl apply -f https://download.elastic.co/downloads/eck/3.1.0/operator.yaml
6767

6868
# view ES operator logs
6969
kubectl -n elastic-system logs -f statefulset.apps/elastic-operator

k8s/exceptionless/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ elasticsearch:
5151
connectionString:
5252
image:
5353
repository: exceptionless/elasticsearch
54-
tag: 8.17.4
54+
tag: 8.19.5
5555
pullPolicy: IfNotPresent
5656

5757
redis:

0 commit comments

Comments
 (0)