Comments (5)
Even if we update the name of the SA it won't work at least on TN Scale
Portainer can only work correctly when it is deployed in the portainer
namespace.
And on TN Scale all NS are prefixed with ix-
.
portainer/portainer#5156 (comment)
Given that helm users can change the SA name, this is low prio.
from charts.
Thank you for the quick answer. What if we could change the config of portainer to assume the SA with name ‘portainer’ instead? I just could’t find the option for this…
also, this name is in the common chart? Or can we add it just for portainer chart? I can try to make it work and send a PR if it’s welcome.
thank you!
from charts.
Thank you for the quick answer. What if we could change the config of portainer to assume the SA with name ‘portainer’ instead? I just could’t find the option for this…
also, this name is in the common chart? Or can we add it just for portainer chart? I can try to make it work and send a PR if it’s welcome.
thank you!
As the linked comment above says, its all hardcoded currently.
Even if the name matches, it will still try to look in the wrong namespace.
The name is in the portainer chart. But with the current design of the naming generation on the common, it would need a "hack".
But backtracking a bit.
I just installed portainer to check things up.
The fact that it displays namespaces/configmaps/secrets etc, means that it can see and use the ServiceAccount
The RBAC is tied to the SA, so without the SA it wouldnt be able to see any of those.
That being said, portainer's examples seem to suggest to use the built-in cluster-admin
role.
We don't use that but we use a fully open ClusterRole
charts/charts/stable/portainer/values.yaml
Lines 27 to 34 in 0686815
Which is tied to the service account.
So unless we miss some specific setting, I'm not sure what we should do. And I don't think start changing naming's around is a good idea, unless first the issue is pinpointed.
from charts.
Ok, I can investigate first and see what change makes it work.
Looking in the source code of portainer, it seems indeed hardcoded, but then... why is it configurable in their helm chart?
https://github.com/portainer/portainer/blob/067a7d148f2a71796420e9a5026d8d876a3fb745/api/kubernetes/cli/naming.go#L9-L12
https://github.com/portainer/portainer/blob/develop/api/kubernetes/cli/service_account.go#L22
if they would allow those to be configurable via CLI, we could override them, right? What other options do we have?
from charts.
As a workaround, I deployed this via fluxcd to my (k3s / TN Scale) cluster and everything works now, including the shell functionality, even tho portainer is deployed as Truecharts App.
apiVersion: v1
kind: Namespace
metadata:
name: portainer
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: portainer-sa-clusteradmin
namespace: portainer
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: portainer-crb-clusteradmin
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: portainer-sa-clusteradmin
namespace: portainer
---
from charts.
Related Issues (20)
- Genea Missing Networking & Services & Ingress
- [wifi-card] Doesn't forward any ports HOT 1
- [premium train] index.yaml is out of date on https://charts.truecharts.org HOT 1
- [Plex] NVIDIA GPU Stopped Working HOT 2
- [immich] Extra environment variables do not take effect for immich HOT 1
- [mariadb] ImagePullBackOff and documentation 404 HOT 2
- [ollama] Support AMD graphics cards HOT 1
- Genea App Ingress Not Working + Adding Relationships within the App Not Working Either HOT 2
- changedetection-io - Add support for Playwright content fetcher HOT 1
- Expects [enabled] key for [schedules.default] HOT 2
- Update Photostructure to the latest beta version
- can not connect HOT 3
- Whisparr V3 - Add new version for incubator? HOT 1
- openebs is stuck in deploying,when restart the truenas scale system or restart the Kubernetes HOT 2
- [home-assistant] CNPG cluster pod stuck in TaintToleration state after k3s node restart HOT 2
- [esphome] Can't discover devices through mDNS HOT 4
- bug(common): mariadb access denied HOT 1
- bug(photoprism): access denied to mariadb HOT 5
- Nginx proxy manager: access denied to mariadb HOT 4
- [wordpress] do not start after update 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 charts.