# Kubernetes

**URL:** https://discuss.hashicorp.com/c/terraform-providers/kubernetes/40.md?page=1

[Latest](https://discuss.hashicorp.com/latest.md) · [Categories](https://discuss.hashicorp.com/categories.md) · [Tags](https://discuss.hashicorp.com/tags.md)

**Page:** 2

---

## [Unable to output the root token and unseal keys obtained while initializing vault using kubernetes\_job\_v1](https://discuss.hashicorp.com/t/unable-to-output-the-root-token-and-unseal-keys-obtained-while-initializing-vault-using-kubernetes-job-v1/57823)

<div class="topic-metadata">

**Author:** [@soundarya3098](https://discuss.hashicorp.com/u/soundarya3098)\
**Replies:** 0\
**Last updated:** [August 31, 2023, 9:01am UTC](https://discuss.hashicorp.com/t/unable-to-output-the-root-token-and-unseal-keys-obtained-while-initializing-vault-using-kubernetes-job-v1/57823 "2023-08-31T09:01:01Z")

</div>

I have a terraform stack which will deploy vault-consul on Google Kubernetes Engine. Now, I need to automate the vault initialization instead of doing it manually using “vault operator init”. So, created a kubernetes\_jo…

---

## [Wrong permission on being set on /serviceaccount/token](https://discuss.hashicorp.com/t/wrong-permission-on-being-set-on-serviceaccount-token/28777)

<div class="topic-metadata">

**Author:** [@tmdonalds](https://discuss.hashicorp.com/u/tmdonalds)\
**Replies:** 2\
**Last updated:** [August 24, 2023, 7:23pm UTC](https://discuss.hashicorp.com/t/wrong-permission-on-being-set-on-serviceaccount-token/28777 "2023-08-24T19:23:06Z")

</div>

I am currently using terraform 1.0.5. I recently upgraded to kubernetes 1.21.2 and I realized that when I try to install olm (crds.yaml and olm.yaml) I am getting an error. The error I get is a permission denied error. T…

---

## [Unable to set multiple subnets in helm\_release](https://discuss.hashicorp.com/t/unable-to-set-multiple-subnets-in-helm-release/42375)

<div class="topic-metadata">

**Author:** [@pikluranjandas](https://discuss.hashicorp.com/u/pikluranjandas)\
**Replies:** 3\
**Last updated:** [August 24, 2023, 1:19pm UTC](https://discuss.hashicorp.com/t/unable-to-set-multiple-subnets-in-helm-release/42375 "2023-08-24T13:19:24Z")

</div>

I am not able to add multiple subnets using helm\_release provider. I have eks deployed and I want to use eks private subnets to add Internal NLB but I can only able to add the single subnet. If i add count and element i…

---

## [AWS-EKS module is giving error configmap \\"aws-auth\\" does not exist](https://discuss.hashicorp.com/t/aws-eks-module-is-giving-error-configmap-aws-auth-does-not-exist/55802)

<div class="topic-metadata">

**Author:** [@devang.sanghani](https://discuss.hashicorp.com/u/devang.sanghani)\
**Replies:** 3\
**Last updated:** [July 10, 2023, 3:33pm UTC](https://discuss.hashicorp.com/t/aws-eks-module-is-giving-error-configmap-aws-auth-does-not-exist/55802 "2023-07-10T15:33:52Z")

</div>

I first deployed just the cluster and then added the aws\_auth code.I am using TFv1.5.0. My eks.tf config looks like below: module "eks" { source = "terraform-aws-modules/eks/aws" version = "19.15.3" cluster\_name…

---

## [Install helm pluging using terraform helm provider](https://discuss.hashicorp.com/t/install-helm-pluging-using-terraform-helm-provider/54765)

<div class="topic-metadata">

**Author:** [@ruwanvm](https://discuss.hashicorp.com/u/ruwanvm)\
**Replies:** 0\
**Last updated:** [June 9, 2023, 3:09am UTC](https://discuss.hashicorp.com/t/install-helm-pluging-using-terraform-helm-provider/54765 "2023-06-09T03:09:16Z")

</div>

I am trying to setup helm secrets plugin using helm\_release resource. Following is my code resource "helm\_release" "helm-secrets" { name = "secrets" repository = "https://github.com/jkroepke/helm-secrets" ch…

---

## [How to get AKS namespace deployment YAML details using Terraform](https://discuss.hashicorp.com/t/how-to-get-aks-namespace-deployment-yaml-details-using-terraform/54572)

<div class="topic-metadata">

**Author:** [@rakesh.seelam](https://discuss.hashicorp.com/u/rakesh.seelam)\
**Replies:** 0\
**Last updated:** [June 5, 2023, 10:22am UTC](https://discuss.hashicorp.com/t/how-to-get-aks-namespace-deployment-yaml-details-using-terraform/54572 "2023-06-05T10:22:35Z")

</div>

This is regarding a technical query we are trying to achieve. Query: We would like to get deployment details of namespace related to a private AKS cluster. Here is the equivalent kubectl command that we are trying to …

---

## [Helm chart components installed w/o the helm chart](https://discuss.hashicorp.com/t/helm-chart-components-installed-w-o-the-helm-chart/54007)

<div class="topic-metadata">

**Author:** [@darkn3rd](https://discuss.hashicorp.com/u/darkn3rd)\
**Replies:** 9\
**Last updated:** [May 22, 2023, 8:14am UTC](https://discuss.hashicorp.com/t/helm-chart-components-installed-w-o-the-helm-chart/54007 "2023-05-22T08:14:14Z")

</div>

Can anyone explain this one, is this a bug?!? I run terraform apply to install two terraform modules that are wrappers for helm charts, one is the CRDs, other is the actual application. The chart for CRDs gets install…

---

## [Default secret no longer being generated for service account, with Kubernetes 1.24.0](https://discuss.hashicorp.com/t/default-secret-no-longer-being-generated-for-service-account-with-kubernetes-1-24-0/53681)

<div class="topic-metadata">

**Author:** [@vidyaavm](https://discuss.hashicorp.com/u/vidyaavm)\
**Replies:** 3\
**Last updated:** [May 12, 2023, 1:52pm UTC](https://discuss.hashicorp.com/t/default-secret-no-longer-being-generated-for-service-account-with-kubernetes-1-24-0/53681 "2023-05-12T13:52:44Z")

</div>

I am new to terraform and Kubernetes. We are trying to get the service account secret token to pass to create the kubeconfig file. We were using the default\_secret\_name attribute of the kubernetes\_service\_account resourc…

---

## [EKS Cluster Unreachable](https://discuss.hashicorp.com/t/eks-cluster-unreachable/47541)

<div class="topic-metadata">

**Author:** [@piratekev](https://discuss.hashicorp.com/u/piratekev)\
**Replies:** 3\
**Last updated:** [May 8, 2023, 12:39pm UTC](https://discuss.hashicorp.com/t/eks-cluster-unreachable/47541 "2023-05-08T12:39:26Z")

</div>

Hi all, I’ve been using the helm provider exec plugin authentication for terraform to authenticate to EKS. As of today, it has stopped working and none of my jobs can connect to either of my two clusters. Error: Kubern…

---

## [Kubernetes provider with Azure Openshift](https://discuss.hashicorp.com/t/kubernetes-provider-with-azure-openshift/53463)

<div class="topic-metadata">

**Author:** [@dbiegunski](https://discuss.hashicorp.com/u/dbiegunski)\
**Replies:** 3\
**Last updated:** [May 4, 2023, 9:10pm UTC](https://discuss.hashicorp.com/t/kubernetes-provider-with-azure-openshift/53463 "2023-05-04T21:10:27Z")

</div>

I would like to know if the Kubernetes provider supports authentication to Openshift Cluster. This doesn’t seem to work. provider “kubernetes” { host = “https://api.hidden:hidden/” cluster\_ca\_certif…

---

## [Kubernetes\_manifest deletes pv/pvc upon deletion (and it shouldnt)](https://discuss.hashicorp.com/t/kubernetes-manifest-deletes-pv-pvc-upon-deletion-and-it-shouldnt/52667)

<div class="topic-metadata">

**Author:** [@racklen](https://discuss.hashicorp.com/u/racklen)\
**Replies:** 1\
**Last updated:** [April 24, 2023, 12:29pm UTC](https://discuss.hashicorp.com/t/kubernetes-manifest-deletes-pv-pvc-upon-deletion-and-it-shouldnt/52667 "2023-04-24T12:29:07Z")

</div>

When using emqx5 operator there is a problem with persistence. Using Azure cloud this happens: When I follow the non-terraform guide (which means ‘kubectl apply -f emqx.yaml’, ‘kubectl delete -f emqx.yaml’, ‘kubectl ap…

---

## [Aws\_eks\_cluster empty data source error or Kubernetes provider localhost error](https://discuss.hashicorp.com/t/aws-eks-cluster-empty-data-source-error-or-kubernetes-provider-localhost-error/52761)

<div class="topic-metadata">

**Author:** [@Roxyrob](https://discuss.hashicorp.com/u/Roxyrob)\
**Replies:** 0\
**Last updated:** [April 16, 2023, 1:15am UTC](https://discuss.hashicorp.com/t/aws-eks-cluster-empty-data-source-error-or-kubernetes-provider-localhost-error/52761 "2023-04-16T01:15:30Z")

</div>

I’m in a loop trying to destroy eks cluster using create = false instead of terraform destroy in “terraform-aws-eks” sample code: eks\_managed\_node\_group I can run terraform apply without issues, but if I use create=fal…

---

## [Vault.hashicorp.com/template-static-secret-render-interval doesn't work](https://discuss.hashicorp.com/t/vault-hashicorp-com-template-static-secret-render-interval-doesnt-work/52496)

<div class="topic-metadata">

**Author:** [@ittechuok](https://discuss.hashicorp.com/u/ittechuok)\
**Replies:** 2\
**Last updated:** [April 10, 2023, 5:22pm UTC](https://discuss.hashicorp.com/t/vault-hashicorp-com-template-static-secret-render-interval-doesnt-work/52496 "2023-04-10T17:22:03Z")

</div>

Hi I’m using the following hashicope annotations and these annotations are patched in the application pod using kubectl patch sts app-sts --patch “$(cat template.json)” command. vault.hashicorp.com/agent-inject…

---

## [Terraform + kubernetes + minio - server missbehaving](https://discuss.hashicorp.com/t/terraform-kubernetes-minio-server-missbehaving/52286)

<div class="topic-metadata">

**Author:** [@karr1gan](https://discuss.hashicorp.com/u/karr1gan)\
**Replies:** 4\
**Last updated:** [April 4, 2023, 8:11pm UTC](https://discuss.hashicorp.com/t/terraform-kubernetes-minio-server-missbehaving/52286 "2023-04-04T20:11:18Z")

</div>

Hi everyone, Our Minio is set up using minio-operator helm chart. What are additional steps to be performed to get it work? I am getting error that my server is missbehaving. Below you can find my terraform code.

---

## [Help create terraform module use Kubernetes provider](https://discuss.hashicorp.com/t/help-create-terraform-module-use-kubernetes-provider/51457)

<div class="topic-metadata">

**Author:** [@leandro](https://discuss.hashicorp.com/u/leandro)\
**Replies:** 2\
**Last updated:** [March 16, 2023, 8:46am UTC](https://discuss.hashicorp.com/t/help-create-terraform-module-use-kubernetes-provider/51457 "2023-03-16T08:46:07Z")

</div>

Hi, everyone! I’m writing a terraform module using kubernetes provider, I coded namespace resource using the variable named namespace with a type map(any) . The resoure namespace I use for\_each, becouse I will have man…

---

## [An argument named "image\_pull\_policy" is not expected here](https://discuss.hashicorp.com/t/an-argument-named-image-pull-policy-is-not-expected-here/51202)

<div class="topic-metadata">

**Author:** [@ummershervani](https://discuss.hashicorp.com/u/ummershervani)\
**Replies:** 0\
**Last updated:** [March 9, 2023, 3:47am UTC](https://discuss.hashicorp.com/t/an-argument-named-image-pull-policy-is-not-expected-here/51202 "2023-03-09T03:47:39Z")

</div>

Now I am debating why I started using terraform provider for k8s. Just to add image\_pull\_policy = “Always” I am running into lot of issues. I wouldn’t recommend anyone to go this route. Use Helm or use k8s manifest. …

---

## [Vault Pod is getting crashed](https://discuss.hashicorp.com/t/vault-pod-is-getting-crashed/51087)

<div class="topic-metadata">

**Author:** [@sudha.kumari](https://discuss.hashicorp.com/u/sudha.kumari)\
**Replies:** 0\
**Last updated:** [March 7, 2023, 8:26am UTC](https://discuss.hashicorp.com/t/vault-pod-is-getting-crashed/51087 "2023-03-07T08:26:23Z")

</div>

Hi Team, I am deploying the Vault pod on openshift version 4.10 and helm version is v3.11.1. But My pod is getting crashed. Below is the error I have noticed in logs. \[root@tm-sc5f01-cmn-nec-cpmg0001 vault\]# oc logs…

---

## [Dial tcp: lookup xxxxx.eu-west-1.eks.amazonaws.com on 192.168.x.x:53: no such host](https://discuss.hashicorp.com/t/dial-tcp-lookup-xxxxx-eu-west-1-eks-amazonaws-com-on-192-168-x-x-no-such-host/6839)

<div class="topic-metadata">

**Author:** [@vrathore18](https://discuss.hashicorp.com/u/vrathore18)\
**Replies:** 1\
**Last updated:** [February 15, 2023, 7:33pm UTC](https://discuss.hashicorp.com/t/dial-tcp-lookup-xxxxx-eu-west-1-eks-amazonaws-com-on-192-168-x-x-no-such-host/6839 "2023-02-15T19:33:25Z")

</div>

I am getting this tiller error. Last time I fixed this by some workaround(I forgot the workaround). Is there a permanent fix for this cloud aws provider "helm" { service\_account = "${kubernetes\_service\_account.tiller…

---

## [Kubernetes dashboard through traefik](https://discuss.hashicorp.com/t/kubernetes-dashboard-through-traefik/49697)

<div class="topic-metadata">

**Author:** [@blogjafza](https://discuss.hashicorp.com/u/blogjafza)\
**Replies:** 1\
**Last updated:** [February 3, 2023, 7:57am UTC](https://discuss.hashicorp.com/t/kubernetes-dashboard-through-traefik/49697 "2023-02-03T07:57:33Z")

</div>

I have a Kubernetes cluster (release 1.23.4) working using Traefik(release 2.7.0). I would like to access the kubernetes dashboard through IngressRoute Traefix, everything seems to work correctly no error in the log of t…

---

## [Associating multiple kubernetes modules with multi-cluster environment](https://discuss.hashicorp.com/t/associating-multiple-kubernetes-modules-with-multi-cluster-environment/48862)

<div class="topic-metadata">

**Author:** [@abhis.sharma1111](https://discuss.hashicorp.com/u/abhis.sharma1111)\
**Replies:** 0\
**Last updated:** [January 12, 2023, 8:33am UTC](https://discuss.hashicorp.com/t/associating-multiple-kubernetes-modules-with-multi-cluster-environment/48862 "2023-01-12T08:33:31Z")

</div>

Hi, I have setup a GCP terraform configuration where multiple modules are present. Each module has the capability of being called independently provided the dependent modules are also called/already deployed. I am also…

---

## [AKS host network of POD](https://discuss.hashicorp.com/t/aks-host-network-of-pod/48679)

<div class="topic-metadata">

**Author:** [@sk8228402](https://discuss.hashicorp.com/u/sk8228402)\
**Replies:** 0\
**Last updated:** [January 8, 2023, 5:37am UTC](https://discuss.hashicorp.com/t/aks-host-network-of-pod/48679 "2023-01-08T05:37:02Z")

</div>

What is impact of changing host network of a pod from TRUE to FALSE? And what are the test cases of this feature?

---

## [Azure kubernetes cluster node pools subnet limitation](https://discuss.hashicorp.com/t/azure-kubernetes-cluster-node-pools-subnet-limitation/48477)

<div class="topic-metadata">

**Author:** [@asitha99x](https://discuss.hashicorp.com/u/asitha99x)\
**Replies:** 0\
**Last updated:** [January 2, 2023, 7:11am UTC](https://discuss.hashicorp.com/t/azure-kubernetes-cluster-node-pools-subnet-limitation/48477 "2023-01-02T07:11:31Z")

</div>

(greetings for a great 2023! ) Hi according to the current documentation of the kubernetes\_cluster\_node\_pool, we cannot deploy nodepools on different subnets? do we know when will this feature will be available ? any t…

---

## [Resource kubectl\_manifest update failure](https://discuss.hashicorp.com/t/resource-kubectl-manifest-update-failure/48014)

<div class="topic-metadata">

**Author:** [@AmitKatyal1980](https://discuss.hashicorp.com/u/AmitKatyal1980)\
**Replies:** 0\
**Last updated:** [December 15, 2022, 10:56am UTC](https://discuss.hashicorp.com/t/resource-kubectl-manifest-update-failure/48014 "2022-12-15T10:56:52Z")

</div>

Hi, We are using the kubectl\_manifest plugin to create the k8s resource. Terraform Registry The resource is getting created but when we are trying to update the resource, we are getting below error. Error: Provider pr…

---

## [Helm cache size locally is too big](https://discuss.hashicorp.com/t/helm-cache-size-locally-is-too-big/47397)

<div class="topic-metadata">

**Author:** [@xyfleet](https://discuss.hashicorp.com/u/xyfleet)\
**Replies:** 6\
**Last updated:** [December 14, 2022, 5:14pm UTC](https://discuss.hashicorp.com/t/helm-cache-size-locally-is-too-big/47397 "2022-12-14T17:14:56Z")

</div>

Hi Terraform Team, I am using Terraform to deploy/manage my cloud environment, where I used a lot of helm charts. As a result, I have a big size of helm cache on my computer locally. I tried to delete these caches and t…

---

## [How to get a list of Kubernetes resources?](https://discuss.hashicorp.com/t/how-to-get-a-list-of-kubernetes-resources/47681)

<div class="topic-metadata">

**Author:** [@gidyn](https://discuss.hashicorp.com/u/gidyn)\
**Replies:** 0\
**Last updated:** [December 6, 2022, 12:42pm UTC](https://discuss.hashicorp.com/t/how-to-get-a-list-of-kubernetes-resources/47681 "2022-12-06T12:42:02Z")

</div>

I need to get a list of Kubernetes resources (e.g. services) in a namespace that match a specific pattern. kubernetes\_service will select a service with a known name, how do I find a list of services whose name is not kn…

---

## [Install kubeflow using terraform on kubernetes](https://discuss.hashicorp.com/t/install-kubeflow-using-terraform-on-kubernetes/47282)

<div class="topic-metadata">

**Author:** [@flissek](https://discuss.hashicorp.com/u/flissek)\
**Replies:** 0\
**Last updated:** [November 24, 2022, 11:18am UTC](https://discuss.hashicorp.com/t/install-kubeflow-using-terraform-on-kubernetes/47282 "2022-11-24T11:18:39Z")

</div>

there is need to installl kubeflow using terraform. As I understand ‘juju’ must be installed, so I found juju provider on terraform: Terraform Registry I use below code into terraform: terraform { required\_version = …

---

## [Create p12 keystore secret in TF's kubernetes provider](https://discuss.hashicorp.com/t/create-p12-keystore-secret-in-tfs-kubernetes-provider/47433)

<div class="topic-metadata">

**Author:** [@kansalnishant](https://discuss.hashicorp.com/u/kansalnishant)\
**Replies:** 1\
**Last updated:** [November 29, 2022, 9:50pm UTC](https://discuss.hashicorp.com/t/create-p12-keystore-secret-in-tfs-kubernetes-provider/47433 "2022-11-29T21:50:36Z")

</div>

I have posted my query here: terraform - create p12 keystore secret in TF's kubernetes provider - Stack Overflow Please help.

---

## [Terraform with K8s provider issues](https://discuss.hashicorp.com/t/terraform-with-k8s-provider-issues/47318)

<div class="topic-metadata">

**Author:** [@linuxbsdfreak](https://discuss.hashicorp.com/u/linuxbsdfreak)\
**Replies:** 1\
**Last updated:** [November 29, 2022, 9:23pm UTC](https://discuss.hashicorp.com/t/terraform-with-k8s-provider-issues/47318 "2022-11-29T21:23:43Z")

</div>

Hi, I am puzzled with the following behaviour with terraform. I keep getting the error with plan Terraform v1.3.5 on darwin\_amd64 module.gardener-shoot-aws-cilium-kubectl.kubectl\_manifest.gardener\_shoot: Refreshing s…

---

## [Deletion of \`kubernetes\_ingress\_v1\` times out](https://discuss.hashicorp.com/t/deletion-of-kubernetes-ingress-v1-times-out/47304)

<div class="topic-metadata">

**Author:** [@seanlee10](https://discuss.hashicorp.com/u/seanlee10)\
**Replies:** 0\
**Last updated:** [November 25, 2022, 2:06am UTC](https://discuss.hashicorp.com/t/deletion-of-kubernetes-ingress-v1-times-out/47304 "2022-11-25T02:06:39Z")

</div>

Hi I created an ingress using kubernetes\_ingress\_v1 type on my EKS 1.23 cluster. I noticed that when I run terraform destroy the resource does not get cleaned up and only times out. I have to manually delete a load balan…

---

## [GKE private and vault auth](https://discuss.hashicorp.com/t/gke-private-and-vault-auth/47253)

<div class="topic-metadata">

**Author:** [@geekette86](https://discuss.hashicorp.com/u/geekette86)\
**Replies:** 0\
**Last updated:** [November 23, 2022, 5:46pm UTC](https://discuss.hashicorp.com/t/gke-private-and-vault-auth/47253 "2022-11-23T17:46:22Z")

</div>

Hi Pïps I have been working on kubernetes auth method for Vault . Vaullt is not able to connect to my GKE private cluster endpoint as It is only accessible through API proxy. Is there any way we can pass proxy in the be…

[Previous page](https://discuss.hashicorp.com/c/terraform-providers/kubernetes/40.md)

[Next page](https://discuss.hashicorp.com/c/terraform-providers/kubernetes/40.md?page=2)
