Jenkins setup: custom agent with pre-installed helm and kubectl, nothing else.
Hello there! Have issue chained with low permissions of jenkins pod.
Error: Error from server (Forbidden): pods is forbidden: User “system:serviceaccount:monitoring:default” cannot list resource “pods” in API group “” in the namespace “oracle-23”<
Like you can see, not enough permissions to view.
I deployed Jenkins by official helm chart - jenkisci*
The command : export NODE_NAME=$(kubectl get pods -n $KUBE_NAMESPACE -o wide | grep ^oracle-db | awk ‘{print $7}’) - in groovy script