MVP Terraform manifest for provisioning a delegate (non immutable) Purpose is to ease and automate onboarding through configuration as code .
Feel free to hack and change as you see fit !
The terraform manifest uses the official kubernetes provider from Hashicorp . It is set to read your kubeconfig file you will need to provide path and context . Alteratively use what ever credential helper or auth configuration that suits you .
https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs
With this provider it will create exaclty the same kubernetes objects as the kubernetes YAML downloaded form Harness. Namely : Namespace , Cluster role binding , secret and statefulset .
harness_account_id
harness_delegate_token
delegate_name
delegate_namespace
kubectl_config_context_name