How to integrate kubernetes with Terraform

0 votes

Hi Guys,

I am new in Terraform. I have my Minikube cluster. I want to integrate the Minikube cluster with Terraform. Can anyone help me, how can I do that?

Jun 16, 2020 in Terraform by akhtar
• 38,170 points
209 views

1 answer to this question.

0 votes

Hi@akhtar,

You can use Kubernetes as your Terraform provider. Terraform supports various providers like AWS, OpenStack, Kubernetes, etc. I have attached one example for your reference.

provider "kubernetes" {
  config_context_cluster   = "minikube"
}

I hope this will help you.

answered Jun 16, 2020 by MD
• 95,160 points

Related Questions In Terraform

0 votes
1 answer

How to connect to the Kubernetes cluster from Terraform?

Hi@akhtar, You need to install the plugins using ...READ MORE

answered Sep 13, 2020 in Terraform by MD
• 95,160 points
117 views
0 votes
1 answer

How to create a namespace in the Kubernetes cluster using Terraform?

Hi@akhtar, You can use kubernetes_namespace resource in your ...READ MORE

answered Sep 13, 2020 in Terraform by MD
• 95,160 points
646 views
0 votes
1 answer

How to expose a Pod in Kubernetes using Terraform?

Hi@MD, You can use kubernetes_service resource to expose ...READ MORE

answered Sep 27, 2020 in Terraform by akhtar
• 38,170 points
132 views
0 votes
1 answer

How to get LoadBalancer IP in Kubernetes using Terraform script?

Hi@akhtar, In your Terraform script, you can output ...READ MORE

answered Sep 27, 2020 in Terraform by MD
• 95,160 points
378 views
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
10,328 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 11, 2019 in Kubernetes by Kalgi
• 52,310 points

reshown Apr 12, 2019 by Kalgi 3,198 views
0 votes
1 answer

How to launch EC2 windows instance with powershell script using terraform?

Hi, In your Terraform code, you have written ...READ MORE

answered Jul 21, 2020 in Terraform by MD
• 95,160 points
1,359 views
+2 votes
1 answer

How to attach an elastic load balancer with ec2 instance using Terraform?

Hi@akhtar, You can use aws_elb_attachment resource in Terraform. ...READ MORE

answered Aug 17, 2020 in Terraform by MD
• 95,160 points
1,129 views