Update multiple-schedulers doc (#2063)
* Update tutorial * Fix md formatting. * Remove extraneous space
This commit is contained in:
parent
b50ffef3fb
commit
3456093031
|
|
@ -34,7 +34,7 @@ to build the image:
|
||||||
|
|
||||||
```docker
|
```docker
|
||||||
FROM busybox
|
FROM busybox
|
||||||
ADD _output/local/go/bin/kube-scheduler /usr/local/bin/kube-scheduler
|
ADD ./_output/dockerized/bin/linux/amd64/kube-scheduler /usr/local/bin/kube-scheduler
|
||||||
```
|
```
|
||||||
|
|
||||||
Save the file as `Dockerfile`, build the image and push it to a registry. This example
|
Save the file as `Dockerfile`, build the image and push it to a registry. This example
|
||||||
|
|
@ -45,7 +45,7 @@ For more details, please read the GCR
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker build -t my-kube-scheduler:1.0 .
|
docker build -t my-kube-scheduler:1.0 .
|
||||||
gcloud docker push gcr.io/my-gcp-project/my-kube-scheduler:1.0
|
gcloud docker -- push gcr.io/my-gcp-project/my-kube-scheduler:1.0
|
||||||
```
|
```
|
||||||
|
|
||||||
### 2. Define a Kubernetes Deployment for the scheduler
|
### 2. Define a Kubernetes Deployment for the scheduler
|
||||||
|
|
@ -131,15 +131,15 @@ scheduler in that pod spec. Let's look at three examples.
|
||||||
|
|
||||||
Save this file as `pod3.yaml` and submit it to the Kubernetes cluster.
|
Save this file as `pod3.yaml` and submit it to the Kubernetes cluster.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl create -f pod3.yaml
|
kubectl create -f pod3.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
Verify that all three pods are running.
|
Verify that all three pods are running.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl get pods
|
kubectl get pods
|
||||||
```
|
```
|
||||||
|
|
||||||
### Verifying that the pods were scheduled using the desired schedulers
|
### Verifying that the pods were scheduled using the desired schedulers
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,11 @@ spec:
|
||||||
version: second
|
version: second
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- command: [/usr/local/bin/kube-scheduler, --address=0.0.0.0,
|
- command:
|
||||||
--scheduler-name=my-scheduler, --leader-elect=false]
|
- /usr/local/bin/kube-scheduler
|
||||||
|
- --address=0.0.0.0
|
||||||
|
- --leader-elect=false
|
||||||
|
- --scheduler-name=my-scheduler
|
||||||
image: gcr.io/my-gcp-project/my-kube-scheduler:1.0
|
image: gcr.io/my-gcp-project/my-kube-scheduler:1.0
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
|
|
@ -37,4 +40,4 @@ spec:
|
||||||
volumeMounts: []
|
volumeMounts: []
|
||||||
hostNetwork: false
|
hostNetwork: false
|
||||||
hostPID: false
|
hostPID: false
|
||||||
volumes: []
|
volumes: []
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue