Open tarunptala opened 3 years ago
I just had some luck by changing the RBAC
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels: {component: draino}
name: draino
rules:
- apiGroups: [apps]
resources: [statefulsets]
verbs: [create, update, get, watch, list]
- apiGroups: ['']
resources: [endpoints]
verbs: [create, update, get, watch, list]
- apiGroups: ['']
resources: [events]
verbs: [create, patch, update]
- apiGroups: ['']
resources: [nodes]
verbs: [get, watch, list, update]
- apiGroups: ['']
resources: [nodes/status]
verbs: [update, patch]
- apiGroups: ['']
resources: [pods]
verbs: [get, watch, list]
- apiGroups: ['']
resources: [pods/eviction]
verbs: [create]
- apiGroups: [extensions]
resources: [daemonsets]
verbs: [get, watch, list]
I have the same errors, granting update
to nodes/status
did not help.
This happens for me when the cluster-autoscaler terminates an instance.
kubernetes: v1.20.5 draino: planetlabs/draino:e0d5277 cluster-autoscaler: v1.20.0
Same error here, will try the suggetion with the RBAC permission!
Info
1.16+
running on AWS.planetlabs/draino:e0d5277
image is being used.We see constant msgs in draino logs
Not sure if i am using correct image of
draino
.Note: I have deployed
node-problem-detector
andcluster-autoscaler
alongside with it already.