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
132575bc
Commit
132575bc
authored
Jul 28, 2015
by
Brendan Burns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update single node docker to 1.0.1
parent
fa6ee98d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
Makefile
cluster/images/hyperkube/Makefile
+1
-1
docker.md
docs/getting-started-guides/docker.md
+7
-7
No files found.
cluster/images/hyperkube/Makefile
View file @
132575bc
# build the hyperkube image.
# build the hyperkube image.
VERSION
=
v
0.18.2
VERSION
=
v
1.0.1
all
:
all
:
cp
../../saltbase/salt/helpers/safe_format_and_mount .
cp
../../saltbase/salt/helpers/safe_format_and_mount .
...
...
docs/getting-started-guides/docker.md
View file @
132575bc
...
@@ -59,13 +59,13 @@ Here's a diagram of what the final result will look like:
...
@@ -59,13 +59,13 @@ Here's a diagram of what the final result will look like:
### Step One: Run etcd
### Step One: Run etcd
```
sh
```
sh
docker run
--net
=
host
-d
gcr.io/google_containers/etcd:2.0.
9
/usr/local/bin/etcd
--addr
=
127.0.0.1:4001
--bind-addr
=
0.0.0.0:4001
--data-dir
=
/var/etcd/data
docker run
--net
=
host
-d
gcr.io/google_containers/etcd:2.0.
12
/usr/local/bin/etcd
--addr
=
127.0.0.1:4001
--bind-addr
=
0.0.0.0:4001
--data-dir
=
/var/etcd/data
```
```
### Step Two: Run the master
### Step Two: Run the master
```
sh
```
sh
docker run
--net
=
host
-d
-v
/var/run/docker.sock:/var/run/docker.sock gcr.io/google_containers/hyperkube:v
0.21.2
/hyperkube kubelet
--api_servers
=
http://localhost:8080
--v
=
2
--address
=
0.0.0.0
--enable_server
--hostname_override
=
127.0.0.1
--config
=
/etc/kubernetes/manifests
docker run
--net
=
host
-d
-v
/var/run/docker.sock:/var/run/docker.sock gcr.io/google_containers/hyperkube:v
1.0.1
/hyperkube kubelet
--api_servers
=
http://localhost:8080
--v
=
2
--address
=
0.0.0.0
--enable_server
--hostname_override
=
127.0.0.1
--config
=
/etc/kubernetes/manifests
```
```
This actually runs the kubelet, which in turn runs a
[
pod
](
../user-guide/pods.md
)
that contains the other master components.
This actually runs the kubelet, which in turn runs a
[
pod
](
../user-guide/pods.md
)
that contains the other master components.
...
@@ -75,15 +75,15 @@ This actually runs the kubelet, which in turn runs a [pod](../user-guide/pods.md
...
@@ -75,15 +75,15 @@ This actually runs the kubelet, which in turn runs a [pod](../user-guide/pods.md
*Note, this could be combined with master above, but it requires --privileged for iptables manipulation*
*Note, this could be combined with master above, but it requires --privileged for iptables manipulation*
```
sh
```
sh
docker run
-d
--net
=
host
--privileged
gcr.io/google_containers/hyperkube:v
0.21.2
/hyperkube proxy
--master
=
http://127.0.0.1:8080
--v
=
2
docker run
-d
--net
=
host
--privileged
gcr.io/google_containers/hyperkube:v
1.0.1
/hyperkube proxy
--master
=
http://127.0.0.1:8080
--v
=
2
```
```
### Test it out
### Test it out
At this point you should have a running Kubernetes cluster. You can test this by downloading the kubectl
At this point you should have a running Kubernetes cluster. You can test this by downloading the kubectl
binary
binary
(
[
OS X
](
https://storage.googleapis.com/kubernetes-release/release/v
0.18.2
/bin/darwin/amd64/kubectl
)
)
(
[
OS X
](
https://storage.googleapis.com/kubernetes-release/release/v
1.0.1
/bin/darwin/amd64/kubectl
)
)
(
[
linux
](
https://storage.googleapis.com/kubernetes-release/release/v
0.18.2
/bin/linux/amd64/kubectl
)
)
(
[
linux
](
https://storage.googleapis.com/kubernetes-release/release/v
1.0.1
/bin/linux/amd64/kubectl
)
)
*Note:*
*Note:*
On OS/X you will need to set up port forwarding via ssh:
On OS/X you will need to set up port forwarding via ssh:
...
@@ -110,7 +110,7 @@ If you are running different Kubernetes clusters, you may need to specify `-s ht
...
@@ -110,7 +110,7 @@ If you are running different Kubernetes clusters, you may need to specify `-s ht
### Run an application
### Run an application
```
sh
```
sh
kubectl
-s
http://localhost:8080 run
-container
nginx
--image
=
nginx
--port
=
80
kubectl
-s
http://localhost:8080 run nginx
--image
=
nginx
--port
=
80
```
```
now run
`docker ps`
you should see nginx running. You may need to wait a few minutes for the image to get pulled.
now run
`docker ps`
you should see nginx running. You may need to wait a few minutes for the image to get pulled.
...
@@ -125,7 +125,7 @@ This should print:
...
@@ -125,7 +125,7 @@ This should print:
```
console
```
console
NAME LABELS SELECTOR IP PORT(S)
NAME LABELS SELECTOR IP PORT(S)
nginx
<none>
run
=
nginx <ip-addr> 80/TCP
nginx
run=nginx
run=nginx <ip-addr>
80/TCP
```
```
If ip-addr is blank run the following command to obtain it. Know issue #10836
If ip-addr is blank run the following command to obtain it. Know issue #10836
...
...
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