If you are running the Terraform Runner in the target cluster, you additionally need to:
- Create a Kubernetes Role in the Runner namespace:
TF Runner Kubernetes Role
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: terraform-runner-role
namespace: tf-runner-namespace
rules:
- apiGroups: ["batch"]
resources: ["jobs"]
verbs : ["create", "delete"]
- apiGroups: [""]
resources: ["secrets"]
verbs : ["get", "create", "delete", "deletecollection"]