Skip to content

Commit

Permalink
Add nodeselector, taints and tolerations examples
Browse files Browse the repository at this point in the history
Signed-off-by: MobarakHsn <[email protected]>
  • Loading branch information
MobarakHsn authored and raihankhan committed Aug 14, 2024
1 parent 28ea55f commit 479cc28
Show file tree
Hide file tree
Showing 4 changed files with 331 additions and 3 deletions.
16 changes: 16 additions & 0 deletions docs/examples/pgpool/configuration/pgpool-node-selector.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: kubedb.com/v1alpha2
kind: Pgpool
metadata:
name: pgpool-node-selector
namespace: demo
spec:
version: "4.4.5"
replicas: 1
postgresRef:
name: ha-postgres
namespace: demo
podTemplate:
spec:
nodeSelector:
disktype: ssd
deletionPolicy: WipeOut
19 changes: 19 additions & 0 deletions docs/examples/pgpool/configuration/pgpool-with-tolerations.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: kubedb.com/v1alpha2
kind: Pgpool
metadata:
name: pgpool-with-tolerations
namespace: demo
spec:
version: "4.4.5"
replicas: 1
postgresRef:
name: ha-postgres
namespace: demo
podTemplate:
spec:
tolerations:
- key: "key1"
operator: "Equal"
value: "node1"
effect: "NoSchedule"
deletionPolicy: WipeOut
12 changes: 12 additions & 0 deletions docs/examples/pgpool/configuration/pgpool-without-tolerations.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: kubedb.com/v1alpha2
kind: Pgpool
metadata:
name: pgpool-without-tolerations
namespace: demo
spec:
version: "4.4.5"
replicas: 1
postgresRef:
name: ha-postgres
namespace: demo
deletionPolicy: WipeOut
Loading

0 comments on commit 479cc28

Please sign in to comment.