Skip to content

Instantly share code, notes, and snippets.

@Vinay08sharma
Created August 15, 2023 08:13
Show Gist options
  • Save Vinay08sharma/e7f94f7353d67f4468c7700c97ffb5f7 to your computer and use it in GitHub Desktop.
Save Vinay08sharma/e7f94f7353d67f4468c7700c97ffb5f7 to your computer and use it in GitHub Desktop.
Namespace
apiVersion: v1
kind: Namespace
metadata:
name: selenosis
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
namespace: selenosis
name: selenosis
rules:
- apiGroups: [""]
resources: ["*"]
verbs: ["*"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: selenosis
namespace: selenosis
roleRef:
kind: ClusterRole
name: selenosis
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
namespace: selenosis
name: default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment