From cf42609197f18ee93f97a10db8e111550dfe6640 Mon Sep 17 00:00:00 2001 From: "Otter Prime Sr (steve)" Date: Fri, 30 Jun 2023 12:54:21 -0700 Subject: [PATCH] Fix Cluster Role, pathing in script, and README instructions --- README.md | 6 +++--- deployments/rbac/apply.sh | 4 ++++ deployments/rbac/clusterrole.yaml | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 10fe59bc..8a1c0d77 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ There is a much more detailed [Installation Reference](docs/README.md) available 2. Apply the Namespace -```kubectl apply -f deployments/namespace.yaml``` +```kubectl apply -f deployments/deployment/namespace.yaml``` 3. Apply the RBAC resources @@ -119,11 +119,11 @@ There is a much more detailed [Installation Reference](docs/README.md) available 4. Update / Apply the ConfigMap (For best results update the `nginx-hosts` values first) -```kubectl apply -f deployments/configmap.yaml``` +```kubectl apply -f deployments/deployment/configmap.yaml``` 5. Apply the Deployment -```kubectl apply -f deployments/deployment.yaml``` +```kubectl apply -f deployments/deployment/deployment.yaml``` 6. Check the logs diff --git a/deployments/rbac/apply.sh b/deployments/rbac/apply.sh index e1689c5f..58248da1 100755 --- a/deployments/rbac/apply.sh +++ b/deployments/rbac/apply.sh @@ -1,8 +1,12 @@ #!/bin/bash +pushd "$(dirname "$0")" + echo "Applying all RBAC resources..." kubectl apply -f serviceaccount.yaml kubectl apply -f clusterrole.yaml kubectl apply -f clusterrolebinding.yaml kubectl apply -f secret.yaml + +popd diff --git a/deployments/rbac/clusterrole.yaml b/deployments/rbac/clusterrole.yaml index 5827ef60..9edf9e0f 100644 --- a/deployments/rbac/clusterrole.yaml +++ b/deployments/rbac/clusterrole.yaml @@ -1,7 +1,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: - name: ingress-resource-get-watch-list + name: resource-get-watch-list namespace: nlk rules: - apiGroups: