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
ca4620b6
Commit
ca4620b6
authored
Jun 24, 2019
by
Thorsten Schifferdecker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update to v0.6.1
parent
c745be58
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
README.md
README.md
+6
-6
all.yml
contrib/ansible/group_vars/all.yml
+1
-1
docker-compose-agent.yml
docker-compose-agent.yml
+1
-1
docker-compose.yml
docker-compose.yml
+2
-2
No files found.
README.md
View file @
ca4620b6
...
@@ -275,8 +275,8 @@ Adding extra argument can be done by passing the following flags to server or ag
...
@@ -275,8 +275,8 @@ Adding extra argument can be done by passing the following flags to server or ag
--kube-apiserver-arg value
--kube-apiserver-arg value
--kube-scheduler-arg value
--kube-scheduler-arg value
--kube-controller-arg value
--kube-controller-arg value
--kubelet-arg value
--kubelet-arg value
--kube-proxy-arg value
--kube-proxy-arg value
```
```
For example to add the following arguments
`-v=9`
and
`log-file=/tmp/kubeapi.log`
to the kube-apiserver, you should pass the following:
For example to add the following arguments
`-v=9`
and
`log-file=/tmp/kubeapi.log`
to the kube-apiserver, you should pass the following:
```
```
...
@@ -333,9 +333,9 @@ serves as an example of how to run k3s from Docker. To run from `docker-compose
...
@@ -333,9 +333,9 @@ serves as an example of how to run k3s from Docker. To run from `docker-compose
To run the agent only in Docker use the following
`docker-compose-agent.yml`
is in the root of this repo that
To run the agent only in Docker use the following
`docker-compose-agent.yml`
is in the root of this repo that
serves as an example of how to run k3s agent from Docker. Alternatively the Docker run command can also be used;
serves as an example of how to run k3s agent from Docker. Alternatively the Docker run command can also be used;
sudo docker run -d --tmpfs /run --tmpfs /var/run -e K3S_URL=${SERVER_URL} -e K3S_TOKEN=${NODE_TOKEN} --privileged rancher/k3s:v0.6.
0
sudo docker run -d --tmpfs /run --tmpfs /var/run -e K3S_URL=${SERVER_URL} -e K3S_TOKEN=${NODE_TOKEN} --privileged rancher/k3s:v0.6.
1
sudo docker run -d --tmpfs /run --tmpfs /var/run -e K3S_URL=https://k3s.example.com:6443 -e K3S_TOKEN=K13849a67fc385fd3c0fa6133a8649d9e717b0258b3b09c87ffc33dae362c12d8c0::node:2e373dca319a0525745fd8b3d8120d9c --privileged rancher/k3s:v0.6.
0
sudo docker run -d --tmpfs /run --tmpfs /var/run -e K3S_URL=https://k3s.example.com:6443 -e K3S_TOKEN=K13849a67fc385fd3c0fa6133a8649d9e717b0258b3b09c87ffc33dae362c12d8c0::node:2e373dca319a0525745fd8b3d8120d9c --privileged rancher/k3s:v0.6.
1
Hyperkube
Hyperkube
...
@@ -581,7 +581,7 @@ MetalLB) just add `--no-deploy=servicelb` to the server on startup.
...
@@ -581,7 +581,7 @@ MetalLB) just add `--no-deploy=servicelb` to the server on startup.
Metrics Server
Metrics Server
--------------
--------------
To add functionality for commands such as
`k3s kubectl top node`
metrics-server must be installed,
To add functionality for commands such as
`k3s kubectl top node`
metrics-server must be installed,
to install see the instructions located at https://github.com/kubernetes-incubator/metrics-server/.
to install see the instructions located at https://github.com/kubernetes-incubator/metrics-server/.
NOTE: By default the image used in
`metrics-server-deployment.yaml`
is valid only for amd64 devices,
NOTE: By default the image used in
`metrics-server-deployment.yaml`
is valid only for amd64 devices,
...
@@ -632,7 +632,7 @@ k3s server --node-label foo=bar --node-label hello=world --node-taint key1=value
...
@@ -632,7 +632,7 @@ k3s server --node-label foo=bar --node-label hello=world --node-taint key1=value
### Ports
### Ports
When running rootless a new network namespace is created. This means that k3s instance is running with networking
When running rootless a new network namespace is created. This means that k3s instance is running with networking
fairly detached from the host. The only way to access services run in k3s from the host is to setup port forwards
fairly detached from the host. The only way to access services run in k3s from the host is to setup port forwards
to the k3s network namespace. We have a controller that will automatically bind 6443 and service port below 1024 to the host with an offset of 10000.
to the k3s network namespace. We have a controller that will automatically bind 6443 and service port below 1024 to the host with an offset of 10000.
That means service port 80 will become 10080 on the host, but 8080 will become 8080 without any offset.
That means service port 80 will become 10080 on the host, but 8080 will become 8080 without any offset.
...
...
contrib/ansible/group_vars/all.yml
View file @
ca4620b6
k3s_version
:
v0.6.
0
k3s_version
:
v0.6.
1
ansible_user
:
debian
ansible_user
:
debian
systemd_dir
:
/etc/systemd/system
systemd_dir
:
/etc/systemd/system
master_ip
:
"
{{
hostvars[groups['master'][0]]['ansible_host']
|
default(groups['master'][0])
}}"
master_ip
:
"
{{
hostvars[groups['master'][0]]['ansible_host']
|
default(groups['master'][0])
}}"
docker-compose-agent.yml
View file @
ca4620b6
version
:
'
3'
version
:
'
3'
services
:
services
:
node
:
node
:
image
:
rancher/k3s:v0.6.
0
image
:
rancher/k3s:v0.6.
1
tmpfs
:
tmpfs
:
-
/run
-
/run
-
/var/run
-
/var/run
...
...
docker-compose.yml
View file @
ca4620b6
version
:
'
3'
version
:
'
3'
services
:
services
:
server
:
server
:
image
:
rancher/k3s:v0.6.
0
image
:
rancher/k3s:v0.6.
1
command
:
server --disable-agent
command
:
server --disable-agent
environment
:
environment
:
-
K3S_CLUSTER_SECRET=somethingtotallyrandom
-
K3S_CLUSTER_SECRET=somethingtotallyrandom
...
@@ -15,7 +15,7 @@ services:
...
@@ -15,7 +15,7 @@ services:
-
6443:6443
-
6443:6443
node
:
node
:
image
:
rancher/k3s:v0.6.
0
image
:
rancher/k3s:v0.6.
1
tmpfs
:
tmpfs
:
-
/run
-
/run
-
/var/run
-
/var/run
...
...
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