# Deployement not getting completed error message 0 of 1 pod is not available,

**URL:** <https://discuss.elastic.co/t/deployement-not-getting-completed-error-message-0-of-1-pod-is-not-available/272794>\
**Category:** Kibana\
**Tags:** elastic-stack-monitoring\
**Created:** [May 12, 2021, 10:03am UTC](https://discuss.elastic.co/t/deployement-not-getting-completed-error-message-0-of-1-pod-is-not-available/272794 "2021-05-12T10:03:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Snehil03](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/snehil03/32/88652_2.png) [@Snehil03](https://discuss.elastic.co/u/Snehil03)\
**Post date:** [May 12, 2021, 10:03am UTC](https://discuss.elastic.co/t/deployement-not-getting-completed-error-message-0-of-1-pod-is-not-available/272794/1 "2021-05-12T10:03:28Z")

</div>

Hello,

I am trying to fix the kibana setup but seems to be it's not working ,

I have updated the module from 7.6.0 to 7.7.0 but after the update pods does not get started.

I am using terraform to do these setup . Kindly guide me to fix these issue.

thanks for your help in advancce.

```
resource "random_password" "kibana_encryption_key" {
  length = 32
  special = true
}

resource "random_password" "kibana_es_user_password" {
  length = 32
  special = true
}

 
resource "kubernetes_secret" "kibana" {
  metadata {
    name = "kibana"
    namespace = kubernetes_namespace.elasticsearch.id
  }

  data = {
    username = "kibana"
    password = random_password.kibana_es_user_password.result
    encryptionkey = random_password.kibana_encryption_key.result
  }
}
resource "helm_release" "kibana" {
  name = "kibana"
  namespace = kubernetes_namespace.elasticsearch.id
  #repository = data.helm_repository.elastic.name
  chart = "elastic/kibana"
  version = "7.7.0"

  values = [file("${path.module}/kibana.yaml")]

  set {
    name = "elasticsearchHosts"
    value = "https://${helm_release.elasticsearch.name}-master:9200"
  }
  set {
    name = "ingress.hosts"
    value = "{${join(",", formatlist("logs.${var.subdomain}.%s", keys(local.common.certificate_domains)))}}"
  }
  set {
    name = "ingress.tls[0].hosts"
    value = "{${join(",", formatlist("logs.${var.subdomain}.%s", keys(local.common.certificate_domains)))}}"
  }
}

```

appended yaml below :

```
---
rbac:
  create: true

resources:
  requests:
    cpu: "100m"
    memory: "2Gi"
  limits:
    cpu: "1000m"
    memory: "2Gi"

ingress:
  enabled: true

healthCheckPath: /app/kibana

kibanaConfig:
  kibana.yml: |
    xpack:
      security:
        encryptionKey: 'KIBANA_ENCRYPTION_KEY'
      encryptedSavedObjects.encryptionKey: 'KIBANA_ENCRYPTION_KEY'

    elasticsearch:
      ssl:
        verificationMode: none

# data:
# ELASTICSEARCH_USERNAME: 'kibana'
# ELASTICSEARCH_PASSWORD: ${random_password.kibana_es_user_password.result}
# KIBANA_ENCRYPTION_KEY: ${random_password.kibana_encryption_key.result}
# extraENV: 
# - configMapRef:
# name: special-kibana-config

extraEnvs:
  - name: 'ELASTICSEARCH_USERNAME'
    valueFrom:
      secretKeyRef:
        name: kibana
        key: username
  - name: 'ELASTICSEARCH_PASSWORD'
    valueFrom:
      secretKeyRef:
        name: kibana
        key: password
  - name: 'KIBANA_ENCRYPTION_KEY'
    valueFrom:
      secretKeyRef:
        name: kibana
        key: encryptionkey
```

---

<div class="post-metadata">

**Author:** ![Dzmitry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dzmitry/32/65026_2.png) [@Dzmitry](https://discuss.elastic.co/u/Dzmitry)\
**Post date:** [May 12, 2021, 4:12pm UTC](https://discuss.elastic.co/t/deployement-not-getting-completed-error-message-0-of-1-pod-is-not-available/272794/2 "2021-05-12T16:12:41Z")

</div>

Hi @Snehil03 ,

Can you share more about the environment and stack setup, e.g. file system, yml file you use?  
What is the exact error you are facing?

Regards, Dzmitry

---

<div class="post-metadata">

**Author:** ![Snehil03](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/snehil03/32/88652_2.png) [@Snehil03](https://discuss.elastic.co/u/Snehil03)\
**Post date:** [May 12, 2021, 9:15pm UTC](https://discuss.elastic.co/t/deployement-not-getting-completed-error-message-0-of-1-pod-is-not-available/272794/3 "2021-05-12T21:15:20Z")

</div>

Hello @Dzmitry ,

I am using terraform 0.13.2 version,  
Helm chart : elastic/kibana 7.7.0

yaml file appended in the code shared ,  
terraform module also shared with user and password created .

I am using elk stack where elastic and logstash got deployed but kibana did not got deployed .  
I put the hem debug on then it showed below details

```auto
Deployment is not ready: elasticsearch/kibana. 0 out of 1 expected pods are ready

```

I have shared entire details for the Kibana code used .

Thanks

---

<div class="post-metadata">

**Author:** ![Snehil03](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/snehil03/32/88652_2.png) [@Snehil03](https://discuss.elastic.co/u/Snehil03)\
**Post date:** [May 18, 2021, 1:58pm UTC](https://discuss.elastic.co/t/deployement-not-getting-completed-error-message-0-of-1-pod-is-not-available/272794/4 "2021-05-18T13:58:09Z")

</div>

Dears,  
kindly provide pointers to proceed ahead.  
Thanks,  
Snehil Belekar

---

<div class="post-metadata">

**Author:** ![Dzmitry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dzmitry/32/65026_2.png) [@Dzmitry](https://discuss.elastic.co/u/Dzmitry)\
**Post date:** [May 21, 2021, 3:16pm UTC](https://discuss.elastic.co/t/deployement-not-getting-completed-error-message-0-of-1-pod-is-not-available/272794/5 "2021-05-21T15:16:56Z")

</div>

Hi @Snehil03

We have an official [terraform provider](https://www.elastic.co/blog/elastic-cloud-terraform-provider-now-available-in-beta) for Elastic Cloud.

If you are not using a cloud, I can only suggest looking for [publicly available providers](https://registry.terraform.io/search/providers?q=elastic) and try to use it.

There is no Kibana errors in logs you shared, so problem might be with your terraform configuration.

Regards, Dzmitry

---

<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:** [June 18, 2021, 3:16pm UTC](https://discuss.elastic.co/t/deployement-not-getting-completed-error-message-0-of-1-pod-is-not-available/272794/6 "2021-06-18T15:16:57Z")

</div>

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