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