Skip to content

Commit

Permalink
DOCS-1547-Upgrade-failing
Browse files Browse the repository at this point in the history
  • Loading branch information
bmckercher123 committed Aug 2, 2023
1 parent ab101e0 commit 0ce8f47
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 47 deletions.
32 changes: 15 additions & 17 deletions calico/operations/upgrading/kubernetes-upgrade.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ ownership of the helm resources to the new chart location.
1. Apply the {{version}} CRDs:

```bash
kubectl apply --server-side --force-conflicts -f {{manifestsUrl}}/manifests/operator-crds.yaml
kubectl apply --server-side --force-conflicts -f {{manifestsURL}}/manifests/operator-crds.yaml
```

1. Install the helm chart in the `tigera-operator` namespace.
Expand All @@ -83,7 +83,7 @@ the output and then re-running the command without --dry-run to commit to the ch
1. Apply the {{version}} CRDs:

```bash
kubectl apply --server-side --force-conflicts -f {{manifestsUrl}}/manifests/operator-crds.yaml
kubectl apply --server-side --force-conflicts -f {{manifestsURL}}/manifests/operator-crds.yaml
```

1. Run the helm upgrade:
Expand Down Expand Up @@ -113,19 +113,19 @@ the output and then re-running the command without --dry-run to commit to the ch
**{{prodname}} for policy and networking**

```bash
curl {{manifestsUrl}}/manifests/calico.yaml -O
curl {{manifestsURL}}/manifests/calico.yaml -o upgrade.yaml
```

**{{prodname}} for policy and flannel for networking**

```bash
curl {{manifestsUrl}}/manifests/canal.yaml -O
curl {{manifestsURL}}/manifests/canal.yaml -o upgrade.yaml
```

**{{prodname}} for policy (advanced)**

```bash
curl {{manifestsUrl}}/manifests/calico-policy-only.yaml -O
curl {{manifestsURL}}/manifests/calico-policy-only.yaml -o upgrade.yaml
```

:::note
Expand All @@ -135,16 +135,15 @@ the output and then re-running the command without --dry-run to commit to the ch

:::

1. Use the following command to initiate a rolling update, after replacing
`<manifest-file-name>` with the file name of your {{version}} manifest.
1. Use the following command to initiate a rolling update.

```
kubectl replace -f <manifest-file-name>
```bash
kubectl apply --server-side --force-conflicts -f upgrade.yaml
```

1. Watch the status of the upgrade as follows.

```
```bash
watch kubectl get pods -n kube-system
```

Expand Down Expand Up @@ -182,13 +181,13 @@ the output and then re-running the command without --dry-run to commit to the ch
**{{prodname}} for policy and networking**

```bash
curl {{manifestsUrl}}/manifests/calico-etcd.yaml -O
curl {{manifestsUrl}}/manifests/calico-etcd.yaml -o upgrade.yaml
```

**{{prodname}} for policy and flannel for networking**

```bash
curl {{manifestsUrl}}/manifests/canal-etcd.yaml -O
curl {{manifestsUrl}}/manifests/canal-etcd.yaml -o upgrade.yaml
```

:::note
Expand All @@ -199,16 +198,15 @@ the output and then re-running the command without --dry-run to commit to the ch

:::

1. Use the following command to initiate a rolling update, after replacing
`<manifest-file-name>` with the file name of your {{version}} manifest.
1. Use the following command to initiate a rolling update.

```
kubectl apply -f <manifest-file-name>
```bash
kubectl apply --server-side --force-conflicts -f upgrade.yaml
```

1. Watch the status of the upgrade as follows.

```
```bash
watch kubectl get pods -n kube-system
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,19 +113,19 @@ the output and then re-running the command without --dry-run to commit to the ch
**{{prodname}} for policy and networking**

```bash
curl {{manifestsUrl}}/manifests/calico.yaml -O
curl {{manifestsUrl}}/manifests/calico.yaml -o upgrade.yaml
```

**{{prodname}} for policy and flannel for networking**

```bash
curl {{manifestsUrl}}/manifests/canal.yaml -O
curl {{manifestsUrl}}/manifests/canal.yaml -o upgrade.yaml
```

**{{prodname}} for policy (advanced)**

```bash
curl {{manifestsUrl}}/manifests/calico-policy-only.yaml -O
curl {{manifestsUrl}}/manifests/calico-policy-only.yaml -o upgrade.yaml
```

:::note
Expand All @@ -135,22 +135,21 @@ the output and then re-running the command without --dry-run to commit to the ch

:::

1. Use the following command to initiate a rolling update, after replacing
`<manifest-file-name>` with the file name of your {{version}} manifest.
1. Use the following command to initiate a rolling update.

```
kubectl replace -f <manifest-file-name>
```bash
kubectl apply --server-side --force-conflicts -f upgrade.yaml
```

1. Watch the status of the upgrade as follows.

```
```bash
watch kubectl get pods -n kube-system
```

Verify that the status of all {{prodname}} pods indicate `Running`.

```
```bash
{{noderunning}}-hvvg8 2/2 Running 0 3m
{{noderunning}}-vm8kh 2/2 Running 0 3m
{{noderunning}}-w92wk 2/2 Running 0 3m
Expand Down Expand Up @@ -182,13 +181,13 @@ the output and then re-running the command without --dry-run to commit to the ch
**{{prodname}} for policy and networking**

```bash
curl {{manifestsUrl}}/manifests/calico-etcd.yaml -O
curl {{manifestsUrl}}/manifests/calico-etcd.yaml -o upgrade.yaml
```

**{{prodname}} for policy and flannel for networking**

```bash
curl {{manifestsUrl}}/manifests/canal-etcd.yaml -O
curl {{manifestsUrl}}/manifests/canal-etcd.yaml -o upgrade.yaml
```

:::note
Expand All @@ -199,15 +198,15 @@ the output and then re-running the command without --dry-run to commit to the ch

:::

1. Use the following command to initiate a rolling update, after replacing
`<manifest-file-name>` with the file name of your {{version}} manifest.
1. Use the following command to initiate a rolling update.

```
kubectl apply -f <manifest-file-name>
```bash
kubectl apply --server-side --force-conflicts -f upgrade.yaml
```

1. Watch the status of the upgrade as follows.

bash
```
watch kubectl get pods -n kube-system
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,19 +113,19 @@ the output and then re-running the command without --dry-run to commit to the ch
**{{prodname}} for policy and networking**

```bash
curl {{manifestsUrl}}/manifests/calico.yaml -O
curl {{manifestsUrl}}/manifests/calico.yaml -o upgrade.yaml
```

**{{prodname}} for policy and flannel for networking**

```bash
curl {{manifestsUrl}}/manifests/canal.yaml -O
curl {{manifestsUrl}}/manifests/canal.yaml -o upgrade.yaml
```

**{{prodname}} for policy (advanced)**

```bash
curl {{manifestsUrl}}/manifests/calico-policy-only.yaml -O
curl {{manifestsUrl}}/manifests/calico-policy-only.yaml -o upgrade.yaml
```

:::note
Expand All @@ -135,16 +135,15 @@ the output and then re-running the command without --dry-run to commit to the ch

:::

1. Use the following command to initiate a rolling update, after replacing
`<manifest-file-name>` with the file name of your {{version}} manifest.
1. Use the following command to initiate a rolling update.

```
kubectl replace -f <manifest-file-name>
```bash
kubectl apply --server-side --force-conflicts -f upgrade.yaml
```

1. Watch the status of the upgrade as follows.

```
```bash
watch kubectl get pods -n kube-system
```

Expand Down Expand Up @@ -182,13 +181,13 @@ the output and then re-running the command without --dry-run to commit to the ch
**{{prodname}} for policy and networking**

```bash
curl {{manifestsUrl}}/manifests/calico-etcd.yaml -O
curl {{manifestsUrl}}/manifests/calico-etcd.yaml -o upgrade.yaml
```

**{{prodname}} for policy and flannel for networking**

```bash
curl {{manifestsUrl}}/manifests/canal-etcd.yaml -O
curl {{manifestsUrl}}/manifests/canal-etcd.yaml -o upgrade.yaml
```

:::note
Expand All @@ -199,16 +198,15 @@ the output and then re-running the command without --dry-run to commit to the ch

:::

1. Use the following command to initiate a rolling update, after replacing
`<manifest-file-name>` with the file name of your {{version}} manifest.
1. Use the following command to initiate a rolling update.

```
kubectl apply -f <manifest-file-name>
```bash
kubectl apply --server-side --force-conflicts -f upgrade.yaml
```

1. Watch the status of the upgrade as follows.

```
```bash
watch kubectl get pods -n kube-system
```

Expand Down

0 comments on commit 0ce8f47

Please sign in to comment.