Created
October 10, 2014 20:09
-
-
Save carlossg/249e36eb389d7e5041a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./cluster/kubecfg.sh list pods | |
ID Image(s) Host Labels Status | |
---------- ---------- ---------- ---------- ---------- | |
jenkins csanchez/jenkins-swarm:1.565.3 10.245.2.3/10.245.2.3 name=jenkins Running | |
2efdcb34-5096-11e4-8260-0800279696e1 csanchez/jenkins-swarm-slave:1.20 10.245.2.2/10.245.2.2 name=jenkins-slave,replicationController=jenkins-slave Running | |
$ vagrant suspend | |
==> master: Saving VM state and suspending execution... | |
==> minion-1: Saving VM state and suspending execution... | |
==> minion-2: Saving VM state and suspending execution... | |
$ vagrant up | |
Bringing machine 'master' up with 'virtualbox' provider... | |
Bringing machine 'minion-1' up with 'virtualbox' provider... | |
Bringing machine 'minion-2' up with 'virtualbox' provider... | |
==> master: Resuming suspended VM... | |
==> master: Booting VM... | |
==> master: Waiting for machine to boot. This may take a few minutes... | |
master: SSH address: 127.0.0.1:2222 | |
master: SSH username: vagrant | |
master: SSH auth method: private key | |
master: Warning: Connection refused. Retrying... | |
==> master: Machine booted and ready! | |
==> minion-1: Resuming suspended VM... | |
==> minion-1: Booting VM... | |
==> minion-1: Waiting for machine to boot. This may take a few minutes... | |
minion-1: SSH address: 127.0.0.1:2200 | |
minion-1: SSH username: vagrant | |
minion-1: SSH auth method: private key | |
minion-1: Warning: Connection refused. Retrying... | |
==> minion-1: Machine booted and ready! | |
==> minion-2: Resuming suspended VM... | |
==> minion-2: Booting VM... | |
==> minion-2: Waiting for machine to boot. This may take a few minutes... | |
minion-2: SSH address: 127.0.0.1:2201 | |
minion-2: SSH username: vagrant | |
minion-2: SSH auth method: private key | |
minion-2: Warning: Connection refused. Retrying... | |
==> minion-2: Machine booted and ready! | |
$ ./cluster/kubecfg.sh list pods | |
ID Image(s) Host Labels Status | |
---------- ---------- ---------- ---------- ---------- | |
jenkins csanchez/jenkins-swarm:1.565.3 10.245.2.3/ name=jenkins Terminated | |
2efdcb34-5096-11e4-8260-0800279696e1 csanchez/jenkins-swarm-slave:1.20 10.245.2.2/ name=jenkins-slave,replicationController=jenkins-slave Terminated | |
15610945-50b8-11e4-8260-0800279696e1 csanchez/jenkins-swarm-slave:1.20 <unassigned> name=jenkins-slave,replicationController=jenkins-slave Waiting | |
$ ./cluster/kubecfg.sh list replicationControllers | |
ID Image(s) Selector Replicas | |
---------- ---------- ---------- ---------- | |
jenkins-slave csanchez/jenkins-swarm-slave:1.20 name=jenkins-slave 1 | |
$ ./cluster/kubecfg.sh stop jenkins-slave | |
$ ./cluster/kubecfg.sh list pods | |
ID Image(s) Host Labels Status | |
---------- ---------- ---------- ---------- ---------- | |
jenkins csanchez/jenkins-swarm:1.565.3 10.245.2.3/ name=jenkins Terminated | |
2efdcb34-5096-11e4-8260-0800279696e1 csanchez/jenkins-swarm-slave:1.20 10.245.2.2/ name=jenkins-slave,replicationController=jenkins-slave Terminated | |
15610945-50b8-11e4-8260-0800279696e1 csanchez/jenkins-swarm-slave:1.20 <unassigned> name=jenkins-slave,replicationController=jenkins-slave Waiting | |
$ ./cluster/kubecfg.sh list pods | |
$ ./cluster/kubecfg.sh stop jenkins-slave | |
id: jenkins-slave | |
creationTimestamp: 2014-10-10T15:57:49Z | |
selfLink: /api/v1beta1/replicationControllers/jenkins-slave | |
resourceVersion: "93" | |
namespace: default | |
desiredState: | |
replicas: 0 | |
replicaSelector: | |
name: jenkins-slave | |
podTemplate: | |
desiredState: | |
manifest: | |
version: v1beta1 | |
id: "" | |
volumes: [] | |
containers: | |
- name: jenkins-slave | |
image: csanchez/jenkins-swarm-slave:1.20 | |
command: | |
- sh | |
- -c | |
- /usr/local/bin/jenkins-slave.sh -master http://$JENKINS_SERVICE_HOST:$JENKINS_SERVICE_PORT | |
-username jenkins -password jenkins -executors 1 | |
imagePullPolicy: "" | |
restartPolicy: | |
always: {} | |
labels: | |
name: jenkins-slave | |
currentState: | |
replicas: 2 | |
podTemplate: | |
desiredState: | |
manifest: | |
version: "" | |
id: "" | |
volumes: [] | |
containers: [] | |
restartPolicy: {} | |
labels: | |
name: jenkins-slave | |
$ ./cluster/kubecfg.sh list pods | |
ID Image(s) Host Labels Status | |
---------- ---------- ---------- ---------- ---------- | |
jenkins csanchez/jenkins-swarm:1.565.3 10.245.2.3/ name=jenkins Terminated | |
2efdcb34-5096-11e4-8260-0800279696e1 csanchez/jenkins-swarm-slave:1.20 10.245.2.2/ name=jenkins-slave,replicationController=jenkins-slave Terminated | |
15610945-50b8-11e4-8260-0800279696e1 csanchez/jenkins-swarm-slave:1.20 <unassigned> name=jenkins-slave,replicationController=jenkins-slave Waiting | |
$ ./cluster/kubecfg.sh rm jenkins-slave | |
$ ./cluster/kubecfg.sh list pods | |
ID Image(s) Host Labels Status | |
---------- ---------- ---------- ---------- ---------- | |
jenkins csanchez/jenkins-swarm:1.565.3 10.245.2.3/ name=jenkins Terminated | |
2efdcb34-5096-11e4-8260-0800279696e1 csanchez/jenkins-swarm-slave:1.20 10.245.2.2/ name=jenkins-slave,replicationController=jenkins-slave Terminated | |
$ ./cluster/kubecfg.sh delete pods/jenkins | |
Status | |
---------- | |
Success | |
$ ./cluster/kubecfg.sh delete pods/2efdcb34-5096-11e4-8260-0800279696e1 | |
Status | |
---------- | |
Success | |
$ ./cluster/kubecfg.sh list pods | |
ID Image(s) Host Labels Status | |
---------- ---------- ---------- ---------- ---------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment