Merge pull request #189 from geekSiddharth/master

kube-batchd tutorial packaging and deployment fix
This commit is contained in:
Zhe Jin 2018-03-23 09:42:31 +08:00 committed by GitHub
commit 8568559b95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 6 deletions

View File

@ -27,7 +27,6 @@ kube-batchd need to run as a kubernetes scheduler. The next step will show how t
# mkdir -p /tmp/kube-image
# cd /tmp/kube-image
# cp $GOPATH/src/github.com/kubernetes-incubator/kube-arbitrator/_output/bin/kube-batchd ./
# cp /root/.kube/config ./
```
Create `Dockerfile` in `/tmp/kube-image`
@ -37,10 +36,13 @@ Create `Dockerfile` in `/tmp/kube-image`
From ubuntu
ADD kube-batchd /opt
ADD config /opt
```
Build the image and push it to a registry(GCR or DockerHub). We have used DockerHub here.
```
# cd /tmp/kube-image/
# docker build -t kube-batchd:v1 .
# docker build -t <your_docker_username>/kube-batchd:v1 .
# docker push <your_docker_username>/kube-batchd:v1
```
Verify kube-batchd images
@ -75,9 +77,9 @@ spec:
spec:
containers:
- command:
- /opt/kube-batchd
- --kubeconfig=/opt/config
image: kube-batchd:v1
- ./opt/kube-batchd
- --scheduler-name=kube-batchd
image: <your_docker_username>/kube-batchd:v1
name: kube-second-scheduler
resources:
requests: