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
04495ce5
Commit
04495ce5
authored
Jul 17, 2015
by
David Oppenheimer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11353 from lavalamp/docs
add docs/admin/cluster-components.md
parents
1be091da
c6035422
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
162 additions
and
10 deletions
+162
-10
README.md
docs/admin/README.md
+2
-0
cluster-components.md
docs/admin/cluster-components.md
+150
-0
kube-apiserver.md
docs/admin/kube-apiserver.md
+2
-2
kube-controller-manager.md
docs/admin/kube-controller-manager.md
+2
-2
kube-proxy.md
docs/admin/kube-proxy.md
+2
-2
kube-scheduler.md
docs/admin/kube-scheduler.md
+2
-2
kubelet.md
docs/admin/kubelet.md
+2
-2
No files found.
docs/admin/README.md
View file @
04495ce5
...
@@ -56,6 +56,8 @@ Before choosing a particular guide, here are some things to consider:
...
@@ -56,6 +56,8 @@ Before choosing a particular guide, here are some things to consider:
-
If you are configuring kubernetes on-premises, you will need to consider what
[
networking
-
If you are configuring kubernetes on-premises, you will need to consider what
[
networking
model](networking.md) fits best.
model](networking.md) fits best.
-
If you are designing for very high-availability, you may want
[
clusters in multiple zones
](
multi-cluster.md
)
.
-
If you are designing for very high-availability, you may want
[
clusters in multiple zones
](
multi-cluster.md
)
.
-
You may want to familiarize yourself with the various
[
components
](
cluster-components.md
)
needed to run a cluster.
## Setting up a cluster
## Setting up a cluster
...
...
docs/admin/cluster-components.md
0 → 100644
View file @
04495ce5
<!-- BEGIN MUNGE: UNVERSIONED_WARNING -->
<!-- BEGIN STRIP_FOR_RELEASE -->
<img src="http://kubernetes.io/img/warning.png" alt="WARNING"
width="25" height="25">
<img src="http://kubernetes.io/img/warning.png" alt="WARNING"
width="25" height="25">
<img src="http://kubernetes.io/img/warning.png" alt="WARNING"
width="25" height="25">
<img src="http://kubernetes.io/img/warning.png" alt="WARNING"
width="25" height="25">
<img src="http://kubernetes.io/img/warning.png" alt="WARNING"
width="25" height="25">
<h2>
PLEASE NOTE: This document applies to the HEAD of the source tree
</h2>
If you are using a released version of Kubernetes, you should
refer to the docs that go with that version.
<strong>
The latest 1.0.x release of this document can be found
[
here
](
http://releases.k8s.io/release-1.0/docs/admin/cluster-components.md
)
.
Documentation for other releases can be found at
[
releases.k8s.io
](
http://releases.k8s.io
)
.
</strong>
--
<!-- END STRIP_FOR_RELEASE -->
<!-- END MUNGE: UNVERSIONED_WARNING -->
# Kubernetes Cluster Admin Guide: Cluster Components
This document outlines the various binary components that need to run to
deliver a functioning Kubernetes cluster.
## Master Components
Master components are those that provide the cluster's control plane. For
example, master components are responsible for making global decisions about the
cluster (e.g., scheduling), and detecting and responding to cluster events
(e.g., starting up a new pod when a replication controller's 'replicas' field is
unsatisfied).
Master components could in theory be run on any node in the cluster. However,
for simplicity, current set up scripts typically start all master components on
the same VM, and does not run user containers on this VM. See
[
high-availability.md
](
high-availability.md
)
for an example multi-master-VM setup.
Even in the future, when Kubernetes is fully self-hosting, it will probably be
wise to only allow master components to schedule on a subset of nodes, to limit
co-running with user-run pods, reducing the possible scope of a
node-compromising security exploit.
### kube-apiserver
[
kube-apiserver
](
kube-apiserver.md
)
exposes the Kubernetes API; it is the front-end for the
Kubernetes control plane. It is designed to scale horizontally (i.e., one scales
it by running more of them--
[
high-availability.md
](
high-availability.md
)
).
### etcd
```
etcd``` is used as Kubernetes' backing store. All cluster data is stored here.
Proper administration of a Kubernetes cluster includes a backup plan for etcd's
data.
### kube-controller-manager
[kube-controller-manager](kube-controller-manager.md) is a binary that runs controllers, which are the
background threads that handle routine tasks in the cluster. Logically, each
controller is a separate process, but to reduce the number of moving pieces in
the system, they are all compiled into a single binary and run in a single
process.
These controllers include:
* Node Controller
* Responsible for noticing & responding when nodes go down.
* Replication Controller
* Responsible for maintaining the correct number of pods for every replication
controller object in the system.
* Endpoints Controller
* Populates the Endpoints object (i.e., join Services & Pods).
* Service Account & Token Controllers
* Create default accounts and API access tokens for new namespaces.
* ... and others.
### kube-scheduler
[kube-scheduler](kube-scheduler.md) watches newly created pods that have no node assigned, and
selects a node for them to run on.
### addons
Addons are pods and services that implement cluster features. They don't run on
the master VM, but currently the default setup scripts that make the API calls
to create these pods and services does run on the master VM. See:
[kube-master-addons](../../cluster/saltbase/salt/kube-master-addons/kube-master-addons.sh)
Addon objects are created in the "kube-system" namespace.
Example addons are:
* [DNS](../../cluster/addons/dns/) provides cluster local DNS.
* [kube-ui](../../cluster/addons/kube-ui/) provides a graphical UI for the
cluster.
* [fluentd-elasticsearch](../../cluster/addons/fluentd-elasticsearch) provides
log storage. Also see the [gcp version](../../cluster/addons/fluentd-gcp).
* [cluster-monitoring](../../cluster/addons/cluster-monitoring) provides
monitoring for the cluster.
## Node components
Node components run on every node, maintaining running pods and providing them
the Kubernetes runtime environment.
### kubelet
[kubelet](kubelet.md) is the primary node agent. It:
* Watches for pods that have been assigned to its node (either by apiserver or
or via local configuration file) and:
* Mounts the pod's required volumes
* Downloads the pod's secrets
* Run the pod's containers via docker (or, experimentally, rkt).
* Periodically executes any requested container liveness probes.
* Reports the status of the pod back to the rest of the system, by creating a
"mirror pod" if necessary.
* Reports the status of the node back to the rest of the system.
### kube-proxy
[kube-proxy](kube-proxy.md) enables the Kubernetes service abstraction by maintaining
network rules on the host and performing connection forwarding.
### docker
```
docker
``` is of course used for actually running containers.
### rkt
```
rkt
``` is supported experimentally as an alternative to docker.
### monit
```
monit
```
is a lightweight process babysitting system for keeping kubelet and docker
running.
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
[

]()
<!-- END MUNGE: GENERATED_ANALYTICS -->
docs/kube-apiserver.md
→
docs/
admin/
kube-apiserver.md
View file @
04495ce5
...
@@ -20,7 +20,7 @@ refer to the docs that go with that version.
...
@@ -20,7 +20,7 @@ refer to the docs that go with that version.
<strong>
<strong>
The latest 1.0.x release of this document can be found
The latest 1.0.x release of this document can be found
[
here
](
http://releases.k8s.io/release-1.0/docs/kube-apiserver.md
)
.
[
here
](
http://releases.k8s.io/release-1.0/docs/
admin/
kube-apiserver.md
)
.
Documentation for other releases can be found at
Documentation for other releases can be found at
[
releases.k8s.io
](
http://releases.k8s.io
)
.
[
releases.k8s.io
](
http://releases.k8s.io
)
.
...
@@ -104,5 +104,5 @@ cluster's shared state through which all other components interact.
...
@@ -104,5 +104,5 @@ cluster's shared state through which all other components interact.
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
[

]()
[

]()
<!-- END MUNGE: GENERATED_ANALYTICS -->
<!-- END MUNGE: GENERATED_ANALYTICS -->
docs/kube-controller-manager.md
→
docs/
admin/
kube-controller-manager.md
View file @
04495ce5
...
@@ -20,7 +20,7 @@ refer to the docs that go with that version.
...
@@ -20,7 +20,7 @@ refer to the docs that go with that version.
<strong>
<strong>
The latest 1.0.x release of this document can be found
The latest 1.0.x release of this document can be found
[
here
](
http://releases.k8s.io/release-1.0/docs/kube-controller-manager.md
)
.
[
here
](
http://releases.k8s.io/release-1.0/docs/
admin/
kube-controller-manager.md
)
.
Documentation for other releases can be found at
Documentation for other releases can be found at
[
releases.k8s.io
](
http://releases.k8s.io
)
.
[
releases.k8s.io
](
http://releases.k8s.io
)
.
...
@@ -82,5 +82,5 @@ controller, and serviceaccounts controller.
...
@@ -82,5 +82,5 @@ controller, and serviceaccounts controller.
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
[

]()
[

]()
<!-- END MUNGE: GENERATED_ANALYTICS -->
<!-- END MUNGE: GENERATED_ANALYTICS -->
docs/kube-proxy.md
→
docs/
admin/
kube-proxy.md
View file @
04495ce5
...
@@ -20,7 +20,7 @@ refer to the docs that go with that version.
...
@@ -20,7 +20,7 @@ refer to the docs that go with that version.
<strong>
<strong>
The latest 1.0.x release of this document can be found
The latest 1.0.x release of this document can be found
[
here
](
http://releases.k8s.io/release-1.0/docs/kube-proxy.md
)
.
[
here
](
http://releases.k8s.io/release-1.0/docs/
admin/
kube-proxy.md
)
.
Documentation for other releases can be found at
Documentation for other releases can be found at
[
releases.k8s.io
](
http://releases.k8s.io
)
.
[
releases.k8s.io
](
http://releases.k8s.io
)
.
...
@@ -64,5 +64,5 @@ with the apiserver API to configure the proxy.
...
@@ -64,5 +64,5 @@ with the apiserver API to configure the proxy.
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
[

]()
[

]()
<!-- END MUNGE: GENERATED_ANALYTICS -->
<!-- END MUNGE: GENERATED_ANALYTICS -->
docs/kube-scheduler.md
→
docs/
admin/
kube-scheduler.md
View file @
04495ce5
...
@@ -20,7 +20,7 @@ refer to the docs that go with that version.
...
@@ -20,7 +20,7 @@ refer to the docs that go with that version.
<strong>
<strong>
The latest 1.0.x release of this document can be found
The latest 1.0.x release of this document can be found
[
here
](
http://releases.k8s.io/release-1.0/docs/kube-scheduler.md
)
.
[
here
](
http://releases.k8s.io/release-1.0/docs/
admin/
kube-scheduler.md
)
.
Documentation for other releases can be found at
Documentation for other releases can be found at
[
releases.k8s.io
](
http://releases.k8s.io
)
.
[
releases.k8s.io
](
http://releases.k8s.io
)
.
...
@@ -63,5 +63,5 @@ through the API as necessary.
...
@@ -63,5 +63,5 @@ through the API as necessary.
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
[

]()
[

]()
<!-- END MUNGE: GENERATED_ANALYTICS -->
<!-- END MUNGE: GENERATED_ANALYTICS -->
docs/kubelet.md
→
docs/
admin/
kubelet.md
View file @
04495ce5
...
@@ -20,7 +20,7 @@ refer to the docs that go with that version.
...
@@ -20,7 +20,7 @@ refer to the docs that go with that version.
<strong>
<strong>
The latest 1.0.x release of this document can be found
The latest 1.0.x release of this document can be found
[
here
](
http://releases.k8s.io/release-1.0/docs/kubelet.md
)
.
[
here
](
http://releases.k8s.io/release-1.0/docs/
admin/
kubelet.md
)
.
Documentation for other releases can be found at
Documentation for other releases can be found at
[
releases.k8s.io
](
http://releases.k8s.io
)
.
[
releases.k8s.io
](
http://releases.k8s.io
)
.
...
@@ -120,5 +120,5 @@ HTTP server: The kubelet can also listen for HTTP and respond to a simple API
...
@@ -120,5 +120,5 @@ HTTP server: The kubelet can also listen for HTTP and respond to a simple API
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
[

]()
[

]()
<!-- END MUNGE: GENERATED_ANALYTICS -->
<!-- END MUNGE: GENERATED_ANALYTICS -->
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