Skip to content

Commit

Permalink
Custom service account
Browse files Browse the repository at this point in the history
Signed-off-by: MobarakHsn <[email protected]>
  • Loading branch information
MobarakHsn authored and tamalsaha committed Aug 1, 2024
1 parent d55671a commit c93c70f
Show file tree
Hide file tree
Showing 5 changed files with 542 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/examples/pgpool/custom-rbac/mg-custom-role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: my-custom-role
namespace: demo
rules:
- apiGroups:
- policy
resourceNames:
- mongodb-db
resources:
- podsecuritypolicies
verbs:
- use
15 changes: 15 additions & 0 deletions docs/examples/pgpool/custom-rbac/pgpool-new.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: kubedb.com/v1alpha2
kind: Pgpool
metadata:
name: pgpool-new
namespace: demo
spec:
version: "4.5.0"
replicas: 1
postgresRef:
name: ha-postgres
namespace: demo
podTemplate:
spec:
serviceAccountName: my-custom-serviceaccount
deletionPolicy: WipeOut
15 changes: 15 additions & 0 deletions docs/examples/pgpool/custom-rbac/pp-custom.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: kubedb.com/v1alpha2
kind: Pgpool
metadata:
name: pgpool
namespace: demo
spec:
version: "4.5.0"
replicas: 1
postgresRef:
name: ha-postgres
namespace: demo
podTemplate:
spec:
serviceAccountName: my-custom-serviceaccount
deletionPolicy: WipeOut
10 changes: 10 additions & 0 deletions docs/guides/pgpool/custom-rbac/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Run Pgpool with Custom RBAC resources
menu:
docs_{{ .version }}:
identifier: pp-custom-rbac
name: Custom RBAC
parent: pp-pgpool-guides
weight: 31
menu_name: docs_{{ .version }}
---
Loading

0 comments on commit c93c70f

Please sign in to comment.