Kubernetes 简介

所需积分/C币:10 2017-04-11 11:48:55 1.23MB PDF

Kubernetes 简介
A Pod in Docker terms- visually mypo eth0:192.168.666 lo:127.0.0.1 /tmp/mypod o∞000003 net 8 0000 C Note: different OSes, resource constraints, restart policies #kaspars @thelstein O 2015 Mesosphere, Inc. All Rights Reserved A little Twitter Mirror Pod el http192.168.66.6:80 mypo eth0:192.168666 1.127.0.0.1 /tmp/mypod o∞000003 net 8 0000 C while true: do curl-khttps://mobile.twittercom/search?q=923kubernetes720%23paris&s=typd\ /tmp/mypod/index. html sleep 10 done #kaspars @thelstein O 2015 Mesosphere, Inc. All Rights Reserved Get a Kubernetes cluster: mesos/ docker with kube-up Sgitclonegit@github.com:kubernetes/kubernetesgit s cd kubernetes s build/run.sh hack/build-go. sh & make S KUBERNETES_ PROVIDER=mesos /docker cluster/kube-up sh s alias kubectl=_output/local/ bin/darwin/amd64/kubectl S kubectl get pods #kaspars @thelstein O 2015 Mesosphere, Inc. All Rights Reserved Package for s dcos config prepend package. sources\ Mesosphere https://github.com/mesosphere/multiverse/archive/version-1.x.zip DCOS s dcos package install kubernetes s dcos kubectl create- f nginx yml pods/nginx s dcos kubectl get pods kubernetes Unen in a NEw Window NAME READY STATUS RESTARTS AGE &E)Kubernetes nginx Running 0 1m DASHBOARD Dashboard O 2015 Mesosphere, 6三54/113.23M google install the cloud cli COntainer prepare your Google Cloud account with a project with Enginc enabled gce ap|s,e.g.“ kube-test-1154” s cloud components install kubectl s cloud container clusters create demo-cluster--num-nodes=2 s cloud config set container/ cluster demo-cluster S kubectl get pods NAME READY STATUS RESTARTS AGE nginx 1/1 Running o lm O 2015 Mesosphere, Inc. All Rights Reserved Getting Started Guides ●0●< kubernetes. jo 密) kubernetes Home Getting Started Documentation Community Events Media Blog A )Installation First, lets get you up and running by starting our first Kubernetes cluster Kubernetes can run almost anywhere so choose the configuration you're most comfortable with Google Compute Engine Docker Vagrant Fedora(Ansible) Fedora(Manual) Local Microsoft AzureRackspace CoreOS vSphere Amazon Web ServicesMesos DCoS 14 mypod eth0:192.168.666 lo:127.0.0.1 /tmp/mypod o∞000003 net 8 0000 C #kaspars @thelstein O 2015 Mesosphere, Inc. All Rights Reserved Same pod in Kubernetes apiversion: v1 kind Pod metadata name: mypod spec containers name: webserver Image: ubuntu workingDir: /tmp/mypod command:["python3",-m",http.server"380] volumeMounts S kubectl create -f mypod yaml name htdocs mountRath: /tmp/mypod pod mypod"created name: busybox image: sttts/busybox-curl tty: true stdin: true volume Mounts name: htdocs mountRath: /tmp /my pod volumes name: htdocs hostpath path: /tmp/ my pc od #kaspars @thelstein O 2015 Mesosphere, Inc. All Rights Reserved

...展开详情
img
zzqxsyu

关注 私信 TA的资源

上传资源赚积分,得勋章
最新资源