Folders restructure

This commit is contained in:
rpy-aiwe
2024-02-05 13:26:50 +03:00
parent 7230a00a87
commit beea6a120d
38 changed files with 28 additions and 30 deletions

8
scripts/client/setup_all.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
./setup_pgsql_operator.sh
./setup_pgsql_operator_ui.sh
cd $(git rev-parse --show-toplevel)/manifests
kubectl apply -f traefik-config.yaml

View File

@@ -0,0 +1,6 @@
#!/bin/bash
cd $(git rev-parse --show-toplevel)/manifests/postgres-operator
kubectl apply -f manifests/minimal-postgres-manifest.yaml

View File

@@ -0,0 +1,9 @@
#!/bin/bash
cd $(git rev-parse --show-toplevel)/manifests/postgres-operator
# apply the manifests in the following order
kubectl create -f manifests/configmap.yaml # configuration
kubectl create -f manifests/operator-service-account-rbac.yaml # identity and permissions
kubectl create -f manifests/postgres-operator.yaml # deployment
kubectl create -f manifests/api-service.yaml # operator API to be used by UI

View File

@@ -0,0 +1,6 @@
#!/bin/bash
cd $(git rev-parse --show-toplevel)/manifests/postgres-operator
kubectl apply -f ui/manifests/

2
scripts/client/start_pg_ui.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
kubectl port-forward svc/postgres-operator-ui 8081:80

View File

@@ -0,0 +1,2 @@
#!/bin/bash
curl -sfL https://get.k3s.io | sh -s -