Skip to content

Commit

Permalink
Merge pull request #1210 from Nordix/furkat/use-individual-sa
Browse files Browse the repository at this point in the history
⚠️ Use custom service accounts instead of default for controllers
  • Loading branch information
k8s-ci-robot authored Mar 10, 2021
2 parents e6a7730 + ccec4c0 commit 534db6c
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 6 deletions.
6 changes: 3 additions & 3 deletions config/default/aad-pod-identity-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ metadata:
k8s-app: capz-aad-pod-id-nmi-binding
subjects:
- kind: ServiceAccount
name: default
namespace: capz-system
name: manager
namespace: system
roleRef:
kind: ClusterRole
name: aad-pod-id-nmi-role
Expand Down Expand Up @@ -92,7 +92,7 @@ spec:
component: nmi
tier: node
spec:
serviceAccountName: default
serviceAccountName: manager
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
volumes:
Expand Down
1 change: 1 addition & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,4 @@ spec:
fieldRef:
fieldPath: metadata.namespace
terminationGracePeriodSeconds: 10
serviceAccountName: manager
2 changes: 1 addition & 1 deletion config/rbac/auth_proxy_role_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ roleRef:
name: proxy-role
subjects:
- kind: ServiceAccount
name: default
name: manager
namespace: system
1 change: 1 addition & 0 deletions config/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Kustomization
resources:
- role.yaml
- role_binding.yaml
- service_account.yaml
- leader_election_role.yaml
- leader_election_role_binding.yaml
- auth_proxy_client_clusterrole.yaml
Expand Down
2 changes: 1 addition & 1 deletion config/rbac/leader_election_role_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ roleRef:
name: leader-election-role
subjects:
- kind: ServiceAccount
name: default
name: manager
namespace: system
2 changes: 1 addition & 1 deletion config/rbac/role_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ roleRef:
name: manager-role
subjects:
- kind: ServiceAccount
name: default
name: manager
namespace: system
5 changes: 5 additions & 0 deletions config/rbac/service_account.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: manager
namespace: system

0 comments on commit 534db6c

Please sign in to comment.