Open hillbun opened 1 year ago
This is because you have not created a user relative to the k8s cluster.
Execute the following two commands and redeploy the yml file to solve the problem.
kubectl create serviceaccount -n default default
kubectl create clusterrolebinding doris-cluster-admin-binding --clusterrole=cluster-admin --serviceaccount=default:default
If it is solved, please reply and close the issue.
if you dont want to use a cluster-admin role, you can use this role and role-binding.
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: rc-apache-doris-fe
rules:
- apiGroups:
- ""
- apps
resources:
- statefulsets
- services
verbs:
- "*"
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: rc-apache-doris-fe
subjects:
- kind: ServiceAccount
name: rc-apache-doris-fe
namespace: apache-doris
roleRef:
kind: Role
name: rc-apache-doris-fe
apiGroup: ""
use env var in fe APP_NAMESPACE
if your namespace is different to default, also, you have to put namespace in Role and RoleBinding
Search before asking
Version
https://github.com/apache/doris/blob/master/docker/runtime/k8s/doris_follower.yml
I change to this image version
image: apache/doris:2.0.0_alpha-fe-x86_64
What's Wrong?
What You Expected?
doris-follower-cluster1-0 should start without errors
How to Reproduce?
No response
Anything Else?
doris_follower.yml
Are you willing to submit PR?
Code of Conduct