Skip to content

Instantly share code, notes, and snippets.

@vitobotta
Last active February 11, 2025 12:59
Show Gist options
  • Save vitobotta/3a727c15fd862a92b44530ca6dcb641b to your computer and use it in GitHub Desktop.
Save vitobotta/3a727c15fd862a92b44530ca6dcb641b to your computer and use it in GitHub Desktop.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: cluster-autoscaler-temp-fix
rules:
- apiGroups: ["storage.k8s.io"]
resources: ["volumeattachments"]
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: cluster-autoscaler-temp-fix
subjects:
- kind: ServiceAccount
name: cluster-autoscaler
namespace: kube-system
roleRef:
kind: ClusterRole
name: cluster-autoscaler-temp-fix
apiGroup: rbac.authorization.k8s.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment