Overview of the kubectl provider
masterThe terraform-provider-kubectl is a Terraform provider designed to manage Kubernetes resources using raw YAML manifests. Its core component is the kubectl_manifest resource, which allows you to apply free-form YAML to a cluster while providing full lifecycle management (create, update, delete) and drift detection.
Key capabilities include:
- Resource Management: Apply raw YAML manifests via
kubectl_manifest. - Data Discovery: Use data sources to read objects from the cluster, glob YAML files in directories, or split multi-document YAML strings.
- Server Information: Read API-server version information.
- Ephemeral Resources: Use
kubectl_manifestas an ephemeral resource (Terraform 1.10+) to fetch values without persisting them to the Terraform state.