Skip to content

Instantly share code, notes, and snippets.

@hydeenoble
Created March 26, 2019 14:56
Show Gist options
  • Save hydeenoble/03b83258b76dbc062475c3cb322afc83 to your computer and use it in GitHub Desktop.
Save hydeenoble/03b83258b76dbc062475c3cb322afc83 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: ServiceAccount
metadata:
name: default
namespace: airflow
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: default
rules:
- apiGroups: ["", "extensions"]
resources: ["services", "pods", "deployments"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: default
subjects:
- kind: ServiceAccount
name: default
namespace: airflow
apiGroup: ""
roleRef:
kind: ClusterRole
name: default
apiGroup: rbac.authorization.k8s.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment