service-account.yaml
528 Bytes
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: task-postgresql-pod-sa
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: task-postgresql-pod-sa
rules:
- apiGroups:
- ""
resources:
- pods
- services
verbs:
- create
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: task-postgresql-pod-sa
subjects:
- kind: ServiceAccount
name: task-postgresql-pod-sa
roleRef:
kind: Role
name: task-postgresql-pod-sa
apiGroup: rbac.authorization.k8s.io
---