美文网首页我爱编程
learning kubernetes by minikube,

learning kubernetes by minikube,

作者: caccq | 来源:发表于2018-04-16 11:14 被阅读0次

Getting Started with Minikube

Chapter Goals

  1. Setup all prerequisites for minikube (Docker and Virtualbox)
  2. Setup and test Minikube
  3. Setup and test kubectl

1 Setup Prerequisities

Docker:

Command to test: docker version

Virtualbox

Command to test: virtualbox

Kubectl:

Command to test: kubectl version

Minikube:

Command to test: minikube version

My environment status

MacOS      \  10.13.4
docker     \  18.03   
kubectl    \  1.10
minicube   \  0.26

setup code

curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.10.0/bin/darwin/amd64/kubectl && chmod +x ./kubectl && sudo mv ./kubectl /usr/local/bin/kubectl
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.26.2/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/

2 Setup and test Minikube

prepare local VPN connection env and run

minikube start --docker-env http_proxy=http://192.168.99.1:8118 --docker-env https_proxy=http://192.168.99.1:8118 --docker-env no_proxy=127.0.0.1, localhost, 192.168.0.0/16, 10.0.0.0/8
  • how to setup MacOS SS for local applications [a link here]

check minikube run all right

minikube ssh
docker images 

you should be able to see below images.

k8s.gcr.io/kube-proxy-amd64                v1.10.0             bfc21aadc7d3        2 weeks ago         97MB
k8s.gcr.io/kube-apiserver-amd64            v1.10.0             af20925d51a3        2 weeks ago         225MB
k8s.gcr.io/kube-scheduler-amd64            v1.10.0             704ba848e69a        2 weeks ago         50.4MB
k8s.gcr.io/kube-controller-manager-amd64   v1.10.0             ad86dbed1555        2 weeks ago         148MB
k8s.gcr.io/etcd-amd64                      3.1.12              52920ad46f5b        5 weeks ago         193MB
k8s.gcr.io/kube-addon-manager              v8.6                9c16409588eb        7 weeks ago         78.4MB
k8s.gcr.io/k8s-dns-dnsmasq-nanny-amd64     1.14.8              c2ce1ffb51ed        3 months ago        41MB
k8s.gcr.io/k8s-dns-sidecar-amd64           1.14.8              6f7f2dc7fab5        3 months ago        42.2MB
k8s.gcr.io/k8s-dns-kube-dns-amd64          1.14.8              80cc5ea4b547        3 months ago        50.5MB
k8s.gcr.io/pause-amd64                     3.1                 da86e6ba6ca1        3 months ago        742kB
k8s.gcr.io/kubernetes-dashboard-amd64      v1.8.1              e94d2f21bc0c        3 months ago        121MB
gcr.io/k8s-minikube/storage-provisioner    v1.8.0              4689081edb10        5 months ago        80.8MB
gcr.io/k8s-minikube/storage-provisioner    v1.8.1              4689081edb10        5 months ago        80.8MB
k8s.gcr.io/k8s-dns-sidecar-amd64           1.14.4              38bac66034a6        9 months ago        41.8MB
k8s.gcr.io/k8s-dns-kube-dns-amd64          1.14.4              a8e00546bcf3        9 months ago        49.4MB
k8s.gcr.io/etcd-amd64                      3.0.17              243830dae7dd        13 months ago       169MB
k8s.gcr.io/pause-amd64                     3.0                 9e59f495ffa         23 months ago       747kB

in order to make the lab demonstration fast without waiting, let pull the docker images first. In minikube run

docker pull k8s.gcr.io/heapster-amd64:v1.5.0
docker pull gcr.io/google-containers/kube-addon-manager:v6.5
docker pull karthequian/secretreader:latest
docker pull karthequian/reader:latest
docker pull karthequian/helloworld:blue
docker pull karthequian/helloworld:black
docker pull karthequian/helloworld:latest
docker pull k8s.gcr.io/k8s-dns-sidecar-amd64:1.14.5
docker pull k8s.gcr.io/k8s-dns-kube-dns-amd64:1.14.5
docker pull k8s.gcr.io/k8s-dns-dnsmasq-nanny-amd64:1.14.5
docker pull k8s.gcr.io/heapster-influxdb-amd64:v1.3.3
docker pull k8s.gcr.io/heapster-grafana-amd64:v4.4.3
docker pull gcr.io/google_containers/kubernetes-zookeeper:1.0-3.4.10
docker pull gcr.io/google-samples/gb-frontend:v4
docker pull karthequian/ruby:latest
docker pull gcr.io/google_samples/gb-redisslave:v1
docker pull gcr.io/google_containers/redis:e2e

3. Setup and test kubectl

kubectl get pods
kubectl get nodes

相关文章

网友评论

    本文标题:learning kubernetes by minikube,

    本文链接:https://www.haomeiwen.com/subject/qgpskftx.html