Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kibana-logging service cannot access #113

Closed
zhangguanzhang opened this issue Aug 16, 2018 · 3 comments
Closed

kibana-logging service cannot access #113

zhangguanzhang opened this issue Aug 16, 2018 · 3 comments

Comments

@zhangguanzhang
Copy link

{
  "kind": "Status",
  "apiVersion": "v1",
  "metadata": {
    
  },
  "status": "Failure",
  "message": "services \"kibana-logging\" is forbidden: User \"system:anonymous\" cannot get services/proxy in the namespace \"kube-system\"",
  "reason": "Forbidden",
  "details": {
    "name": "kibana-logging",
    "kind": "services"
  },
  "code": 403
}
@kairen
Copy link
Owner

kairen commented Aug 17, 2018

The proxy API can't access through system:anonymous user, you must create RBAC roles to define permission.

@zhangguanzhang
Copy link
Author

I just know the RBAC's effect, i could not write it to access, can you write for me?

@kairen
Copy link
Owner

kairen commented Aug 18, 2018

You can refer the following file to create RBAC for kube-logging:

kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: anonymous-dashboard-proxy-role
rules:
- apiGroups:
- ""
resources:
- "services/proxy"
resourceNames:
- "https:kubernetes-dashboard:"
verbs:
- get
- create
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: anonymous-dashboard-proxy-binding
namespace: ""
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: anonymous-dashboard-proxy-role
subjects:
- apiGroup: rbac.authorization.k8s.io
kind: User
name: system:anonymous

@kairen kairen closed this as completed Mar 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants