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

cis-operator doesn't support Kubernetes cluster managed by Scaleway #103

Open
nbisson opened this issue Jul 23, 2021 · 8 comments
Open

cis-operator doesn't support Kubernetes cluster managed by Scaleway #103

nbisson opened this issue Jul 23, 2021 · 8 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@nbisson
Copy link

nbisson commented Jul 23, 2021

Hi,
cis-operator works only with providers declared here : https://github.com/rancher/kubernetes-provider-detector/tree/master/providers
Having a Kubernetes cluster managed by Scaleway, my cluster can't launch cis-operator. When executing, getting this error :

time="2021-07-23T09:33:28Z" level=info msg="Starting CIS-Operator"
time="2021-07-23T09:33:29Z" level=fatal msg="Error building controller: unknown provider"

Shouldn't the start be allowed even if the detection of the provider fails ?

Thank's.

@xom4ek
Copy link

xom4ek commented Oct 27, 2021

Any news about this issue?

@xom4ek
Copy link

xom4ek commented Oct 27, 2021

Found easy way for start cis-operator - just add label to any node in cluster

k label node MYNODE kubernetes.azure.com/cluster=""

Operator start think about this cluster "aks here" but its not a problem for start scaning and configuration profiles

@manicole
Copy link

manicole commented Mar 3, 2022

Same here using OVHCloud managed Kubernetes cluster. Thanks for the trick @xom4ek !

@Raph0773
Copy link

Hi @manicole !

What label did you put on OVH nodes ?

Thanks !

@belaw
Copy link

belaw commented Aug 15, 2022

I'm getting this problem on a self hosted cluster (kubespray)

@c-romeo
Copy link

c-romeo commented Aug 21, 2022

I'm getting this problem on a self hosted cluster (kubespray)

Hi @belaw! just applying @xom4ek fix solved the issue

k label node MYNODE kubernetes.azure.com/cluster=""

@belaw
Copy link

belaw commented Aug 22, 2022

I'm getting this problem on a self hosted cluster (kubespray)

Hi @belaw! just applying @xom4ek fix solved the issue

k label node MYNODE kubernetes.azure.com/cluster=""

Hi @c-romeo, thanks, I should have mentioned that I already figured that out 😁 and I just wanted to push this issue because the node label makes the cluster look like a cloud based cluster when you view it in Rancher.

@ronhorton
Copy link

The question on this one is, "do we want to implement a programatic version of the work around so that the operator doesn't fail when provider is unknown?"
this issue was release noted (i'm verifying the veracity of that statement ;) ), and the workaround noted resolves the issue. #103 (comment)

@ronhorton ronhorton added the documentation Improvements or additions to documentation label Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests