Created
January 29, 2022 09:01
-
-
Save savanipoojan78/a8bfb891b9c039117cf2e1ba4cc34810 to your computer and use it in GitHub Desktop.
elasticsearch 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
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: elasticsearch | |
--- | |
# Source: elastic/templates/ingress.yaml | |
apiVersion: networking.k8s.io/v1beta1 | |
kind: Ingress | |
metadata: | |
name: elasticsearch | |
namespace: elasticsearch | |
labels: | |
app: elasticsearch | |
annotations: | |
kubernetes.io/ingress.class: nginx | |
nginx.ingress.kubernetes.io/rewrite-target: /$1 | |
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS" | |
spec: | |
tls: | |
- hosts: | |
- localhost | |
rules: | |
- host: localhost | |
http: | |
paths: | |
- path: /elasticsearch/(.*) | |
backend: | |
serviceName: elasticsearch-es-http | |
servicePort: 9200 | |
--- | |
# Source: elastic/templates/ingress.yaml | |
apiVersion: networking.k8s.io/v1beta1 | |
kind: Ingress | |
metadata: | |
name: kibana | |
namespace: elasticsearch | |
labels: | |
app: kibana | |
annotations: | |
kubernetes.io/ingress.class: nginx | |
nginx.ingress.kubernetes.io/rewrite-target: /$1 | |
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS" | |
spec: | |
tls: | |
- hosts: | |
- localhost | |
rules: | |
- host: localhost | |
http: | |
paths: | |
- path: /kibana/(.*) | |
backend: | |
serviceName: kibana-kb-http | |
servicePort: 5601 | |
--- | |
# Source: elastic/templates/elasticsearch.yaml | |
apiVersion: elasticsearch.k8s.elastic.co/v1 | |
kind: Elasticsearch | |
metadata: | |
name: elasticsearch | |
namespace: elasticsearch | |
labels: | |
app: elasticsearch | |
spec: | |
version: 7.16.3 | |
nodeSets: | |
- name: master | |
count: 1 | |
config: | |
node.master: true | |
node.data: false | |
node.ingest: false | |
node.store.allow_mmap: false | |
http.max_content_length: 500mb | |
podTemplate: | |
metadata: | |
labels: | |
app: elasticsearch | |
spec: | |
containers: | |
- name: elasticsearch | |
image: elasticsearch:7.16.3 | |
- name: data | |
count: 1 | |
config: | |
node.master: false | |
node.data: true | |
node.ingest: true | |
node.store.allow_mmap: false | |
http.max_content_length: 500mb | |
podTemplate: | |
metadata: | |
labels: | |
app: elasticsearch | |
spec: | |
containers: | |
- name: elasticsearch | |
image: elasticsearch:7.16.3 | |
--- | |
# Source: elastic/templates/kibana.yaml | |
apiVersion: kibana.k8s.elastic.co/v1 | |
kind: Kibana | |
metadata: | |
name: kibana | |
namespace: elasticsearch | |
labels: | |
app: kibana | |
spec: | |
version: 7.16.3 | |
count: 1 | |
elasticsearchRef: | |
name: elasticsearch | |
config: | |
server.basePath: /kibana | |
server.rewriteBasePath: false | |
server.publicBaseUrl: https://localhost/kibana | |
podTemplate: | |
metadata: | |
labels: | |
app: kibana | |
spec: | |
containers: | |
- name: kibana | |
image: docker.elastic.co/kibana/kibana:7.16.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment