tips:minikube

This is an old revision of the document!


MiniKube

download
paru -S kubectl minikube kompose

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

  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

  1. Create configuration file (.yaml)
  2. kubectl apply -f <filename.yaml>
  3. Create StatefulSet file (.yaml)
  4. 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 port (if not default) to ContainerPort (not Minikube service port)
  5. Connect to server
  • tips/minikube.1632738845.txt.gz
  • Last modified: 2021/09/27 12:34
  • by rmontresor