Skip to content

Instantly share code, notes, and snippets.

@barkbay
Last active January 2, 2020 08:53
Show Gist options
  • Save barkbay/f42682b17a41a9aca4c041c218d7b631 to your computer and use it in GitHub Desktop.
Save barkbay/f42682b17a41a9aca4c041c218d7b631 to your computer and use it in GitHub Desktop.
ECK upgrade samples
# This sample sets up a an Elasticsearch cluster along with a Kibana instance
# and an APM server, configured to be able to communicate with each other
---
apiVersion: v1
kind: Namespace
metadata:
name: v1alpha1
---
apiVersion: elasticsearch.k8s.elastic.co/v1alpha1
kind: Elasticsearch
metadata:
name: elasticsearch-sample
namespace: v1alpha1
spec:
version: 7.2.0
nodes:
- nodeCount: 3
---
apiVersion: apm.k8s.elastic.co/v1alpha1
kind: ApmServer
metadata:
name: apm-server-sample
namespace: v1alpha1
spec:
version: 7.2.0
nodeCount: 1
elasticsearchRef:
name: "elasticsearch-sample"
---
apiVersion: kibana.k8s.elastic.co/v1alpha1
kind: Kibana
metadata:
name: kibana-sample
namespace: v1alpha1
spec:
version: 7.2.0
nodeCount: 1
elasticsearchRef:
name: "elasticsearch-sample"
# This sample sets up a an Elasticsearch cluster along with a Kibana instance
# and an APM server, configured to be able to communicate with each other
---
apiVersion: elasticsearch.k8s.elastic.co/v1beta1
kind: Elasticsearch
metadata:
name: es-apm-sample
spec:
version: 7.4.0
nodeSets:
- name: default
count: 3
config:
# This setting could have performance implications for production clusters.
# See: https://www.elastic.co/guide/en/cloud-on-k8s/master/k8s-virtual-memory.html
node.store.allow_mmap: false
---
apiVersion: apm.k8s.elastic.co/v1beta1
kind: ApmServer
metadata:
name: apm-apm-sample
spec:
version: 7.4.0
count: 1
elasticsearchRef:
name: "es-apm-sample"
---
apiVersion: kibana.k8s.elastic.co/v1beta1
kind: Kibana
metadata:
name: kb-apm-sample
spec:
version: 7.4.0
count: 1
elasticsearchRef:
name: "es-apm-sample"
# This sample sets up a an Elasticsearch cluster along with a Kibana instance
# and an APM server, configured to be able to communicate with each other
---
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: es-apm-sample
spec:
version: 7.5.0
nodeSets:
- name: default
count: 3
config:
# This setting could have performance implications for production clusters.
# See: https://www.elastic.co/guide/en/cloud-on-k8s/master/k8s-virtual-memory.html
node.store.allow_mmap: false
---
apiVersion: apm.k8s.elastic.co/v1
kind: ApmServer
metadata:
name: apm-apm-sample
spec:
version: 7.5.0
count: 1
elasticsearchRef:
name: "es-apm-sample"
---
apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
name: kb-apm-sample
spec:
version: 7.5.0
count: 1
elasticsearchRef:
name: "es-apm-sample"
---
apiVersion: elasticsearch.k8s.elastic.co/v1beta1
kind: Elasticsearch
metadata:
name: es-apm-sample-invalid
spec:
version: 7.4.0
nodeSets:
- name: default
count: 3
config:
# This setting could have performance implications for production clusters.
# See: https://www.elastic.co/guide/en/cloud-on-k8s/master/k8s-virtual-memory.html
node.store.allow_mmap: false
node.master: false
---
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: es-apm-sample-invalid-v1
spec:
version: 7.4.0
nodeSets:
- name: default
count: 3
config:
# This setting could have performance implications for production clusters.
# See: https://www.elastic.co/guide/en/cloud-on-k8s/master/k8s-virtual-memory.html
node.store.allow_mmap: false
node.master: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment