This is an old revision of the document!
MiniKube
- download
paru -S kubectl minikube kompose
Install Minikube
install VirtulBox
sudo apt install virtualbox virtualbox-ext-pack
install MiniKube
wget https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo cp minikube-linux-amd64 /usr/local/bin/minikube
sudo chmod 755 /usr/local/bin/minikube
install Kubectl
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
check version --> kubectl version -o json
minikube start
Deploy Postgres
- Create configuration file (.yaml)
- kubectl apply -f <filename.yaml>
- Create PersistenVolumeClaim file (.yaml)
- kubectl apply -f <filename.yaml>
- Create deployment file (.yaml)
- kubectl apply -f <filename.yaml>
- Create service file (.yaml)
- kubectl apply -f <filename.yaml>
Deploy Pgadmin
https://www.enterprisedb.com/blog/how-deploy-pgadmin-kubernetes
- Create configuration file (.yaml)
- kubectl apply -f <filename.yaml>
- Create service file (.yaml)
- kubectl apply -f <filename.yaml>
- Create StatefulSet file (.yaml)
- kubectl apply -f <filename.yaml>
Connect pgadmin to server
minikube service <NamePgadminService>
- Login Pgadmin
- Server –> Properties
- Change host name/address to Postgres service name
- Change port (if not default) to ContainerPort (not Minikube service port)
- Connect to server