I was trying to export the node’s CIDR and External IP addresses so I can indentify where the request was coming from.
In the Deploy step, I’ve added the following command:
export K8S_NODES_CIDRS=$(kubectl get nodes -o jsonpath='{.items[*].spec.podCIDR}') # collapsed multi-line command
Error from server (Forbidden): nodes is forbidden: User "system:serviceaccount:[ZIPPED]-70olbd:[ZIPPED]-70olbd-service-account" cannot list resource "nodes" in API group "" at the cluster scope
Is there a way to set the service account permissions during deploy?