tips:minikube

This is an old revision of the document!


MiniKube

download
paru -S kubectl minikube kompose

https://minikube.sigs.k8s.io/docs/start/

Install minikube

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube

Install Kubectl

curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
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.1632744863.txt.gz
  • Last modified: 2021/09/27 14:14
  • by rmontresor