From 5b6362b5b4495b25331b5f2e9ca239626eaaee0e Mon Sep 17 00:00:00 2001 From: MicaiahReid Date: Thu, 28 Sep 2023 20:16:19 -0400 Subject: [PATCH] update clusterrole permissions for new assets --- templates/stacks-devnet-api.template.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/templates/stacks-devnet-api.template.yaml b/templates/stacks-devnet-api.template.yaml index cf2e91f..bdf07c3 100644 --- a/templates/stacks-devnet-api.template.yaml +++ b/templates/stacks-devnet-api.template.yaml @@ -11,7 +11,10 @@ metadata: name: stacks-devnet-api rules: - apiGroups: [""] - resources: ["pods", "pods/status", "services", "configmaps", "persistentvolumeclaims"] + resources: ["pods", "pods/status", "services", "configmaps"] + verbs: ["get", "delete", "create"] + - apiGroups: ["apps"] + resources: ["deployments", "statefulsets"] verbs: ["get", "delete", "create"] - apiGroups: [""] resources: ["namespaces"] @@ -46,10 +49,10 @@ spec: containers: - command: ["stacks-devnet-api"] name: stacks-devnet-api - image: hirosystems/stacks-devnet-api:latest + image: stacks-devnet-api imagePullPolicy: IfNotPresent ports: - - containerPort: 8477 + - containerPort: 8478 name: api protocol: TCP volumeMounts: @@ -71,7 +74,7 @@ spec: - name: api port: 8477 protocol: TCP - targetPort: 8477 + targetPort: 8478 nodePort: 30000 selector: name: stacks-devnet-api