Comments (12)
This line:
Line 76 in d8ed3cc
Causes the CM to never get created with an error in the controller logs:
error initially creating leader election record: configmaps is forbidden:
User "system:serviceaccount:registry-creds-system:default" cannot create resource "configmaps" in API group "" in the namespace
"registry-creds-system"
I've had to remove
Lines 75 to 76 in d8ed3cc
from registry-creds.
I agree. I think this was introduced by a community PR. Happy to take a PR @sarahhodne
from registry-creds.
@sarahhodne thanks for your feedback, did you want to do the PR yourself?
from registry-creds.
/add labels: good first issue,skill/beginner,help wanted
from registry-creds.
I'm a volunteer for this issue.
from registry-creds.
I probably won't have time to look at it for a bit, sorry, so feel free to work on this. Here's the roles we actually ended up using and got to work:
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: registry-creds
rules:
- apiGroups: [""]
resources: [namespaces]
verbs: [get, list, watch]
- apiGroups: [""]
resources: [secrets]
verbs: [create, get, list, watch]
- apiGroups: [""]
resources: [serviceaccounts]
verbs: [get, list, patch, update, watch]
- apiGroups: [ops.alexellis.io]
resources: [clusterpullsecrets]
verbs: [get, list, watch]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: registry-creds
rules:
- apiGroups: [""]
resources: [configmaps, events]
verbs: [create]
- apiGroups: [""]
resourceNames: [8bdecb1a.alexellis.io]
resources: [configmaps]
verbs: [get, patch, update]
from registry-creds.
I'll test and check if it works properly with these roles. 👍
from registry-creds.
@mylesagray on what Kubernetes version? It works fine for me with K8s 1.21.
from registry-creds.
@alexellis every one i've tested it on - IIRC from around v1.18 on, both self built vanilla K8s and Tanzu K8s distros. Fresh cluster install - apply the manifest in the repo and it won't work until that static resource name is removed - it looks like it's generated on apply?
from registry-creds.
@mylesagray I can't reproduce any issue with KinD 1.18 or 1.21.1
Perhaps this is a specific support request that only affects VMware Tanzu users?
How about you raise your own issue with a detailed repro and error messages / logs?
Otherwise, every time I test it, it works as expected. I don't have VMware Tanzu so can't support you with that.
from registry-creds.
@alexellis i can do, but this also affects my ARM Pi cluster which is straight up vanilla K8S and another x86 vanilla cluster I have too, not just Tanzu.
I never attempted to test it in kind, but I will give that a shot just for comparison's sake.
from registry-creds.
/lock: resolved
from registry-creds.
Related Issues (20)
- create a ServiceAccount after the CRD applied the ServiceAccount is not updating by the operator HOT 3
- OOM with Default memory settings from manifest HOT 2
- readme says uses $username but export cant change it HOT 1
- Add version and commit SHA to the binary HOT 3
- Operator does not react when a new ServiceAccount is created HOT 13
- Propose to work on feature - Propagate alterations/updates to the primary ClusterPullSecret HOT 4
- Support installation with helm HOT 8
- Get rid of "registrycreds" suffix from secrets' names HOT 8
- Exclude namespace(s) in configuration instead of annotations HOT 4
- registry-creds issues under kubernetes 1.20 HOT 2
- Remove any prefix/suffix from secret created across namespaces HOT 2
- Cannot run registry-creds with OOTB manifest - fails with `error initially creating leader election record` HOT 6
- If you use this software at work, become a sponsor.
- Image tags become unavailable HOT 1
- k8s 1.26 Support HOT 7
- MIssing permission on Role to get leases HOT 3
- unable to load in-cluster config
- CVE Remediation change HOT 2
- Remove pull secret reference from ServiceAccounts upon ClusterPullSecret deletion HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from registry-creds.