Skip to content

Commit 8648560

Browse files
committed
docs: fix broken command examples in tasks
Five small fixes where the example as written wouldn't run: - network/extend-service-ip-ranges: heredoc needs `<<EOF`, not `<EOF` - manage-kubernetes-objects/storage-version-migration: the resource field takes the plural resource name `selfierequests`, not the kind `SelfieRequest` - debug/debug-application/debug-service: EndpointSlice label is `kubernetes.io/service-name`, not `k8s.io/service-name` - administer-cluster/kubeadm/adding-windows-nodes: code fence closed with six backticks instead of three - administer-cluster/controller-manager-leader-migration: two kubectl patch commands had a stray trailing backtick
1 parent 0385483 commit 8648560

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

content/en/docs/tasks/administer-cluster/controller-manager-leader-migration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ the `system::leader-locking-kube-controller-manager` role. This task guide assum
8282
that the name of the migration lease is `cloud-provider-extraction-migration`.
8383

8484
```shell
85-
kubectl patch -n kube-system role 'system::leader-locking-kube-controller-manager' -p '{"rules": [ {"apiGroups":[ "coordination.k8s.io"], "resources": ["leases"], "resourceNames": ["cloud-provider-extraction-migration"], "verbs": ["create", "list", "get", "update"] } ]}' --type=merge`
85+
kubectl patch -n kube-system role 'system::leader-locking-kube-controller-manager' -p '{"rules": [ {"apiGroups":[ "coordination.k8s.io"], "resources": ["leases"], "resourceNames": ["cloud-provider-extraction-migration"], "verbs": ["create", "list", "get", "update"] } ]}' --type=merge
8686
```
8787

8888
Do the same to the `system::leader-locking-cloud-controller-manager` role.
8989

9090
```shell
91-
kubectl patch -n kube-system role 'system::leader-locking-cloud-controller-manager' -p '{"rules": [ {"apiGroups":[ "coordination.k8s.io"], "resources": ["leases"], "resourceNames": ["cloud-provider-extraction-migration"], "verbs": ["create", "list", "get", "update"] } ]}' --type=merge`
91+
kubectl patch -n kube-system role 'system::leader-locking-cloud-controller-manager' -p '{"rules": [ {"apiGroups":[ "coordination.k8s.io"], "resources": ["leases"], "resourceNames": ["cloud-provider-extraction-migration"], "verbs": ["create", "list", "get", "update"] } ]}' --type=merge
9292
```
9393

9494
### Initial Leader Migration configuration

content/en/docs/tasks/administer-cluster/kubeadm/adding-windows-nodes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ To install containerd, first run the following command:
4141

4242
```PowerShell
4343
curl.exe -LO https://raw.githubusercontent.com/kubernetes-sigs/sig-windows-tools/master/hostprocess/Install-Containerd.ps1
44-
``````
44+
```
4545

4646
Then run the following command, but first replace `CONTAINERD_VERSION` with a recent release
4747
from the [containerd repository](https://github.com/containerd/containerd/releases).

content/en/docs/tasks/debug/debug-application/debug-service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ Inside the Kubernetes system is a control loop which evaluates the selector of
448448
every Service and saves the results into one or more EndpointSlice objects.
449449

450450
```shell
451-
kubectl get endpointslices -l k8s.io/service-name=hostnames
451+
kubectl get endpointslices -l kubernetes.io/service-name=hostnames
452452
453453
NAME ADDRESSTYPE PORTS ENDPOINTS
454454
hostnames-ytpni IPv4 9376 10.244.0.5,10.244.0.6,10.244.0.7

content/en/docs/tasks/manage-kubernetes-objects/storage-version-migration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ This migration can be achieved through _Storage Version Migration_ to migrate al
328328
spec:
329329
resource:
330330
group: example.com
331-
resource: SelfieRequest
331+
resource: selfierequests
332332
```
333333

334334
Create the object using _kubectl_ as follows:

content/en/docs/tasks/network/extend-service-ip-ranges.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ You can increase the number of IP addresses available for Services, by creating
106106
that extends or adds new IP address ranges.
107107

108108
```sh
109-
cat <EOF | kubectl apply -f -
109+
cat <<EOF | kubectl apply -f -
110110
apiVersion: networking.k8s.io/v1
111111
kind: ServiceCIDR
112112
metadata:

0 commit comments

Comments
 (0)