Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
a599d803
Commit
a599d803
authored
Jul 08, 2015
by
Victor Marmol
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10941 from caesarxuchao/getting-started-output
update the kubectl output in gettint-started-guides
parents
105206e3
2e6db701
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
38 additions
and
39 deletions
+38
-39
centos_manual_config.md
docs/getting-started-guides/centos/centos_manual_config.md
+1
-1
README.md
docs/getting-started-guides/coreos/azure/README.md
+12
-13
bare_metal_offline.md
docs/getting-started-guides/coreos/bare_metal_offline.md
+2
-2
juju.md
docs/getting-started-guides/juju.md
+1
-1
logging-elasticsearch.md
docs/getting-started-guides/logging-elasticsearch.md
+1
-1
logging.md
docs/getting-started-guides/logging.md
+2
-2
mesos.md
docs/getting-started-guides/mesos.md
+2
-2
vagrant.md
docs/getting-started-guides/vagrant.md
+17
-17
No files found.
docs/getting-started-guides/centos/centos_manual_config.md
View file @
a599d803
...
@@ -156,7 +156,7 @@ done
...
@@ -156,7 +156,7 @@ done
*
Check to make sure the cluster can see the minion (on centos-master)
*
Check to make sure the cluster can see the minion (on centos-master)
```
```
kubectl get
minion
s
kubectl get
node
s
NAME LABELS STATUS
NAME LABELS STATUS
centos-minion <none> Ready
centos-minion <none> Ready
```
```
...
...
docs/getting-started-guides/coreos/azure/README.md
View file @
a599d803
...
@@ -91,14 +91,13 @@ kubectl get pods --watch
...
@@ -91,14 +91,13 @@ kubectl get pods --watch
Eventually you should see:
Eventually you should see:
```
```
POD IP CONTAINER(S) IMAGE(S) HOST LABELS STATUS
NAME READY STATUS RESTARTS AGE
frontend-controller-0133o 10.2.1.14 php-redis kubernetes/example-guestbook-php-redis kube-01/172.18.0.13 name=frontend,uses=redisslave,redis-master Running
frontend-8anh8 1/1 Running 0 1m
frontend-controller-ls6k1 10.2.3.10 php-redis kubernetes/example-guestbook-php-redis <unassigned> name=frontend,uses=redisslave,redis-master Running
frontend-8pq5r 1/1 Running 0 1m
frontend-controller-oh43e 10.2.2.15 php-redis kubernetes/example-guestbook-php-redis kube-02/172.18.0.14 name=frontend,uses=redisslave,redis-master Running
frontend-v7tbq 1/1 Running 0 1m
redis-master 10.2.1.3 master redis kube-01/172.18.0.13 name=redis-master Running
redis-master-u0my3 1/1 Running 0 1m
redis-slave-controller-fplln 10.2.2.3 slave brendanburns/redis-slave kube-02/172.18.0.14 name=redisslave,uses=redis-master Running
redis-slave-4eznf 1/1 Running 0 1m
redis-slave-controller-gziey 10.2.1.4 slave brendanburns/redis-slave kube-01/172.18.0.13 name=redisslave,uses=redis-master Running
redis-slave-hf40f 1/1 Running 0 1m
```
```
## Scaling
## Scaling
...
@@ -170,11 +169,11 @@ You now will have more instances of front-end Guestbook apps and Redis slaves; a
...
@@ -170,11 +169,11 @@ You now will have more instances of front-end Guestbook apps and Redis slaves; a
```
```
core@kube-00 ~/guestbook-example $ kubectl get pods -l name=frontend
core@kube-00 ~/guestbook-example $ kubectl get pods -l name=frontend
POD IP CONTAINER(S) IMAGE(S) HOST LABELS STATUS
NAME READY STATUS RESTARTS AGE
frontend-
controller-0133o 10.2.1.19 php-redis kubernetes/example-guestbook-php-redis kube-01/172.18.0.13 name=frontend,uses=redisslave,redis-master Running
frontend-
8anh8 1/1 Running 0 3m
frontend-
controller-i7hvs 10.2.4.5 php-redis kubernetes/example-guestbook-php-redis kube-04/172.18.0.21 name=frontend,uses=redisslave,redis-master Running
frontend-
8pq5r 1/1 Running 0 3m
frontend-
controller-ls6k1 10.2.3.18 php-redis kubernetes/example-guestbook-php-redis kube-03/172.18.0.20 name=frontend,uses=redisslave,redis-master Running
frontend-
oz8uo 1/1 Running 0 51s
frontend-
controller-oh43e 10.2.2.22 php-redis kubernetes/example-guestbook-php-redis kube-02/172.18.0.14 name=frontend,uses=redisslave,redis-master Running
frontend-
v7tbq 1/1 Running 0 3m
```
```
## Exposing the app to the outside world
## Exposing the app to the outside world
...
...
docs/getting-started-guides/coreos/bare_metal_offline.md
View file @
a599d803
...
@@ -32,7 +32,7 @@ Deploy a CoreOS running Kubernetes environment. This particular guild is made to
...
@@ -32,7 +32,7 @@ Deploy a CoreOS running Kubernetes environment. This particular guild is made to
3.
Update the DHCP config to reflect the host needing deployment
3.
Update the DHCP config to reflect the host needing deployment
4.
Setup nodes to deploy CoreOS creating a etcd cluster.
4.
Setup nodes to deploy CoreOS creating a etcd cluster.
5.
Have no access to the public
[
etcd discovery tool
](
https://discovery.etcd.io/
)
.
5.
Have no access to the public
[
etcd discovery tool
](
https://discovery.etcd.io/
)
.
6.
Installing the CoreOS slaves to become Kubernetes
minion
s.
6.
Installing the CoreOS slaves to become Kubernetes
node
s.
## This Guides variables
## This Guides variables
| Node Description | MAC | IP |
| Node Description | MAC | IP |
...
@@ -649,7 +649,7 @@ Check system status of services on a minion node:
...
@@ -649,7 +649,7 @@ Check system status of services on a minion node:
List Kubernetes
List Kubernetes
kubectl get pods
kubectl get pods
kubectl get
minion
s
kubectl get
node
s
Kill all pods:
Kill all pods:
...
...
docs/getting-started-guides/juju.md
View file @
a599d803
...
@@ -102,7 +102,7 @@ KUBERNETES_MASTER to point at the ip of `kubernetes-master/0`.
...
@@ -102,7 +102,7 @@ KUBERNETES_MASTER to point at the ip of `kubernetes-master/0`.
No pods will be available before starting a container:
No pods will be available before starting a container:
kubectl get pods
kubectl get pods
POD CONTAINER(S) IMAGE(S) HOST LABELS STATUS
NAME READY STATUS RESTARTS AGE
kubectl get replicationcontrollers
kubectl get replicationcontrollers
CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS
CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS
...
...
docs/getting-started-guides/logging-elasticsearch.md
View file @
a599d803
...
@@ -41,7 +41,7 @@ viewer should be running soon after the cluster comes to life.
...
@@ -41,7 +41,7 @@ viewer should be running soon after the cluster comes to life.
```
```
$ kubectl get pods
$ kubectl get pods
NAME READY
REASON
RESTARTS AGE
NAME READY
STATUS
RESTARTS AGE
elasticsearch-logging-v1-78nog 1/1 Running 0 2h
elasticsearch-logging-v1-78nog 1/1 Running 0 2h
elasticsearch-logging-v1-nj2nb 1/1 Running 0 2h
elasticsearch-logging-v1-nj2nb 1/1 Running 0 2h
fluentd-elasticsearch-kubernetes-minion-5oq0 1/1 Running 0 2h
fluentd-elasticsearch-kubernetes-minion-5oq0 1/1 Running 0 2h
...
...
docs/getting-started-guides/logging.md
View file @
a599d803
...
@@ -6,7 +6,7 @@ Cluster level logging for Kubernetes allows us to collect logs which persist bey
...
@@ -6,7 +6,7 @@ Cluster level logging for Kubernetes allows us to collect logs which persist bey
```
```
$ kubectl get pods
$ kubectl get pods
NAME READY
REASON
RESTARTS AGE
NAME READY
STATUS
RESTARTS AGE
fluentd-cloud-logging-kubernetes-minion-0f64 1/1 Running 0 32m
fluentd-cloud-logging-kubernetes-minion-0f64 1/1 Running 0 32m
fluentd-cloud-logging-kubernetes-minion-27gf 1/1 Running 0 32m
fluentd-cloud-logging-kubernetes-minion-27gf 1/1 Running 0 32m
fluentd-cloud-logging-kubernetes-minion-pk22 1/1 Running 0 31m
fluentd-cloud-logging-kubernetes-minion-pk22 1/1 Running 0 31m
...
@@ -45,7 +45,7 @@ This pod specification has one container which runs a bash script when the conta
...
@@ -45,7 +45,7 @@ This pod specification has one container which runs a bash script when the conta
We can observe the running pod:
We can observe the running pod:
```
```
$ kubectl get pods
$ kubectl get pods
NAME READY
REASON
RESTARTS AGE
NAME READY
STATUS
RESTARTS AGE
counter 1/1 Running 0 5m
counter 1/1 Running 0 5m
fluentd-cloud-logging-kubernetes-minion-0f64 1/1 Running 0 55m
fluentd-cloud-logging-kubernetes-minion-0f64 1/1 Running 0 55m
fluentd-cloud-logging-kubernetes-minion-27gf 1/1 Running 0 55m
fluentd-cloud-logging-kubernetes-minion-27gf 1/1 Running 0 55m
...
...
docs/getting-started-guides/mesos.md
View file @
a599d803
...
@@ -137,7 +137,7 @@ Interact with the kubernetes-mesos framework via `kubectl`:
...
@@ -137,7 +137,7 @@ Interact with the kubernetes-mesos framework via `kubectl`:
```
bash
```
bash
$
kubectl get pods
$
kubectl get pods
NAME READY
REASON
RESTARTS AGE
NAME READY
STATUS
RESTARTS AGE
```
```
```
bash
```
bash
...
@@ -183,7 +183,7 @@ We can use the `kubectl` interface to monitor the status of our pod:
...
@@ -183,7 +183,7 @@ We can use the `kubectl` interface to monitor the status of our pod:
```
bash
```
bash
$
kubectl get pods
$
kubectl get pods
NAME READY
REASON
RESTARTS AGE
NAME READY
STATUS
RESTARTS AGE
nginx 1/1 Running 0 14s
nginx 1/1 Running 0 14s
```
```
...
...
docs/getting-started-guides/vagrant.md
View file @
a599d803
...
@@ -181,13 +181,13 @@ Before starting a container there will be no pods, services and replication cont
...
@@ -181,13 +181,13 @@ Before starting a container there will be no pods, services and replication cont
```
sh
```
sh
$
./cluster/kubectl.sh get pods
$
./cluster/kubectl.sh get pods
NAME
IMAGE
(
S
)
HOST LABELS STATUS
NAME
READY STATUS RESTARTS AGE
$
./cluster/kubectl.sh get services
$
./cluster/kubectl.sh get services
NAME LABELS SELECTOR IP
PORT
NAME LABELS SELECTOR IP
(
S
)
PORT
(
S
)
$
./cluster/kubectl.sh get replicationcontrollers
$
./cluster/kubectl.sh get replicationcontrollers
NAME IMAGE
(
S
SELECTOR REPLICAS
CONTROLLER CONTAINER
(
S
)
IMAGE
(
S
)
SELECTOR REPLICAS
```
```
Start a container running nginx with a replication controller and three replicas
Start a container running nginx with a replication controller and three replicas
...
@@ -200,10 +200,10 @@ When listing the pods, you will see that three containers have been started and
...
@@ -200,10 +200,10 @@ When listing the pods, you will see that three containers have been started and
```
sh
```
sh
$
./cluster/kubectl.sh get pods
$
./cluster/kubectl.sh get pods
NAME
IMAGE
(
S
)
HOST LABELS STATUS
NAME
READY STATUS RESTARTS AGE
781191ff-3ffe-11e4-9036-0800279696e1 nginx 10.245.2.4/10.245.2.4
name
=
myNginx Waiting
my-nginx-5kq0g 0/1 Pending 0 10s
7813c8bd-3ffe-11e4-9036-0800279696e1 nginx 10.245.2.2/10.245.2.2
name
=
myNginx Waiting
my-nginx-gr3hh 0/1 Pending 0 10s
78140853-3ffe-11e4-9036-0800279696e1 nginx 10.245.2.3/10.245.2.3
name
=
myNginx Waiting
my-nginx-xql4j 0/1 Pending 0 10s
```
```
You need to wait for the provisioning to complete, you can monitor the nodes by doing:
You need to wait for the provisioning to complete, you can monitor the nodes by doing:
...
@@ -233,17 +233,17 @@ Going back to listing the pods, services and replicationcontrollers, you now hav
...
@@ -233,17 +233,17 @@ Going back to listing the pods, services and replicationcontrollers, you now hav
```
sh
```
sh
$
./cluster/kubectl.sh get pods
$
./cluster/kubectl.sh get pods
NAME
IMAGE
(
S
)
HOST LABELS STATUS
NAME
READY STATUS RESTARTS AGE
781191ff-3ffe-11e4-9036-0800279696e1 nginx 10.245.2.4/10.245.2.4
name
=
myNginx Running
my-nginx-5kq0g 1/1 Running 0 1m
7813c8bd-3ffe-11e4-9036-0800279696e1 nginx 10.245.2.2/10.245.2.2
name
=
myNginx Running
my-nginx-gr3hh 1/1 Running 0 1m
78140853-3ffe-11e4-9036-0800279696e1 nginx 10.245.2.3/10.245.2.3
name
=
myNginx Running
my-nginx-xql4j 1/1 Running 0 1m
$
./cluster/kubectl.sh get services
$
./cluster/kubectl.sh get services
NAME LABELS SELECTOR IP
PORT
NAME LABELS SELECTOR IP
(
S
)
PORT
(
S
)
$
./cluster/kubectl.sh get replicationcontrollers
$
./cluster/kubectl.sh get replicationcontrollers
NAME IMAGE
(
S
SELECTOR REPLICAS
CONTROLLER CONTAINER
(
S
)
IMAGE
(
S
)
SELECTOR REPLICAS
my
Nginx nginx
name
=
my-nginx 3
my
-nginx my-nginx nginx
run
=
my-nginx 3
```
```
We did not start any services, hence there are none listed. But we see three replicas displayed properly.
We did not start any services, hence there are none listed. But we see three replicas displayed properly.
...
@@ -253,9 +253,9 @@ You can already play with scaling the replicas with:
...
@@ -253,9 +253,9 @@ You can already play with scaling the replicas with:
```
sh
```
sh
$
./cluster/kubectl.sh scale rc my-nginx
--replicas
=
2
$
./cluster/kubectl.sh scale rc my-nginx
--replicas
=
2
$
./cluster/kubectl.sh get pods
$
./cluster/kubectl.sh get pods
NAME
IMAGE
(
S
)
HOST LABELS STATUS
NAME
READY STATUS RESTARTS AGE
7813c8bd-3ffe-11e4-9036-0800279696e1 nginx 10.245.2.2/10.245.2.2
name
=
myNginx Running
my-nginx-5kq0g 1/1 Running 0 2m
78140853-3ffe-11e4-9036-0800279696e1 nginx 10.245.2.3/10.245.2.3
name
=
myNginx Running
my-nginx-gr3hh 1/1 Running 0 2m
```
```
Congratulations!
Congratulations!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment