Skip to content

Commit d63933d

Browse files
authored
Merge pull request #24415 from sftim/20201007_remove_cluster_management_task
Remove cluster management task
2 parents 1e38b53 + 59dcd57 commit d63933d

File tree

11 files changed

+140
-241
lines changed

11 files changed

+140
-241
lines changed

content/en/blog/_posts/2019-04-16-pod-priority-and-preemption-in-kubernetes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Kubernetes is well-known for running scalable workloads. It scales your workload
1212

1313
## Guaranteed scheduling with controlled cost
1414

15-
[Kubernetes Cluster Autoscaler](https://kubernetes.io/docs/tasks/administer-cluster/cluster-management/#cluster-autoscaling) is an excellent tool in the ecosystem which adds more nodes to your cluster when your applications need them. However, cluster autoscaler has some limitations and may not work for all users:
15+
[Kubernetes Cluster Autoscaler](https://github.com/kubernetes/autoscaler/) is an excellent tool in the ecosystem which adds more nodes to your cluster when your applications need them. However, cluster autoscaler has some limitations and may not work for all users:
1616

1717
- It does not work in physical clusters.
1818
- Adding more nodes to the cluster costs more.

content/en/docs/concepts/architecture/controller.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,8 @@ Controllers that interact with external state find their desired state from
9292
the API server, then communicate directly with an external system to bring
9393
the current state closer in line.
9494

95-
(There actually is a controller that horizontally scales the
96-
nodes in your cluster. See
97-
[Cluster autoscaling](/docs/tasks/administer-cluster/cluster-management/#cluster-autoscaling)).
95+
(There actually is a [controller](https://github.com/kubernetes/autoscaler/)
96+
that horizontally scales the nodes in your cluster.)
9897

9998
The important point here is that the controller makes some change to bring about
10099
your desired state, and then reports current state back to your cluster's API server.

content/en/docs/concepts/architecture/nodes.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,5 +338,4 @@ for more information.
338338
* Read the [Node](https://git.k8s.io/community/contributors/design-proposals/architecture/architecture.md#the-kubernetes-node)
339339
section of the architecture design document.
340340
* Read about [taints and tolerations](/docs/concepts/scheduling-eviction/taint-and-toleration/).
341-
* Read about [cluster autoscaling](/docs/tasks/administer-cluster/cluster-management/#cluster-autoscaling).
342341

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ Before choosing a guide, here are some considerations:
3939

4040
## Managing a cluster
4141

42-
* [Managing a cluster](/docs/tasks/administer-cluster/cluster-management/) describes several topics related to the lifecycle of a cluster: creating a new cluster, upgrading your cluster's master and worker nodes, performing node maintenance (e.g. kernel upgrades), and upgrading the Kubernetes API version of a running cluster.
43-
4442
* Learn how to [manage nodes](/docs/concepts/architecture/nodes/).
4543

4644
* Learn how to set up and manage the [resource quota](/docs/concepts/policy/resource-quotas/) for shared clusters.

content/en/docs/concepts/configuration/pod-priority-preemption.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,7 @@ Pod may be created that fits on the same Node. In this case, the scheduler will
321321
schedule the higher priority Pod instead of the preemptor.
322322

323323
This is expected behavior: the Pod with the higher priority should take the place
324-
of a Pod with a lower priority. Other controller actions, such as
325-
[cluster autoscaling](/docs/tasks/administer-cluster/cluster-management/#cluster-autoscaling),
326-
may eventually provide capacity to schedule the pending Pods.
324+
of a Pod with a lower priority.
327325

328326
### Higher priority Pods are preempted before lower priority pods
329327

content/en/docs/tasks/administer-cluster/cluster-management.md

Lines changed: 0 additions & 223 deletions
This file was deleted.
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
---
2+
title: Upgrade A Cluster
3+
content_type: task
4+
---
5+
6+
<!-- overview -->
7+
This page provides an overview of the steps you should follow to upgrade a
8+
Kubernetes cluster.
9+
10+
The way that you upgrade a cluster depends on how you initially deployed it
11+
and on any subsequent changes.
12+
13+
At a high level, the steps you perform are:
14+
15+
- Upgrade the {{< glossary_tooltip text="control plane" term_id="control-plane" >}}
16+
- Upgrade the nodes in your cluster
17+
- Upgrade clients such as {{< glossary_tooltip text="kubectl" term_id="kubectl" >}}
18+
- Adjust manifests and other resources based on the API changes that accompany the
19+
new Kubernetes version
20+
21+
## {{% heading "prerequisites" %}}
22+
23+
You must have an existing cluster. This page is about upgrading from Kubernetes
24+
{{< skew prevMinorVersion >}} to Kubernetes {{< skew latestVersion >}}. If your cluster
25+
is not currently running Kubernetes {{< skew prevMinorVersion >}} then please check
26+
the documentation for the version of Kubernetes that you plan to upgrade to.
27+
28+
## Upgrade approaches
29+
30+
### kubeadm {#upgrade-kubeadm}
31+
32+
If your cluster was deployed using the `kubeadm` tool, refer to
33+
[Upgrading kubeadm clusters](/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/)
34+
for detailed information on how to upgrade the cluster.
35+
36+
Once you have upgraded the cluster, remember to
37+
[install the latest version of `kubectl`](/docs/tasks/tools/install-kubectl/).
38+
39+
### Manual deployments
40+
41+
{{< caution >}}
42+
These steps do not account for third-party extensions such as network and storage
43+
plugins.
44+
{{< /caution >}}
45+
46+
You should manually update the control plane following this sequence:
47+
48+
- etcd (all instances)
49+
- kube-apiserver (all control plane hosts)
50+
- kube-controller-manager
51+
- kube-scheduler
52+
- cloud controller manager, if you use one
53+
54+
At this point you should
55+
[install the latest version of `kubectl`](/docs/tasks/tools/install-kubectl/).
56+
57+
For each node in your cluster, [drain](/docs/tasks/administer-cluster/safely-drain-node/)
58+
that node and then either replace it with a new node that uses the {{< skew latestVersion >}}
59+
kubelet, or upgrade the kubelet on that node and bring the node back into service.
60+
61+
### Other deployments {#upgrade-other}
62+
63+
Refer to the documentation for your cluster deployment tool to learn the recommended set
64+
up steps for maintenance.
65+
66+
## Post-upgrade tasks
67+
68+
### Switch your cluster's storage API version
69+
70+
The objects that are serialized into etcd for a cluster's internal
71+
representation of the Kubernetes resources active in the cluster are
72+
written using a particular version of the API.
73+
74+
When the supported API changes, these objects may need to be rewritten
75+
in the newer API. Failure to do this will eventually result in resources
76+
that are no longer decodable or usable by the Kubernetes API server.
77+
78+
For each affected object, fetch it using the latest supported API and then
79+
write it back also using the latest supported API.
80+
81+
### Update manifests
82+
83+
Upgrading to a new Kubernetes version can provide new APIs.
84+
85+
You can use `kubectl convert` command to convert manifests between different API versions.
86+
For example:
87+
88+
```shell
89+
kubectl convert -f pod.yaml --output-version v1
90+
```
91+
92+
The `kubectl` tool replaces the contents of `pod.yaml` with a manifest that sets `kind` to
93+
Pod (unchanged), but with a revised `apiVersion`.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: Enable Or Disable A Kubernetes API
3+
content_type: task
4+
---
5+
6+
<!-- overview -->
7+
This page shows how to enable or disable an API version from your cluster's
8+
{{< glossary_tooltip text="control plane" term_id="control-plane" >}}.
9+
10+
<!-- steps -->
11+
12+
13+
Specific API versions can be turned on or off by passing `--runtime-config=api/<version>` as a
14+
command line argument to the API server. The values for this argument are a comma-separated
15+
list of API versions. Later values override earlier values.
16+
17+
The `runtime-config` command line argument also supports 2 special keys:
18+
19+
- `api/all`, representing all known APIs
20+
- `api/legacy`, representing only legacy APIs. Legacy APIs are any APIs that have been
21+
explicitly [deprecated](/docs/reference/using-api/deprecation-policy/).
22+
23+
For example, to turning off all API versions except v1, pass `--runtime-config=api/all=false,api/v1=true`
24+
to the `kube-apiserver`.
25+
26+
## {{% heading "whatsnext" %}}
27+
28+
Read the [full documentation](/docs/reference/command-line-tools-reference/kube-apiserver/)
29+
for the `kube-apiserver` component.

0 commit comments

Comments
 (0)