Skip to content

Instantly share code, notes, and snippets.

@joejulian
Created February 11, 2022 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joejulian/a1bf2e71bb65a637aaededb7c19c1bfe to your computer and use it in GitHub Desktop.
Save joejulian/a1bf2e71bb65a637aaededb7c19c1bfe to your computer and use it in GitHub Desktop.
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: docker-sync-cronjob-copy
namespace: dcos
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: lg-cronjob-lcgd-job
namespace: dcos
rules:
- apiGroups:
- batch
resources:
- cronjobs
verbs:
- list
- get
- apiGroups:
- batch
resources:
- jobs
verbs:
- list
- get
- create
- delete
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: docker-sync-cronjob-copy
namespace: dcos
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: lg-cronjob-lcgd-job
subjects:
- kind: ServiceAccount
name: docker-sync-cronjob-copy
namespace: dcos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment