Skip to content

Instantly share code, notes, and snippets.

@SocketWeaver
Created April 25, 2019 18:56
Show Gist options
  • Save SocketWeaver/2d1e8b6a0511f277ca1dc3c7c0e25445 to your computer and use it in GitHub Desktop.
Save SocketWeaver/2d1e8b6a0511f277ca1dc3c7c0e25445 to your computer and use it in GitHub Desktop.
sample yaml to create ServiceAccount
apiVersion: v1
kind: ServiceAccount
metadata:
name: socketweaverSA
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: socketweaverSA
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: socketweaverSA
namespace: kube-system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment