# harness runner identity (Terraform design 6.11): Chaos Mesh CRs, rollout/scale, pod reads, cordon/drain. # Tokens are minted by `make token` (kubectl create token harness -n chaos-mesh --duration 24h) into Secret Manager. apiVersion: v1 kind: ServiceAccount metadata: name: harness namespace: chaos-mesh --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: selfheal-harness rules: - apiGroups: ["chaos-mesh.org"] resources: ["*"] verbs: ["*"] - apiGroups: ["apps"] resources: ["deployments", "deployments/scale"] verbs: ["get", "list", "watch", "patch"] - apiGroups: [""] resources: ["pods"] verbs: ["get", "list", "watch"] - apiGroups: [""] resources: ["nodes"] verbs: ["get", "list", "watch", "patch"] - apiGroups: [""] resources: ["pods/eviction"] verbs: ["create"] --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: selfheal-harness roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: selfheal-harness subjects: - kind: ServiceAccount name: harness namespace: chaos-mesh