Skip to content

Commit 038cccf

Browse files
authored
Merge pull request #13598 from mburke5678/nodes-remove-docker
Removing references to Docker from Nodes topics
2 parents 6dbadb7 + 057de9b commit 038cccf

17 files changed

+184
-267
lines changed

modules/nodes-cluster-overcommit-node-resources.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
To provide more reliable scheduling and minimize node resource overcommitment,
1010
each node can reserve a portion of its resources for use by system daemons
11-
that are required to run on your node for your cluster to function (*sshd*, *docker*, etc.).
11+
that are required to run on your node for your cluster to function (*sshd*, etc.).
1212
In particular, it is recommended that you reserve resources for incompressible resources such as memory.
1313

1414
.Procedure

modules/nodes-containers-using-about.adoc

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,6 @@ as a web server or a database, though containers can be used for arbitrary
1717
workloads.
1818

1919
The Linux kernel has been incorporating capabilities for container technologies
20-
for years. More recently the Docker project has developed a convenient
21-
management interface for Linux containers on a host. {product-title} and
22-
Kubernetes add the ability to orchestrate Docker-formatted containers across
20+
for years. {product-title} and
21+
Kubernetes add the ability to orchestrate containers across
2322
multi-host installations.
24-
25-
Though you do not directly interact with the Docker CLI or service when using
26-
{product-title}, understanding their capabilities and terminology is
27-
important for understanding their role in {product-title} and how your
28-
applications function inside of containers. The *docker* RPM is available
29-
as part of RHEL 7, as well as CentOS and Fedora, so you can
30-
experiment with it separately from {product-title}. Refer to the article
31-
link:https://access.redhat.com/articles/881893[Get Started with Docker Formatted Container Images on Red Hat Systems] for a guided introduction.
32-

modules/nodes-nodes-garbage-collection-containers.adoc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,6 @@ the `*maximum-dead-containers*` limit.
5959
When the node removes the dead containers, all files inside those containers are
6060
removed as well. Only containers created by the node are removed.
6161

62-
ifdef::openshift-origin[]
63-
[NOTE]
64-
====
65-
Currently, Docker and rkt are supported. The following only applies to Docker;
66-
rkt has its own garbage collection.
67-
====
68-
endif::[]
69-
7062
Each spin of the garbage collector loop goes through the following steps:
7163

7264
1. Retrieve a list of available containers.

modules/nodes-nodes-modifying-maximum.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ maximum number of pods that can be scheduled to a node: `pods-per-core` and
2020
`max-pods`. When both options are in use, the lower of the two limits the number
2121
of pods on a node. Exceeding these values can result in:
2222

23-
* Increased CPU utilization on both {product-title} and Docker.
23+
* Increased CPU utilization on {product-title}.
2424
* Slow pod scheduling.
2525
* Potential out-of-memory scenarios (depends on the amount of memory in the node).
2626
* Exhausting the pool of IP addresses.
27-
* Resource overcommitting, leading to poor user application performance.
27+
// * Resource overcommitting, leading to poor user application performance.
2828

2929
[NOTE]
3030
====

modules/nodes-nodes-problem-detector-about.adoc

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,6 @@ status: false
5454
type: KernelDeadLock
5555
----
5656

57-
.Sample output for KernelDeadLock condition
58-
[source,bash]
59-
----
60-
message: task docker:1234 blocked for more than 120 seconds
61-
reason: DockerHung
62-
status: true
63-
type: KernelDeadLock
64-
----
65-
6657
This example shows output from the Node Problem Detector watching for events on a node.
6758
The following command uses `oc get event` against the *default* project watching for
6859
events listed in the `kernel-monitor.json` section of the Node Problem Detector configuration map.
@@ -76,7 +67,6 @@ events listed in the `kernel-monitor.json` section of the Node Problem Detector
7667
[source,bash]
7768
----
7869
LAST SEEN FIRST SEEN COUNT NAME KIND SUBOBJECT TYPE REASON SOURCE MESSAGE
79-
2018-06-27 09:08:27 -0400 EDT 2018-06-27 09:08:27 -0400 EDT 1 my-node1 node Warning TaskHunk kernel-monitor.my-node1 docker:1234 blocked for more than 300 seconds
8070
2018-06-27 09:08:27 -0400 EDT 2018-06-27 09:08:27 -0400 EDT 3 my-node2 node Warning KernelOops kernel-monitor.my-node2 BUG: unable to handle kernel NULL pointer deference at nowhere
8171
2018-06-27 09:08:27 -0400 EDT 2018-06-27 09:08:27 -0400 EDT 1 my-node1 node Warning KernelOops kernel-monitor.my-node2 divide error 0000 [#0] SMP
8272
----

modules/nodes-nodes-problem-detector-customizing.adoc

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,7 @@ kind: ConfigMap
2626
metadata:
2727
name: node-problem-detector
2828
data:
29-
docker-monitor.json: | <1>
30-
{
31-
"plugin": "journald", <2>
32-
"pluginConfig": {
33-
"source": "docker"
34-
},
35-
"logPath": "/host/log/journal", <3>
36-
"lookback": "5m",
37-
"bufferSize": 10,
38-
"source": "docker-monitor",
39-
"conditions": [],
40-
"rules": [ <4>
41-
{
42-
"type": "temporary", <5>
43-
"reason": "CorruptDockerImage", <6>
44-
"pattern": "Error trying v2 registry: failed to register layer: rename /var/lib/docker/image/(.+) /var/lib/docker/image/(.+): directory not empty.*" <7>
45-
}
46-
]
47-
}
48-
kernel-monitor.json: | <8>
29+
kernel-monitor.json: | <8>
4930
{
5031
"plugin": "journald", <2>
5132
"pluginConfig": {
@@ -94,12 +75,6 @@ data:
9475
"reason": "AUFSUmountHung",
9576
"pattern": "task umount\\.aufs:\\w+ blocked for more than \\w+ seconds\\."
9677
},
97-
{
98-
"type": "permanent",
99-
"condition": "KernelDeadlock",
100-
"reason": "DockerHung",
101-
"pattern": "task docker:\\w+ blocked for more than \\w+ seconds\\."
102-
}
10378
]
10479
}
10580
----
@@ -161,7 +136,7 @@ spec:
161136
- node-problem-detector
162137
- --alsologtostderr=true <1>
163138
- --log_dir="/tmp" <2>
164-
- --system-log-monitors=/etc/npd/kernel-monitor.json,/etc/npd/docker-monitor.json <3>
139+
- --system-log-monitors=/etc/npd/kernel-monitor.json <3>
165140
----
166141
+
167142
<1> Sends the output to standard output (stdout).

modules/nodes-nodes-problem-detector-verifying.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ I0416 23:22:00.641354 1 log_monitor.go:63] Finish parsing log monitor conf
5353
+
5454
[source,bash]
5555
----
56-
# echo "kernel: task docker:7 blocked for more than 300 seconds." >> /dev/kmsg
56+
# echo "kernel: task blocked for more than 300 seconds." >> /dev/kmsg
5757
----
5858

modules/nodes-nodes-rebooting-affinity.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spec:
3333
podAffinityTerm:
3434
labelSelector:
3535
matchExpressions:
36-
- key: docker-registry <4>
36+
- key: registry <4>
3737
operator: In <5>
3838
values:
3939
- default
@@ -46,7 +46,7 @@ spec:
4646
<5> The operator represents the relationship between the label on the existing pod and the set of values in the `matchExpression` parameters in the specification for the new pod. Can be `In`, `NotIn`, `Exists`, or `DoesNotExist`.
4747
+
4848
This example assumes the container image registry pod has a label of
49-
`*docker-registry=default*`. Pod anti-affinity can use any Kubernetes match
49+
`*registry=default*`. Pod anti-affinity can use any Kubernetes match
5050
expression.
5151

5252
. Enable the `*MatchInterPodAffinity*` scheduler predicate in *_/etc/origin/master/scheduler.json_*. See _Default Scheduling_.

modules/nodes-nodes-viewing-listing.adoc

Lines changed: 74 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,11 @@ node1.example.com Ready compute 7h v1.9.1+a0ce1bc657
1818
node2.example.com Ready compute 7h v1.9.1+a0ce1bc657
1919
----
2020

21-
* The `-wide` option provides provides additional information on all nodes:
21+
* The `-wide` option provides provides additional information on all nodes.
2222
+
2323
[source,bash]
2424
----
2525
$ oc get nodes -o wide
26-
NAME STATUS ROLES AGE VERSION EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
27-
ip-172-18-0-39.ec2.internal Ready infra 1d v1.10.0+b81c8f8 54.172.185.130 Red Hat Enterprise Linux Server 7.5 (Maipo) 3.10.0-862.el7.x86_64 docker://1.13.1
28-
ip-172-18-10-95.ec2.internal Ready master 1d v1.10.0+b81c8f8 54.88.22.81 Red Hat Enterprise Linux Server 7.5 (Maipo) 3.10.0-862.el7.x86_64 docker://1.13.1
29-
ip-172-18-8-35.ec2.internal Ready compute 1d v1.10.0+b81c8f8 34.230.50.57 Red Hat Enterprise Linux Server 7.5 (Maipo) 3.10.0-862.el7.x86_64 docker://1.13.1
3026
----
3127

3228
* The following command lists information about a single node:
@@ -66,79 +62,90 @@ $ oc describe node <node>
6662
+
6763
For example:
6864
+
69-
[source,bash]
65+
[source,bash,options="nowrap"]
7066
----
7167
$ oc describe node node1.example.com
7268
7369
Name: node1.example.com <1>
74-
Roles: compute <2>
75-
Labels: beta.kubernetes.io/arch=amd64 <3>
70+
Roles: worker <2>
71+
Labels: beta.kubernetes.io/arch=amd64 <3>
72+
beta.kubernetes.io/instance-type=m4.large
7673
beta.kubernetes.io/os=linux
77-
kubernetes.io/hostname=m01.example.com
78-
node-role.kubernetes.io/compute=true
79-
node-role.kubernetes.io/infra=true
80-
node-role.kubernetes.io/master=true
81-
zone=default
82-
Annotations: volumes.kubernetes.io/controller-managed-attach-detach=true <4>
83-
CreationTimestamp: Thu, 24 May 2018 11:46:56 -0400
84-
Taints: <none> <5>
74+
failure-domain.beta.kubernetes.io/region=us-east-2
75+
failure-domain.beta.kubernetes.io/zone=us-east-2a
76+
kubernetes.io/hostname=ip-10-0-140-16
77+
node-role.kubernetes.io/worker=
78+
Annotations: cluster.k8s.io/machine: openshift-cluster-api/ahardin-worker-us-east-2a-q5dzc <4>
79+
machineconfiguration.openshift.io/currentConfig: worker-309c228e8b3a92e2235edd544c62fea8
80+
machineconfiguration.openshift.io/desiredConfig: worker-309c228e8b3a92e2235edd544c62fea8
81+
machineconfiguration.openshift.io/state: Done
82+
volumes.kubernetes.io/controller-managed-attach-detach: true
83+
CreationTimestamp: Wed, 13 Feb 2019 11:05:57 -0500
84+
Taints: <none> <5>
8585
Unschedulable: false
86-
Conditions: <6>
86+
Conditions: <6>
8787
Type Status LastHeartbeatTime LastTransitionTime Reason Message
8888
---- ------ ----------------- ------------------ ------ -------
89-
OutOfDisk False Tue, 17 Jul 2018 11:47:30 -0400 Tue, 10 Jul 2018 15:45:16 -0400 KubeletHasSufficientDisk kubelet has sufficient disk space available
90-
MemoryPressure False Tue, 17 Jul 2018 11:47:30 -0400 Tue, 10 Jul 2018 15:45:16 -0400 KubeletHasSufficientMemory kubelet has sufficient memory available
91-
DiskPressure False Tue, 17 Jul 2018 11:47:30 -0400 Tue, 10 Jul 2018 16:03:54 -0400 KubeletHasNoDiskPressure kubelet has no disk pressure
92-
Ready True Tue, 17 Jul 2018 11:47:30 -0400 Mon, 16 Jul 2018 15:10:25 -0400 KubeletReady kubelet is posting ready status
93-
PIDPressure False Tue, 17 Jul 2018 11:47:30 -0400 Thu, 05 Jul 2018 10:06:51 -0400 KubeletHasSufficientPID kubelet has sufficient PID available
94-
Addresses: <7>
95-
InternalIP: 192.168.122.248
96-
Hostname: node1.example.com
97-
Capacity: <8>
98-
cpu: 2
99-
hugepages-2Mi: 0
100-
memory: 8010336Ki
101-
pods: 40
89+
OutOfDisk False Wed, 13 Feb 2019 15:09:42 -0500 Wed, 13 Feb 2019 11:05:57 -0500 KubeletHasSufficientDisk kubelet has sufficient disk space available
90+
MemoryPressure False Wed, 13 Feb 2019 15:09:42 -0500 Wed, 13 Feb 2019 11:05:57 -0500 KubeletHasSufficientMemory kubelet has sufficient memory available
91+
DiskPressure False Wed, 13 Feb 2019 15:09:42 -0500 Wed, 13 Feb 2019 11:05:57 -0500 KubeletHasNoDiskPressure kubelet has no disk pressure
92+
PIDPressure False Wed, 13 Feb 2019 15:09:42 -0500 Wed, 13 Feb 2019 11:05:57 -0500 KubeletHasSufficientPID kubelet has sufficient PID available
93+
Ready True Wed, 13 Feb 2019 15:09:42 -0500 Wed, 13 Feb 2019 11:07:09 -0500 KubeletReady kubelet is posting ready status
94+
Addresses: <7>
95+
InternalIP: 10.0.140.16
96+
InternalDNS: ip-10-0-140-16.us-east-2.compute.internal
97+
Hostname: ip-10-0-140-16.us-east-2.compute.internal
98+
Capacity: <8>
99+
attachable-volumes-aws-ebs: 39
100+
cpu: 2
101+
hugepages-1Gi: 0
102+
hugepages-2Mi: 0
103+
memory: 8172516Ki
104+
pods: 250
102105
Allocatable:
103-
cpu: 2
104-
hugepages-2Mi: 0
105-
memory: 7907936Ki
106-
pods: 40
107-
System Info: <9>
108-
Machine ID: b3adb9acbc49fc1f9a7d6
109-
System UUID: B3ADB9A-B0CB-C49FC1F9A7D6
110-
Boot ID: 9359d15aec9-81a20aef5876
111-
Kernel Version: 3.10.0-693.21.1.el7.x86_64
112-
OS Image: OpenShift Enterprise
113-
Operating System: linux
114-
Architecture: amd64
115-
Container Runtime Version: docker://1.13.1
116-
Kubelet Version: v1.10.0+b81c8f8
117-
Kube-Proxy Version: v1.10.0+b81c8f8
118-
ExternalID: node1.example.com
119-
Non-terminated Pods: (14 in total) <10>
120-
Namespace Name CPU Requests CPU Limits Memory Requests Memory Limits
121-
--------- ---- ------------ ---------- --------------- -------------
122-
default docker-registry-2-w252l 100m (5%) 0 (0%) 256Mi (3%) 0 (0%)
123-
default registry-console-2-dpnc9 0 (0%) 0 (0%) 0 (0%) 0 (0%)
124-
default router-2-5snb2 100m (5%) 0 (0%) 256Mi (3%) 0 (0%)
125-
kube-service-catalog apiserver-jh6gt 0 (0%) 0 (0%) 0 (0%) 0 (0%)
126-
kube-service-catalog controller-manager-z4t5j 0 (0%) 0 (0%) 0 (0%) 0 (0%)
127-
kube-system master-api-m01.example.com 0 (0%) 0 (0%) 0 (0%) 0 (0%)
128-
kube-system master-controllers-m01.example.com 0 (0%) 0 (0%) 0 (0%) 0 (0%)
129-
kube-system master-etcd-m01.example.com 0 (0%) 0 (0%) 0 (0%) 0 (0%)
130-
service-broker sb-1-hnn5t 0 (0%) 0 (0%) 0 (0%) 0 (0%)
131-
openshift-node sync-dvhvs 0 (0%) 0 (0%) 0 (0%) 0 (0%)
132-
openshift-sdn ovs-zjs5k 100m (5%) 200m (10%) 300Mi (3%) 400Mi (5%)
133-
openshift-sdn sdn-zr4cb 100m (5%) 0 (0%) 200Mi (2%) 0 (0%)
134-
openshift-template-service-broker apiserver-s9n7t 0 (0%) 0 (0%) 0 (0%) 0 (0%)
135-
openshift-web-console webconsole-785689b664-q7s9j 100m (5%) 0 (0%) 100Mi (1%) 0 (0%)
106+
attachable-volumes-aws-ebs: 39
107+
cpu: 1500m
108+
hugepages-1Gi: 0
109+
hugepages-2Mi: 0
110+
memory: 7558116Ki
111+
pods: 250
112+
System Info: <9>
113+
Machine ID: 63787c9534c24fde9a0cde35c13f1f66
114+
System UUID: EC22BF97-A006-4A58-6AF8-0A38DEEA122A
115+
Boot ID: f24ad37d-2594-46b4-8830-7f7555918325
116+
Kernel Version: 3.10.0-957.5.1.el7.x86_64
117+
OS Image: Red Hat CoreOS 4.0
118+
Operating System: linux
119+
Architecture: amd64
120+
Container Runtime Version: cri-o://1.12.5-2.rhaos4.0.gitd4191df.el7-dev
121+
Kubelet Version: v1.12.4+91d94b671b
122+
Kube-Proxy Version: v1.12.4+91d94b671b
123+
PodCIDR: 10.128.4.0/24
124+
ProviderID: aws:///us-east-2a/i-04e87b31dc6b3e171
125+
Non-terminated Pods: (13 in total) <10>
126+
Namespace Name CPU Requests CPU Limits Memory Requests Memory Limits
127+
--------- ---- ------------ ---------- --------------- -------------
128+
openshift-cluster-node-tuning-operator tuned-hdl5q 0 (0%) 0 (0%) 0 (0%) 0 (0%)
129+
openshift-dns dns-default-l69zr 0 (0%) 0 (0%) 0 (0%) 0 (0%)
130+
openshift-image-registry node-ca-9hmcg 0 (0%) 0 (0%) 0 (0%) 0 (0%)
131+
openshift-ingress router-default-76455c45c-c5ptv 0 (0%) 0 (0%) 0 (0%) 0 (0%)
132+
openshift-machine-config-operator machine-config-daemon-cvqw9 20m (1%) 0 (0%) 50Mi (0%) 0 (0%)
133+
openshift-marketplace community-operators-f67fh 0 (0%) 0 (0%) 0 (0%) 0 (0%)
134+
openshift-monitoring alertmanager-main-0 50m (3%) 50m (3%) 210Mi (2%) 10Mi (0%)
135+
openshift-monitoring grafana-78765ddcc7-hnjmm 100m (6%) 200m (13%) 100Mi (1%) 200Mi (2%)
136+
openshift-monitoring node-exporter-l7q8d 10m (0%) 20m (1%) 20Mi (0%) 40Mi (0%)
137+
openshift-monitoring prometheus-adapter-75d769c874-hvb85 0 (0%) 0 (0%) 0 (0%) 0 (0%)
138+
openshift-multus multus-kw8w5 0 (0%) 0 (0%) 0 (0%) 0 (0%)
139+
openshift-sdn ovs-t4dsn 100m (6%) 0 (0%) 300Mi (4%) 0 (0%)
140+
openshift-sdn sdn-g79hg 100m (6%) 0 (0%) 200Mi (2%) 0 (0%)
136141
Allocated resources:
137142
(Total limits may be over 100 percent, i.e., overcommitted.)
138-
CPU Requests CPU Limits Memory Requests Memory Limits
139-
------------ ---------- --------------- -------------
140-
500m (25%) 200m (10%) 1112Mi (14%) 400Mi (5%)
141-
Events:
143+
Resource Requests Limits
144+
-------- -------- ------
145+
cpu 380m (25%) 270m (18%)
146+
memory 880Mi (11%) 250Mi (3%)
147+
attachable-volumes-aws-ebs 0 0
148+
Events: <11>
142149
Type Reason Age From Message
143150
---- ------ ---- ---- -------
144151
Normal NodeHasSufficientPID 6d (x5 over 6d) kubelet, m01.example.com Node m01.example.com status is now: NodeHasSufficientPID

0 commit comments

Comments
 (0)