github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/neon/templates/NOTES.txt (about)

     1  Example routines to install neon and neon-cluster using helm.
     2  1.Install cert-manager
     3  kubectl apply -f https://github.com/cert-manager/cert-manager/releases/latest/download/cert-manager.yaml
     4  After waiting for cert-manager to be installed successfully, you can perform the following operations:
     5  
     6  2.Install neon and neon-cluster
     7  helm  install neon deploy/neon
     8  helm install neon-cluster deploy/neon-cluster
     9  If you want to enter neon's compute-node virtual machine, please run:
    10  kubectl exec -it $(kubectl get neonvm vm-compute-node -ojsonpath='{.status.podName}') -- screen /dev/pts/0
    11  
    12  3.After entering the virtual, you can run the following command to connect and test to pg :
    13  psql -p55432 -h 127.0.0.1 -U cloud_admin postgres
    14  CREATE TABLE t(key int primary key, value text);
    15  insert into t values(1,1);
    16  select * from t;
    17  
    18  4.You can manually trigger neon's autoscaling by running the following command:
    19  For cpu:
    20  kubectl patch neonvm vm-compute-node --type='json' -p='[{"op": "replace", "path": "/spec/guest/cpus/use", "value":2}]'
    21  For memory:
    22  kubectl patch neonvm vm-compute-node --type='json' -p='[{"op": "replace", "path": "/spec/guest/memorySlots/use", "value":4}]'
    23  You can use the following command to view the expansion process:
    24  
    25  5.kubectl get neonvm vm-compute-node -w