# Can we create kibana deployment replicas more than 1 in kubernetes?

**URL:** <https://discuss.elastic.co/t/can-we-create-kibana-deployment-replicas-more-than-1-in-kubernetes/254564>\
**Category:** Kibana\
**Created:** [November 6, 2020, 6:06pm UTC](https://discuss.elastic.co/t/can-we-create-kibana-deployment-replicas-more-than-1-in-kubernetes/254564 "2020-11-06T18:06:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![devopsmd](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@devopsmd](https://discuss.elastic.co/u/devopsmd)\
**Post date:** [November 6, 2020, 6:06pm UTC](https://discuss.elastic.co/t/can-we-create-kibana-deployment-replicas-more-than-1-in-kubernetes/254564/1 "2020-11-06T18:06:11Z")

</div>

```auto
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

```

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [November 6, 2020, 9:21pm UTC](https://discuss.elastic.co/t/can-we-create-kibana-deployment-replicas-more-than-1-in-kubernetes/254564/2 "2020-11-06T21:21:44Z")

</div>

That's fine, you just want to make sure that `server.uuid` and `server.name` are unique for each instance.

> **[Use Kibana in a production environment | Kibana Guide \[7.9\] | Elastic](https://www.elastic.co/guide/en/kibana/current/production.html#load-balancing-kibana)**

---

<div class="post-metadata">

**Author:** ![devopsmd](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@devopsmd](https://discuss.elastic.co/u/devopsmd)\
**Post date:** [November 7, 2020, 6:30am UTC](https://discuss.elastic.co/t/can-we-create-kibana-deployment-replicas-more-than-1-in-kubernetes/254564/3 "2020-11-07T06:30:00Z")

</div>

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.

```auto
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

```

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [November 7, 2020, 2:43pm UTC](https://discuss.elastic.co/t/can-we-create-kibana-deployment-replicas-more-than-1-in-kubernetes/254564/4 "2020-11-07T14:43:20Z")

</div>

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](https://www.elastic.co/guide/en/kibana/current/docker.html#environment-variable-config)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 5, 2020, 2:43pm UTC](https://discuss.elastic.co/t/can-we-create-kibana-deployment-replicas-more-than-1-in-kubernetes/254564/5 "2020-12-05T14:43:24Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
