Git Product home page Git Product logo

Comments (3)

sudermanjr avatar sudermanjr commented on July 21, 2024

Can you share more details of how you are logging in via service account, and which service account you are trying to use in your command? I am not familiar with kubelogin, and we do not login with service accounts.

from nova.

Nmishin avatar Nmishin commented on July 21, 2024

We tried to login without kubelogin also, just getting admin credentials using the following command:
az aks get-credentials --resource-group <rg_name> --name <cluster_name> --file <k8s_config_path> --admin

This is executed inside gitlab runner. And unfortunately getting the same error:
F0707 15:48:55.093188 134 root.go:272] error getting helm releases: could not detect helm 3 charts: list: failed to list: secrets is forbidden: User "system:serviceaccount:gitlab:default" cannot list resource "secrets" in API group "" at the cluster scope: Azure does not have opinion for this user.

Also tried to specify the name of the k8s context in nova’s config file. Got the exact same error.

from nova.

Nmishin avatar Nmishin commented on July 21, 2024

ok, looks like this is something between Docker file config and nova. If I set something like this:

USER user
WORKDIR /home/user
CMD ["nova"]

this isn't work, I have previously mentioned error, but if I explicitly set KUBECONFIG with full path, like
KUBECONFIG=/home/user/.kube/config
it works as expected

from nova.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.