Skip to content

Commit 455f312

Browse files
authored
Merge branch 'master' into dev-1.15
2 parents f04d0cf + 0e1e971 commit 455f312

File tree

33 files changed

+463
-307
lines changed

33 files changed

+463
-307
lines changed

content/en/docs/concepts/cluster-administration/addons.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ Add-ons in each section are sorted alphabetically - the ordering does not imply
4444
* [Dashboard](https://github.com/kubernetes/dashboard#kubernetes-dashboard) is a dashboard web interface for Kubernetes.
4545
* [Weave Scope](https://www.weave.works/documentation/scope-latest-installing/#k8s) is a tool for graphically visualizing your containers, pods, services etc. Use it in conjunction with a [Weave Cloud account](https://cloud.weave.works/) or host the UI yourself.
4646

47+
## Infrastructure
48+
49+
* [KubeVirt](https://kubevirt.io/user-guide/docs/latest/administration/intro.html#cluster-side-add-on-deployment) is an add-on to run virtual machines on Kubernetes. Usually run on bare-metal clusters.
50+
4751
## Legacy Add-ons
4852

4953
There are several other add-ons documented in the deprecated [cluster/addons](https://git.k8s.io/kubernetes/cluster/addons) directory.

content/en/docs/concepts/configuration/manage-compute-resources-container.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,10 @@ You can check node capacities and amounts allocated with the
212212
`kubectl describe nodes` command. For example:
213213
214214
```shell
215-
kubectl describe nodes e2e-test-minion-group-4lw4
215+
kubectl describe nodes e2e-test-node-pool-4lw4
216216
```
217217
```
218-
Name: e2e-test-minion-group-4lw4
218+
Name: e2e-test-node-pool-4lw4
219219
[ ... lines removed for clarity ...]
220220
Capacity:
221221
cpu: 2

content/en/docs/concepts/overview/what-is-kubernetes.md

Lines changed: 59 additions & 178 deletions
Large diffs are not rendered by default.

content/en/docs/concepts/overview/working-with-objects/common-labels.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ kind: StatefulSet
144144
metadata:
145145
labels:
146146
app.kubernetes.io/name: mysql
147-
app.kubernetes.io/instance: wordpress-abcxzy
147+
app.kubernetes.io/instance: mysql-abcxzy
148148
app.kubernetes.io/managed-by: helm
149149
app.kubernetes.io/component: database
150150
app.kubernetes.io/part-of: wordpress
@@ -160,7 +160,7 @@ kind: Service
160160
metadata:
161161
labels:
162162
app.kubernetes.io/name: mysql
163-
app.kubernetes.io/instance: wordpress-abcxzy
163+
app.kubernetes.io/instance: mysql-abcxzy
164164
app.kubernetes.io/managed-by: helm
165165
app.kubernetes.io/component: database
166166
app.kubernetes.io/part-of: wordpress
@@ -170,4 +170,4 @@ metadata:
170170

171171
With the MySQL `StatefulSet` and `Service` you'll notice information about both MySQL and Wordpress, the broader application, are included.
172172

173-
{{% /capture %}}
173+
{{% /capture %}}

content/en/docs/concepts/overview/working-with-objects/names.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,21 @@ See the [identifiers design doc](https://git.k8s.io/community/contributors/desig
2626

2727
By convention, the names of Kubernetes resources should be up to maximum length of 253 characters and consist of lower case alphanumeric characters, `-`, and `.`, but certain resources have more specific restrictions.
2828

29+
For example, here’s the configuration file with a Pod name as `nginx-demo` and a Container name as `nginx`:
30+
31+
```yaml
32+
apiVersion: v1
33+
kind: Pod
34+
metadata:
35+
name: nginx-demo
36+
spec:
37+
containers:
38+
- name: nginx
39+
image: nginx:1.7.9
40+
ports:
41+
- containerPort: 80
42+
```
43+
2944
## UIDs
3045
3146
{{< glossary_definition term_id="uid" length="all" >}}

content/en/docs/concepts/policy/pod-security-policy.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,10 @@ spec:
485485
minimum value of the first range as the default. Validates against all ranges.
486486
- *MustRunAsNonRoot* - Requires that the pod be submitted with a non-zero
487487
`runAsUser` or have the `USER` directive defined (using a numeric UID) in the
488-
image. No default provided. Setting `allowPrivilegeEscalation=false` is strongly
489-
recommended with this strategy.
488+
image. Pods which have specified neither `runAsNonRoot` nor `runAsUser` settings
489+
will be mutated to set `runAsNonRoot=true`, thus requiring a defined non-zero
490+
numeric `USER` directive in the container. No default provided. Setting
491+
`allowPrivilegeEscalation=false` is strongly recommended with this strategy.
490492
- *RunAsAny* - No default provided. Allows any `runAsUser` to be specified.
491493

492494
**RunAsGroup** - Controls which primary group ID the containers are run with.

content/en/docs/concepts/policy/resource-quotas.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,8 @@ The following resource types are supported:
6666

6767
| Resource Name | Description |
6868
| --------------------- | ----------------------------------------------------------- |
69-
| `cpu` | Across all pods in a non-terminal state, the sum of CPU requests cannot exceed this value. |
7069
| `limits.cpu` | Across all pods in a non-terminal state, the sum of CPU limits cannot exceed this value. |
7170
| `limits.memory` | Across all pods in a non-terminal state, the sum of memory limits cannot exceed this value. |
72-
| `memory` | Across all pods in a non-terminal state, the sum of memory requests cannot exceed this value. |
7371
| `requests.cpu` | Across all pods in a non-terminal state, the sum of CPU requests cannot exceed this value. |
7472
| `requests.memory` | Across all pods in a non-terminal state, the sum of memory requests cannot exceed this value. |
7573

content/en/docs/concepts/services-networking/dns-pod-service.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ For more up-to-date specification, see
4141
### A records
4242

4343
"Normal" (not headless) Services are assigned a DNS A record for a name of the
44-
form `my-svc.my-namespace.svc.cluster.local`. This resolves to the cluster IP
44+
form `my-svc.my-namespace.svc.cluster-domain.example`. This resolves to the cluster IP
4545
of the Service.
4646

4747
"Headless" (without a cluster IP) Services are also assigned a DNS A record for
48-
a name of the form `my-svc.my-namespace.svc.cluster.local`. Unlike normal
48+
a name of the form `my-svc.my-namespace.svc.cluster-domain.example`. Unlike normal
4949
Services, this resolves to the set of IPs of the pods selected by the Service.
5050
Clients are expected to consume the set or else use standard round-robin
5151
selection from the set.
@@ -55,12 +55,12 @@ selection from the set.
5555
SRV Records are created for named ports that are part of normal or [Headless
5656
Services](/docs/concepts/services-networking/service/#headless-services).
5757
For each named port, the SRV record would have the form
58-
`_my-port-name._my-port-protocol.my-svc.my-namespace.svc.cluster.local`.
58+
`_my-port-name._my-port-protocol.my-svc.my-namespace.svc.cluster-domain.example`.
5959
For a regular service, this resolves to the port number and the domain name:
60-
`my-svc.my-namespace.svc.cluster.local`.
60+
`my-svc.my-namespace.svc.cluster-domain.example`.
6161
For a headless service, this resolves to multiple answers, one for each pod
6262
that is backing the service, and contains the port number and the domain name of the pod
63-
of the form `auto-generated-name.my-svc.my-namespace.svc.cluster.local`.
63+
of the form `auto-generated-name.my-svc.my-namespace.svc.cluster-domain.example`.
6464

6565
## Pods
6666

@@ -76,7 +76,7 @@ the hostname of the pod. For example, given a Pod with `hostname` set to
7676
The Pod spec also has an optional `subdomain` field which can be used to specify
7777
its subdomain. For example, a Pod with `hostname` set to "`foo`", and `subdomain`
7878
set to "`bar`", in namespace "`my-namespace`", will have the fully qualified
79-
domain name (FQDN) "`foo.bar.my-namespace.svc.cluster.local`".
79+
domain name (FQDN) "`foo.bar.my-namespace.svc.cluster-domain.example`".
8080

8181
Example:
8282

@@ -133,7 +133,7 @@ record for the Pod's fully qualified hostname.
133133
For example, given a Pod with the hostname set to "`busybox-1`" and the subdomain set to
134134
"`default-subdomain`", and a headless Service named "`default-subdomain`" in
135135
the same namespace, the pod will see its own FQDN as
136-
"`busybox-1.default-subdomain.my-namespace.svc.cluster.local`". DNS serves an
136+
"`busybox-1.default-subdomain.my-namespace.svc.cluster-domain.example`". DNS serves an
137137
A record at that name, pointing to the Pod's IP. Both pods "`busybox1`" and
138138
"`busybox2`" can have their distinct A records.
139139

@@ -143,7 +143,7 @@ along with its IP.
143143
{{< note >}}
144144
Because A records are not created for Pod names, `hostname` is required for the Pod's A
145145
record to be created. A Pod with no `hostname` but with `subdomain` will only create the
146-
A record for the headless service (`default-subdomain.my-namespace.svc.cluster.local`),
146+
A record for the headless service (`default-subdomain.my-namespace.svc.cluster-domain.example`),
147147
pointing to the Pod's IP address. Also, Pod needs to become ready in order to have a
148148
record unless `publishNotReadyAddresses=True` is set on the Service.
149149
{{< /note >}}
@@ -234,7 +234,7 @@ in its `/etc/resolv.conf` file:
234234

235235
```
236236
nameserver 1.2.3.4
237-
search ns1.svc.cluster.local my.dns.search.suffix
237+
search ns1.svc.cluster-domain.example my.dns.search.suffix
238238
options ndots:2 edns0
239239
```
240240

@@ -246,7 +246,7 @@ kubectl exec -it dns-example -- cat /etc/resolv.conf
246246
The output is similar to this:
247247
```shell
248248
nameserver fd00:79:30::a
249-
search default.svc.cluster.local svc.cluster.local cluster.local
249+
search default.svc.cluster-domain.example svc.cluster-domain.example cluster-domain.example
250250
options ndots:5
251251
```
252252

content/en/docs/concepts/services-networking/ingress-controllers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ within a cluster. When you create an ingress, you should annotate each ingress w
5555
[`ingress.class`](https://git.k8s.io/ingress-gce/docs/faq/README.md#how-do-i-run-multiple-ingress-controllers-in-the-same-cluster)
5656
to indicate which ingress controller should be used if more than one exists within your cluster.
5757

58-
If you do not define a class, your cloud provider may use a default ingress provider.
58+
If you do not define a class, your cloud provider may use a default ingress controller.
5959

6060
Ideally, all ingress controllers should fulfill this specification, but the various ingress
6161
controllers operate slightly differently.

content/en/docs/concepts/workloads/controllers/jobs-run-to-completion.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,13 @@ allows you to still view the logs of completed pods to check for errors, warning
230230
The job object also remains after it is completed so that you can view its status. It is up to the user to delete
231231
old jobs after noting their status. Delete the job with `kubectl` (e.g. `kubectl delete jobs/pi` or `kubectl delete -f ./job.yaml`). When you delete the job using `kubectl`, all the pods it created are deleted too.
232232

233-
By default, a Job will run uninterrupted unless a Pod fails, at which point the Job defers to the
234-
`.spec.backoffLimit` described above. Another way to terminate a Job is by setting an active deadline.
235-
Do this by setting the `.spec.activeDeadlineSeconds` field of the Job to a number of seconds.
233+
By default, a Job will run uninterrupted unless a Pod fails (`restartPolicy=Never`) or a Container exits in error (`restartPolicy=OnFailure`), at which point the Job defers to the
234+
`.spec.backoffLimit` described above. Once `.spec.backoffLimit` has been reached the Job will be marked as failed and any running Pods will be terminated.
236235

236+
Another way to terminate a Job is by setting an active deadline.
237+
Do this by setting the `.spec.activeDeadlineSeconds` field of the Job to a number of seconds.
237238
The `activeDeadlineSeconds` applies to the duration of the job, no matter how many Pods are created.
238-
Once a Job reaches `activeDeadlineSeconds`, all of its Pods are terminated and the Job status will become `type: Failed` with `reason: DeadlineExceeded`.
239+
Once a Job reaches `activeDeadlineSeconds`, all of its running Pods are terminated and the Job status will become `type: Failed` with `reason: DeadlineExceeded`.
239240

240241
Note that a Job's `.spec.activeDeadlineSeconds` takes precedence over its `.spec.backoffLimit`. Therefore, a Job that is retrying one or more failed Pods will not deploy additional Pods once it reaches the time limit specified by `activeDeadlineSeconds`, even if the `backoffLimit` is not yet reached.
241242

0 commit comments

Comments
 (0)