Use terraform to manage state in a kubernetes cluster.
- configure the Kubernetes provider by creating a name-space.
- deploy the application in a pod.
- expose the pod to the users as a service.
- NOTE: To do all these, you need to have your Kubernetes cluster up and running. personally, I used minikube. minikube's primary goal is to quickly set up local Kubernetes clusters, more information can be found here: what is minikube?
Check your provider version and initialize Terraform.
terraform init
Now it's time to actually using apply.
terraform apply
Deletes and removes Terraform-managed infrastructure
terraform destroy
- Deploy the Pod
- Create Deployment
- Expose The Pod With A Service
- helm
Contributions are always welcome!