You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing this message: ERR error fetching referenced service account, continue without service account imagePullSecrets error="serviceaccounts \"myapp-services\" is forbidden: User \"system:serviceaccount:k8s-image-swapper:k8s-image-swapper\" cannot get resource \"serviceaccounts\" in API group \"\" in the namespace \"myns\""
at every access.
To give needed permissions to k8s-image-swapper, I'm using an EC2 Role.
The text was updated successfully, but these errors were encountered:
You need to create a ClusterRole with the appropriate permissions, for example in Terraform:
rule {
api_groups = [""]
resources = [
"serviceaccounts",
"secrets",
]
verbs = [""]
}
and bind it to the service account using a ClusterRoleBinding. That's what did it for me. :]
I'm seeing this message:
ERR error fetching referenced service account, continue without service account imagePullSecrets error="serviceaccounts \"myapp-services\" is forbidden: User \"system:serviceaccount:k8s-image-swapper:k8s-image-swapper\" cannot get resource \"serviceaccounts\" in API group \"\" in the namespace \"myns\""
at every access.
To give needed permissions to k8s-image-swapper, I'm using an EC2 Role.
The text was updated successfully, but these errors were encountered: