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

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

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

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

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

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

Hi @Snehil03

We have an official terraform provider for Elastic Cloud.

If you are not using a cloud, I can only suggest looking for publicly available providers and try to use it.

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

Regards, Dzmitry

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