Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

k8s.Autorest.HttpOperationException 'Forbidden' #4

Open
emersonramos opened this issue Nov 18, 2022 · 0 comments
Open

k8s.Autorest.HttpOperationException 'Forbidden' #4

emersonramos opened this issue Nov 18, 2022 · 0 comments

Comments

@emersonramos
Copy link

emersonramos commented Nov 18, 2022

Hi everyone,

I'm trying to run ado-orchestrator on a EKS and I get the error on pod:

Unhandled exception. k8s.Autorest.HttpOperationException: Operation returned an invalid status code 'Forbidden'

I create a exclusive namespace, but I'm not using a Service Account. It's necessary?

Full log below:

Starting Agent Orchestrator .. ORG_URL: https://dev.azure.com/<REMOVED>/ Unhandled exception. k8s.Autorest.HttpOperationException: Operation returned an invalid status code "Forbidden" at k8s.Kubernetes.SendRequestRaw(String requestContent, HttpRequestMessage httpRequest, CancellationToken cancellationToken) at k8s.AbstractKubernetes.k8s.ICoreV1Operations.ListNamespaceWithHttpMessagesAsync(Nullable"1 allowWatchBookmarks, String continueParameter, String fieldSelector, String labelSelector, Nullable"1 limit, String resourceVersion, String resourceVersionMatch, Nullable"1 timeoutSeconds, Nullable"1 watch, Nullable"1 pretty, IReadOnlyDictionary"2 customHeaders, CancellationToken cancellationToken) at k8s.CoreV1OperationsExtensions.ListNamespaceAsync(ICoreV1Operations operations, Nullable"1 allowWatchBookmarks, String continueParameter, String fieldSelector, String labelSelector, Nullable"1 limit, String resourceVersion, String resourceVersionMatch, Nullable"1 timeoutSeconds, Nullable"1 watch, Nullable"1 pretty, CancellationToken cancellationToken) at KubernetesAgentHostService.Initialize() in /app/KubernetesAgentHostService.cs:line 64 at Program.<Main>$(String[] args) in /app/Program.cs:line 58 at Program.<Main>(String[] args)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant