Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.01 KB

File metadata and controls

41 lines (31 loc) · 1.01 KB

Local Kubernetes Cluster Reference (Terraform)

This repository serves as a reference for deploying local Kubernetes clusters using Terraform and Kind (Kubernetes IN Docker).

Prerequisites

Usage

  1. Initialize Terraform:

    terraform init
  2. Plan the deployment:

    terraform plan
  3. Apply the configuration:

    terraform apply
  4. Configure kubectl: The kubeconfig will be generated automatically in the root directory. You can use it with:

    export KUBECONFIG=${PWD}/kubeconfig
    kubectl get nodes

Structure

  • main.tf: Main Terraform configuration.
  • versions.tf: Provider versions and constraints.
  • variables.tf: Input variables.
  • outputs.tf: Output values.