question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Need a deployment config for kubernetes with RBAC

See original GitHub issue

Linkerd 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:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
esbiecommented, Jul 31, 2017
1reaction
rmarscommented, Jul 19, 2017

@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).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found