mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-08 04:32:37 +00:00
automated link fixes
This commit is contained in:
@@ -17,7 +17,7 @@ certainly want the docs that go with that version.</h1>
|
||||
## Pods
|
||||
The first atom of Kubernetes is a _pod_. A pod is a collection of containers that are symbiotically grouped.
|
||||
|
||||
See [pods](../../docs/pods.md) for more details.
|
||||
See [pods](../../../docs/user-guide/pods.md) for more details.
|
||||
|
||||
### Intro
|
||||
|
||||
@@ -36,7 +36,7 @@ spec:
|
||||
|
||||
A pod definition is a declaration of a _desired state_. Desired state is a very important concept in the Kubernetes model. Many things present a desired state to the system, and it is Kubernetes' responsibility to make sure that the current state matches the desired state. For example, when you create a Pod, you declare that you want the containers in it to be running. If the containers happen to not be running (e.g. program failure, ...), Kubernetes will continue to (re-)create them for you in order to drive them to the desired state. This process continues until you delete the Pod.
|
||||
|
||||
See the [design document](../../DESIGN.md) for more details.
|
||||
See the [design document](../../../DESIGN.md) for more details.
|
||||
|
||||
### Volumes
|
||||
|
||||
@@ -80,7 +80,7 @@ In Kubernetes, ```emptyDir``` Volumes live for the lifespan of the Pod, which is
|
||||
|
||||
If you want to mount a directory that already exists in the file system (e.g. ```/var/logs```) you can use the ```hostPath``` directive.
|
||||
|
||||
See [volumes](../../docs/volumes.md) for more details.
|
||||
See [volumes](../../../docs/user-guide/volumes.md) for more details.
|
||||
|
||||
### Multiple Containers
|
||||
|
||||
@@ -123,9 +123,9 @@ Finally, we have also introduced an environment variable to the ```git-monitor``
|
||||
|
||||
### What's next?
|
||||
Continue on to [Kubernetes 201](k8s201.md) or
|
||||
for a complete application see the [guestbook example](../guestbook/README.md)
|
||||
for a complete application see the [guestbook example](../../../examples/guestbook/README.md)
|
||||
|
||||
|
||||
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
|
||||
[]()
|
||||
[]()
|
||||
<!-- END MUNGE: GENERATED_ANALYTICS -->
|
||||
|
@@ -26,13 +26,13 @@ Having already learned about Pods and how to create them, you may be struck by a
|
||||
kubectl get pods -l name=nginx
|
||||
```
|
||||
|
||||
Lists all pods who name label matches 'nginx'. Labels are discussed in detail [elsewhere](../../docs/labels.md), but they are a core concept for two additional building blocks for Kubernetes, Replication Controllers and Services
|
||||
Lists all pods who name label matches 'nginx'. Labels are discussed in detail [elsewhere](../../../docs/user-guide/labels.md), but they are a core concept for two additional building blocks for Kubernetes, Replication Controllers and Services
|
||||
|
||||
### Replication Controllers
|
||||
|
||||
OK, now you have an awesome, multi-container, labelled pod and you want to use it to build an application, you might be tempted to just start building a whole bunch of individual pods, but if you do that, a whole host of operational concerns pop up. For example: how will you scale the number of pods up or down and how will you ensure that all pods are homogenous?
|
||||
|
||||
Replication controllers are the objects to answer these questions. A replication controller combines a template for pod creation (a "cookie-cutter" if you will) and a number of desired replicas, into a single Kubernetes object. The replication controller also contains a label selector that identifies the set of objects managed by the replication controller. The replication controller constantly measures the size of this set relative to the desired size, and takes action by creating or deleting pods. The design of replication controllers is discussed in detail [elsewhere](../../docs/replication-controller.md).
|
||||
Replication controllers are the objects to answer these questions. A replication controller combines a template for pod creation (a "cookie-cutter" if you will) and a number of desired replicas, into a single Kubernetes object. The replication controller also contains a label selector that identifies the set of objects managed by the replication controller. The replication controller constantly measures the size of this set relative to the desired size, and takes action by creating or deleting pods. The design of replication controllers is discussed in detail [elsewhere](../../../docs/user-guide/replication-controller.md).
|
||||
|
||||
An example replication controller that instantiates two pods running nginx looks like:
|
||||
```yaml
|
||||
@@ -85,7 +85,7 @@ spec:
|
||||
name: nginx
|
||||
```
|
||||
|
||||
When created, each service is assigned a unique IP address. This address is tied to the lifespan of the Service, and will not change while the Service is alive. Pods can be configured to talk to the service, and know that communication to the service will be automatically load-balanced out to some pod that is a member of the set identified by the label selector in the Service. Services are described in detail [elsewhere](../../docs/services.md).
|
||||
When created, each service is assigned a unique IP address. This address is tied to the lifespan of the Service, and will not change while the Service is alive. Pods can be configured to talk to the service, and know that communication to the service will be automatically load-balanced out to some pod that is a member of the set identified by the label selector in the Service. Services are described in detail [elsewhere](../../../docs/user-guide/services.md).
|
||||
|
||||
### Health Checking
|
||||
When I write code it never crashes, right? Sadly the [kubernetes issues list](https://github.com/GoogleCloudPlatform/kubernetes/issues) indicates otherwise...
|
||||
@@ -162,9 +162,9 @@ spec:
|
||||
```
|
||||
|
||||
### What's next?
|
||||
For a complete application see the [guestbook example](../guestbook/).
|
||||
For a complete application see the [guestbook example](../../../examples/guestbook/).
|
||||
|
||||
|
||||
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
|
||||
[]()
|
||||
[]()
|
||||
<!-- END MUNGE: GENERATED_ANALYTICS -->
|
||||
|
Reference in New Issue
Block a user