zoechirico / k8s Goto Github PK
View Code? Open in Web Editor NEWKubernetes Notes
License: Apache License 2.0
Kubernetes Notes
License: Apache License 2.0
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 &
docker-machine stop ${KUBE_BUILD_VM}
docker-machine rm ${KUBE_BUILD_VM}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.