Closed rcbandit111 closed 2 months ago
@wind57 Can you advice please?
The usual warning to begin with: org.springframework.cloud:spring-cloud-kubernetes-client-discovery:2.1.9
is a version we do not support anymore, use it at your own risk :)
Yes, that error you are seeing denotes missing or incorrect RBAC rules, we have some samples in the integration test, see here. You will need to read on those a little and how those are set-up in your cluster.
Our integration tests are kind of "samples" where you can take a look how to set that up.
@wind57 I tried to do this using HELM chart.
https://github.com/rcbandit111/mockup/blob/master/helm_chart/mockup-chart/templates/role.yml
But unfortunately it's not working. If you have experience with Helm charts can you advice how this can be implemented properly?
this is not related to helm per-se, helm charts are a way to package many manifests and deploy them. While my explanation is simplified, the main idea is that your problem has nothing to do with helm charts. You need to read what RBAC is (and may be what kubectl can-i
is, that will help you).
I have already pointed you to the manifests that we use in integration tests above, those do work, otherwise the integration tests would have failed.
And "it's not working" is not something we can debug or understand. If you have a problem with those manifests we use in integration tests, then create a minimal reproducible example, so that we can reproduce the problem. Whatever issue you have with helm, is not under our jurisdiction, because we do not provide any helm charts to begin with.
@ryanjbaxter we can probably add the feedback tag in here also
I found the issue into the helm chart. I can deploy and stat the project using org.springframework.cloud:spring-cloud-kubernetes-client-discovery:2.1.9
.
Good :)
So you can close this issue then?
I'm trying to deploy a sample project with
implementation 'org.springframework.cloud:spring-cloud-kubernetes-client-discovery:2.1.9'
. Looks like I need to set some permissions. I get this error stack:Do you know how I have to set permissions?