From 901aaa2d45a94db5af96e99d19eb91aa127c0e7b Mon Sep 17 00:00:00 2001 From: Huaqing Mo Date: Wed, 13 Nov 2024 15:02:16 +0800 Subject: [PATCH] fix serviceAccount (#46) --- config/manager/manager.yaml | 1 + config/rbac/kustomization.yaml | 1 + config/rbac/role_binding.yaml | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/manager/manager.yaml b/config/manager/manager.yaml index 87f67ea..045cc07 100644 --- a/config/manager/manager.yaml +++ b/config/manager/manager.yaml @@ -50,6 +50,7 @@ spec: httpGet: path: /healthz port: healthz + serviceAccountName: controller-manager terminationGracePeriodSeconds: 10 tolerations: - effect: NoSchedule diff --git a/config/rbac/kustomization.yaml b/config/rbac/kustomization.yaml index 439c501..d548f42 100644 --- a/config/rbac/kustomization.yaml +++ b/config/rbac/kustomization.yaml @@ -7,5 +7,6 @@ resources: #! - service_account.yaml - role.yaml - role_binding.yaml +- service_account.yaml - leader_election_role.yaml - leader_election_role_binding.yaml diff --git a/config/rbac/role_binding.yaml b/config/rbac/role_binding.yaml index 8f26587..2070ede 100644 --- a/config/rbac/role_binding.yaml +++ b/config/rbac/role_binding.yaml @@ -8,5 +8,5 @@ roleRef: name: manager-role subjects: - kind: ServiceAccount - name: default + name: controller-manager namespace: system