Need a deployment config for kubernetes with RBAC
See original GitHub issueLinkerd cannot retrieve endpoint list when deployed on kubernetes 1.6 using deployment configs as instructed https://linkerd.io/getting-started/k8s/ or https://linkerd.io/getting-started/k8s-daemonset/. This happends due to RBAC being turned on by default for kubernetes 1.6.
I circuvmented RBAC by permitting everything to default
ServiceAccount used to run linkerd pod (see below).
We need a deployment config for kubernetes with RBAC with fine-grained Role
(or ClusterRole
? I am not an expert on Kubernetes).
If anyone needs the stack trace thown by linkerd, it is here #1344.
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: RoleBinding
metadata:
name: linkerd
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: linkerd-allow-all
subjects:
- kind: ServiceAccount
name: default
namespace: default
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: linkerd-allow-all
rules:
- apiGroups: [""]
resources:
- '*'
verbs:
- '*'
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Configure RBAC in your Kubernetes Cluster
Step 1: Create the office namespace · Step 2: Create the user credentials · Step 3: Create the role for managing deployments ·...
Read more >Using RBAC Authorization | Kubernetes
The RBAC API declares four kinds of Kubernetes object: Role, ClusterRole, RoleBinding and ClusterRoleBinding. You can describe objects, or amend ...
Read more >Kubernetes RBAC: Implementation and Best Practices
Role-based access control (RBAC) is a security methodology that restricts user interactions to specifically allocated features. User accounts are granted ...
Read more >Limiting access to Kubernetes resources with RBAC - Learnk8s
RBAC in Kubernetes is the mechanism that enables you to configure fine-grained and specific sets of permissions that define how a given user,...
Read more >Kubernetes Role-Based Access Control (RBAC) - StrongDM
Understanding Kubernetes RBAC. In Kubernetes, ClusterRoles and Roles define the actions a user can perform within a cluster or namespace, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I believe this is resolved by https://buoyant.io/2017/07/24/using-linkerd-kubernetes-rbac/
@ethanrubio yeah I think you can do this without granting cluster-admin access. We’re working on adding example RBAC configs (see configs at https://github.com/linkerd/linkerd-examples/pull/165 for granting namerd access to the third party resource).