You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/postgres/distributed/overview/index.md
+56-78Lines changed: 56 additions & 78 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -502,6 +502,59 @@ Verify the worker installation:
502
502
spire-install-crds-cnbjh 0/1 Completed 0 4m50s
503
503
```
504
504
505
+
**Onboard Database Namespace**
506
+
507
+
508
+
Create a `SliceConfig` to onboard the `demo` (application) and `kubedb` (operator) namespaces for network connectivity. Create a `sliceconfig.yaml` file:
509
+
510
+
```yaml
511
+
apiVersion: controller.kubeslice.io/v1alpha1
512
+
kind: SliceConfig
513
+
metadata:
514
+
name: demo-slice
515
+
namespace: kubeslice-demo-distributed-postgres
516
+
spec:
517
+
sliceSubnet: 10.1.0.0/16
518
+
maxClusters: 16
519
+
sliceType: Application
520
+
sliceGatewayProvider:
521
+
sliceGatewayType: Wireguard
522
+
sliceCaType: Local
523
+
sliceIpamType: Local
524
+
rotationInterval: 60
525
+
vpnConfig:
526
+
cipher: AES-128-CBC
527
+
clusters:
528
+
- demo-controller
529
+
- demo-worker
530
+
qosProfileDetails:
531
+
queueType: HTB
532
+
priority: 1
533
+
tcType: BANDWIDTH_CONTROL
534
+
bandwidthCeilingKbps: 5120
535
+
bandwidthGuaranteedKbps: 2560
536
+
dscpClass: AF11
537
+
namespaceIsolationProfile:
538
+
applicationNamespaces:
539
+
- namespace: demo
540
+
clusters:
541
+
- '*'
542
+
- namespace: kubedb
543
+
clusters:
544
+
- '*'
545
+
isolationEnabled: false
546
+
allowedNamespaces:
547
+
- namespace: kube-system
548
+
clusters:
549
+
- '*'
550
+
```
551
+
552
+
Apply the `SliceConfig`:
553
+
554
+
```bash
555
+
kubectl apply -f sliceconfig.yaml
556
+
```
557
+
505
558
### Step 4: Install the KubeDB Operator
506
559
507
560
Install the KubeDB Operator on the `demo-controller` cluster to manage the Postgres instance.
@@ -511,7 +564,7 @@ Download a FREE license from [AppsCode License Server](https://appscode.com/issu
Create a `SliceConfig` to onboard the `demo` (application) and `kubedb` (operator) namespaces for network connectivity. Create a `sliceconfig.yaml` file:
572
-
573
-
```yaml
574
-
apiVersion: controller.kubeslice.io/v1alpha1
575
-
kind: SliceConfig
576
-
metadata:
577
-
name: demo-slice
578
-
namespace: kubeslice-demo-distributed-postgres
579
-
spec:
580
-
sliceSubnet: 10.1.0.0/16
581
-
maxClusters: 16
582
-
sliceType: Application
583
-
sliceGatewayProvider:
584
-
sliceGatewayType: Wireguard
585
-
sliceCaType: Local
586
-
sliceIpamType: Local
587
-
rotationInterval: 60
588
-
vpnConfig:
589
-
cipher: AES-128-CBC
590
-
clusters:
591
-
- demo-controller
592
-
- demo-worker
593
-
qosProfileDetails:
594
-
queueType: HTB
595
-
priority: 1
596
-
tcType: BANDWIDTH_CONTROL
597
-
bandwidthCeilingKbps: 5120
598
-
bandwidthGuaranteedKbps: 2560
599
-
dscpClass: AF11
600
-
namespaceIsolationProfile:
601
-
applicationNamespaces:
602
-
- namespace: demo
603
-
clusters:
604
-
- '*'
605
-
- namespace: kubedb
606
-
clusters:
607
-
- '*'
608
-
isolationEnabled: false
609
-
allowedNamespaces:
610
-
- namespace: kube-system
611
-
clusters:
612
-
- '*'
613
-
```
614
-
615
-
Apply the `SliceConfig`:
616
-
617
-
```bash
618
-
kubectl apply -f sliceconfig.yaml
619
-
```
620
-
621
-
Restart all pods in the `kubedb` namespace to inject KubeSlice sidecar containers:
0 commit comments