Skip to content

Instantly share code, notes, and snippets.

@dennbagas
Created February 25, 2022 15:27
Show Gist options
  • Save dennbagas/3ceef1b4c8445153be7664eb44fad0b1 to your computer and use it in GitHub Desktop.
Save dennbagas/3ceef1b4c8445153be7664eb44fad0b1 to your computer and use it in GitHub Desktop.
Golang in container Hot Reload
apiVersion: v1
kind: ServiceAccount
metadata:
name: my-app-sa
namespace: my-namespace
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: my-app-role
namespace: my-namespace
rules:
- apiGroups: [""]
resources: ["*"]
verbs: ["*"]
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: my-app-rolebinding
namespace: my-namespace
subjects:
- kind: ServiceAccount
name: my-app-sa
apiGroup: ""
roleRef:
kind: Role
name: my-app-role
apiGroup: rbac.authorization.k8s.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment