Skip to content

Instantly share code, notes, and snippets.

@alinetskyi
Last active September 17, 2019 14:40
Show Gist options
  • Save alinetskyi/fad2894e789543a89238a266b6a4969a to your computer and use it in GitHub Desktop.
Save alinetskyi/fad2894e789543a89238a266b6a4969a to your computer and use it in GitHub Desktop.
Redeployment Kubernetes resources
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: front-redeploy
namespace: uat-app
rules:
- apiGroups:
- ""
- extensions
resources:
- deployments
verbs:
- patch
- get
- edit
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
annotations:
name: front-redeploy
namespace: uat-app
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: front-redeploy
subjects:
- kind: ServiceAccount
name: front-redeploy
namespace: uat-app
apiVersion: v1
kind: ServiceAccount
metadata:
name: front-redeploy
namespace: uat-app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment