From b5441f22167c38e827a7b4ffa0eaddc476c15dd9 Mon Sep 17 00:00:00 2001 From: Steve Wagner Date: Mon, 13 Feb 2023 12:36:23 -0800 Subject: [PATCH] RBAC resources to `nkl` namespace --- k8s/RBAC/ClusterRole.yaml | 1 + k8s/RBAC/ClusterRoleBinding.yaml | 4 +++- k8s/RBAC/Secret.yaml | 1 + k8s/RBAC/ServiceAccount.yaml | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/k8s/RBAC/ClusterRole.yaml b/k8s/RBAC/ClusterRole.yaml index 79036d1..3e57240 100644 --- a/k8s/RBAC/ClusterRole.yaml +++ b/k8s/RBAC/ClusterRole.yaml @@ -2,6 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: ingress-resource-get-watch-list + namespace: nkl rules: - apiGroups: - "" diff --git a/k8s/RBAC/ClusterRoleBinding.yaml b/k8s/RBAC/ClusterRoleBinding.yaml index 54fd291..eeb2e51 100644 --- a/k8s/RBAC/ClusterRoleBinding.yaml +++ b/k8s/RBAC/ClusterRoleBinding.yaml @@ -2,11 +2,13 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: "nginx-k8s-edge-controller:ingress-resource-get-watch-list" + namespace: nkl subjects: - kind: ServiceAccount name: nginx-k8s-edge-controller - namespace: default + namespace: nkl roleRef: kind: ClusterRole name: ingress-resource-get-watch-list + namespace: nkl apiGroup: rbac.authorization.k8s.io diff --git a/k8s/RBAC/Secret.yaml b/k8s/RBAC/Secret.yaml index d06c17d..7671f7d 100644 --- a/k8s/RBAC/Secret.yaml +++ b/k8s/RBAC/Secret.yaml @@ -2,6 +2,7 @@ apiVersion: v1 kind: Secret metadata: name: nginx-k8s-edge-controller-secret + namespace: nkl annotations: kubernetes.io/service-account.name: nginx-k8s-edge-controller type: kubernetes.io/service-account-token diff --git a/k8s/RBAC/ServiceAccount.yaml b/k8s/RBAC/ServiceAccount.yaml index 0d80a90..b743544 100644 --- a/k8s/RBAC/ServiceAccount.yaml +++ b/k8s/RBAC/ServiceAccount.yaml @@ -2,3 +2,4 @@ apiVersion: v1 kind: ServiceAccount metadata: name: nginx-k8s-edge-controller + namespace: nkl