Giter Club home page Giter Club logo

k8s's People

Contributors

mchirico avatar

Watchers

 avatar  avatar

k8s's Issues

Docker Machine on GCP: Need Instructions

Reference

https://docs.docker.com/machine/drivers/gce/
and
https://github.com/kubernetes/kubernetes/blob/8725c3bf12cfd3697464136201216fa05dc662d2/build/README.md

export GOOGLE_APPLICATION_CREDENTIALS=/Users/rommel/.googleAuthPath/k8s-dev-cwxstat.json
KUBE_BUILD_VM=k8s-build
KUBE_BUILD_GCE_PROJECT=k8s-dev-cwxstat

docker-machine create --driver google \
  --google-project ${KUBE_BUILD_GCE_PROJECT} \
  --google-zone us-central1-f \
  --google-machine-type=n1-standard-8 \
  --google-disk-size=50 \
  --google-preemptible=true \
  --google-disk-type=pd-ssd \
  ${KUBE_BUILD_VM}

Next run

# Set up local docker to talk to that machine
eval $(docker-machine env ${KUBE_BUILD_VM})

Find out what port is being used. Below, you can see it is 59701

docker ps -a
CONTAINER ID   IMAGE                          COMMAND                  CREATED         STATUS         PORTS                       NAMES
6f603ae99714   quay.io/mchirico/k8s:v1.20.1   "/usr/local/bin/entr…"   7 minutes ago   Up 7 minutes                               kind-worker
190878786bfa   quay.io/mchirico/k8s:v1.20.1   "/usr/local/bin/entr…"   7 minutes ago   Up 7 minutes   127.0.0.1:59701->6443/tcp   kind-control-plane
# forward local 59701 to that machine so that rsync works
docker-machine ssh ${KUBE_BUILD_VM} -L 59701:localhost:59701 -N &

Stop

docker-machine stop ${KUBE_BUILD_VM}
docker-machine rm ${KUBE_BUILD_VM}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.