tips:minikube

This is an old revision of the document!


MiniKube

download
paru -S kubectl minikube kompose

install VirtualBox

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

  1. Create configuration file (.yaml)
  2. kubectl apply -f <filename.yaml>
  3. Create PersistenVolumeClaim file (.yaml)
  4. kubectl apply -f <filename.yaml>
  5. Create deployment file (.yaml)
  6. kubectl apply -f <filename.yaml>
  7. Create service file (.yaml)
  8. kubectl apply -f <filename.yaml>

Deploy Pgadmin

https://www.enterprisedb.com/blog/how-deploy-pgadmin-kubernetes

  1. Create configuration file (.yaml)
  2. kubectl apply -f <filename.yaml>
  3. Create service file (.yaml)
  4. kubectl apply -f <filename.yaml>
  5. Create StatefulSet file (.yaml)
  6. kubectl apply -f <filename.yaml>

Connect pgadmin to server

minikube service <NamePgadminService>
  1. Login Pgadmin
  2. Server –> Properties
  3. Change host name/address to Postgres service name
  4. Change username to one set in postgres config file
  5. Change port (if not default) to ContainerPort (not Minikube service port)
  6. Connect to server
  • tips/minikube.1632743413.txt.gz
  • Last modified: 2021/09/27 13:50
  • by rmontresor