This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1017 from flanksource/feature/upgrade-eck
feat: update eck operator version to 2.1.0
- Loading branch information
Showing
10 changed files
with
412 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
namespace: elastic-system | ||
resources: | ||
- https://download.elastic.co/downloads/eck/1.9.1/operator.yaml | ||
- https://download.elastic.co/downloads/eck/2.1.0/operator.yaml | ||
- certificate.yaml | ||
images: | ||
- name: docker.elastic.co/eck/eck-operator | ||
newTag: "{{.eck.version}}" | ||
patchesStrategicMerge: | ||
- delete-secret.yaml | ||
- delete-secret.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
resources: | ||
- https://raw.githubusercontent.com/elastic/cloud-on-k8s/1.9.1/config/crds/v1/all-crds.yaml | ||
- https://raw.githubusercontent.com/elastic/cloud-on-k8s/2.1.0/config/crds/v1/all-crds.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,7 @@ packetbeat: | |
eventrouter: | ||
version: v0.3 | ||
eck: | ||
version: 1.0.0 | ||
version: 2.1.0 | ||
test: | ||
exclude: | ||
- dex | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: eck | ||
--- | ||
apiVersion: elasticsearch.k8s.elastic.co/v1 | ||
kind: Elasticsearch | ||
metadata: | ||
name: logs | ||
namespace: eck | ||
spec: | ||
version: 7.17.3 | ||
nodeSets: | ||
- name: default | ||
count: 1 | ||
config: | ||
node.master: true | ||
node.data: true | ||
node.ingest: true | ||
node.store.allow_mmap: false | ||
xpack.security.transport.ssl.supported_protocols: TLSv1.1,TLSv1.2 | ||
xpack.security.authc.anonymous.roles: fluentd | ||
podTemplate: | ||
metadata: | ||
annotations: | ||
cluster-autoscaler.kubernetes.io/safe-to-evict: "true" | ||
spec: | ||
containers: | ||
- name: elasticsearch | ||
resources: | ||
requests: | ||
memory: 2Gi | ||
cpu: 200m | ||
limits: | ||
memory: 4Gi | ||
cpu: 500m | ||
volumeClaimTemplates: | ||
- metadata: | ||
name: elasticsearch-data | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
--- | ||
apiVersion: kibana.k8s.elastic.co/v1 | ||
kind: Kibana | ||
metadata: | ||
name: logs | ||
namespace: eck | ||
spec: | ||
version: 7.17.3 | ||
count: 1 | ||
elasticsearchRef: | ||
name: logs | ||
podTemplate: | ||
metadata: | ||
annotations: | ||
cluster-autoscaler.kubernetes.io/safe-to-evict: "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
if [[ $(uname -s) == "Darwin" ]]; then | ||
END_TIME=$(date -v +5M +%s) | ||
else | ||
TIMEOUT="10 minute" | ||
END_TIME=$(date -ud "$TIMEOUT" +%s) | ||
fi | ||
|
||
SUCCESS="f" | ||
while [[ $(date -u +%s) -le $END_TIME ]] | ||
do | ||
echo "Waiting for elastic to become available..." | ||
if kubectl -n eck get elasticsearch logs | grep -q Ready; then | ||
SUCCESS="t" | ||
echo "Elastic up successfully" | ||
break | ||
fi | ||
sleep 5 | ||
done | ||
if [[ "$SUCCESS" != "t" ]]; then | ||
set -x | ||
echo "==== elasticsearch object ====" | ||
kubectl -n eck get elasticsearch logs | ||
echo "==== elasticsearch object ====" | ||
kubectl -n eck describe elasticsearch logs | ||
echo "==== pods ====" | ||
kubectl -n eck describe pods | ||
echo "==== pod logs ====" | ||
kubectl -n eck logs logs-es-default-0 | ||
echo "==== operator logs ====" | ||
kubectl -n elastic-system logs elastic-operator-0 | ||
exit 1 | ||
fi | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
resources: | ||
- elastic.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters