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

Install Keda (helm chart) wihout admin permissions on AKS #563

Open
ustari28 opened this issue Nov 14, 2023 · 4 comments
Open

Install Keda (helm chart) wihout admin permissions on AKS #563

ustari28 opened this issue Nov 14, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@ustari28
Copy link

We are trying to install in a specific namespace without administrator permissions then the installation fails.

Expected Behavior

Install Keda, with helm chart, without administrator permissions

Actual Behavior

Fail when the user hasn't administrator permissions on AKS

Steps to Reproduce the Problem

  1. Get a user without administrator permissions
  2. Install keda using helm chart on AKS.
  3. Get the error.

Specifications

  • KEDA Version: 2.8.1
  • Platform & Version: Azure
  • Kubernetes Version: 1.25.5
  • Scaler(s): kedacore/keda
@ustari28 ustari28 added the bug Something isn't working label Nov 14, 2023
@tomkerkhove
Copy link
Member

Mind sharing some more information please?

@ustari28
Copy link
Author

Hello,

In a nutshell, we have installed Keda and we use scalers in our own AKS where we have administrative permissions to change Azure Kubernetes configuration then we are moving to a Shared AKS with other projects and each one has a namespace. When we try to use the same command to install keda:

helm repo add kedacore https://kedacore.github.io/charts
helm repo update
helm upgrade --install keda kedacore/keda --namespace myownns --version 2.8.1

We receive the following error message:

Release "keda" does not exist. Installing it now. Error: rendered manifests contain a resource that already exists. Unable to continue with install: could not get information about the resource CustomResourceDefinition "clustertriggerauthentications.keda.sh" in namespace "": customresourcedefinitions.apiextensions.k8s.io "clustertriggerauthentications.keda.sh" is forbidden: User "xxxxxxx-xxx-xxx" cannot get resource "customresourcedefinitions" in API group "apiextensions.k8s.io" at the cluster scope

We understand that some script doesn't have setup the namespace and requiere information that we don't have permissions to access. The user that we are using doesn't have admin permission. Then there is some way to install with no admin permissions or to setup the namespace to all scripts?

Best regards.

@tomkerkhove
Copy link
Member

User installing needs to have access to change CRDs as KEDA needs to be able to register these and think we even need to create some cluster roles as well

@tomkerkhove
Copy link
Member

tomkerkhove commented Nov 17, 2023

Then there is some way to install with no admin permissions or to setup the namespace to all scripts?

Nope, unless you give the other user required permissions for the cluster-wide resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants