Skip to content

Instantly share code, notes, and snippets.

@jseguillon
Last active January 24, 2021 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jseguillon/78d46ab74d17e81102cb22af631f59d1 to your computer and use it in GitHub Desktop.
Save jseguillon/78d46ab74d17e81102cb22af631f59d1 to your computer and use it in GitHub Desktop.
molecule-kubevirt Service Account and Roles
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: molecule-kubevirt
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: molecule-kubevirt
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: kubevirt.io:edit
subjects:
- kind: ServiceAccount
name: molecule-kubevirt
namespace: default
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: molecule-kubevirt-sec
rules:
- apiGroups:
- ""
resources:
- services
verbs: ["*"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: molecule-kubevirt-sec
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: molecule-kubevirt-sec
subjects:
- kind: ServiceAccount
name: molecule-kubevirt
namespace: default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment