apiVersion: apps/v1
kind: Deployment
metadata:
name: kibana-logging
#namespace: kube-system
labels:
k8s-app: kibana-logging
spec:
replicas: 3
selector:
matchLabels:
k8s-app: kibana-logging
template:
metadata:
labels:
k8s-app: kibana-logging
spec:
containers:
- name: kibana-logging
image: docker.elastic.co/kibana/kibana-oss:6.8.4
env:
- name: ELASTICSEARCH_URL
value: http://10.10.0.165:9200
ports:
- containerPort: 5601
name: ui
protocol: TCP
That's fine, you just want to make sure that server.uuid
and server.name
are unique for each instance.
thanks for your quick response.
But i am a fresher in experience and new in elk stack please guide me .
How to implement server.uuid and server.name unique in my kubernetes yaml file .
I am not able to understand the given link.
apiVersion: apps/v1
kind: Deployment
metadata:
name: kibana-logging
#namespace: kube-system
labels:
k8s-app: kibana-logging
spec:
replicas: 3
selector:
matchLabels:
k8s-app: kibana-logging
template:
metadata:
labels:
k8s-app: kibana-logging
spec:
containers:
- name: kibana-logging
image: docker.elastic.co/kibana/kibana-oss:6.8.4
env:
- name: ELASTICSEARCH_URL
value: http://10.10.0.165:9200
ports:
- containerPort: 5601
name: ui
protocol: TCP
It can be passed through the environment variables with SERVER_UUID and SERVER_NAME, however, I am not sure how to accomplish that on a per replica level in k8s.
Environment variable configuration: https://www.elastic.co/guide/en/kibana/current/docker.html#environment-variable-config
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.