Score:0

How to add username and password based uthentication to kubernetes dashboard using helm and terraform?

ls flag
Dan

I have this terraform config for deploying a kubernetes dashboard to my cluster on VKE.

resource "helm_release" "my-kubernetes-dashboard" {
  name = "my-kubernetes-dashboard"

  repository = "https://kubernetes.github.io/dashboard/"
  chart      = "kubernetes-dashboard"
  namespace  = "default"

  set {
    name  = "service.type"
    value = "ClusterIP"
  }

  set {
    name  = "protocolHttp"
    value = "true"
  }

  set {
    name  = "service.externalPort"
    value = 80
  }

  set {
    name  = "replicaCount"
    value = 1
  }

  set {
    name  = "rbac.clusterReadOnlyRole"
    value = "true"
  }

  set {
    name  = "rbac.clusterAdminRole"
    value = "true"
  }

  set {
    name = "rbac.create"
    value = "true"
  }
}

Right now kubernetes dashboard pops right up without asking for any password with full permissions. What do I need to add/change to make kubernetes dashboard require a username and password to login.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.