Skip to content

Commit

Permalink
feat: update upgrade guide for 1.7.1 (#618)
Browse files Browse the repository at this point in the history
* feat: update upgrade guide for 1.7.1
* fix: istio-pilot upgrade instructions
* fix: trust kfp-api
* fix: trust katib-db-manager
  • Loading branch information
NohaIhab authored Jun 19, 2023
1 parent 949ba7c commit a32fcd2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
17 changes: 14 additions & 3 deletions docs/upgrade-guide-1.6-to-1.7.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
]
},
"source": [
"3. Upgrade `istio-pilot` charm in sequence. Wait for each `refresh` command to finish and upgrade to intermediate version is complete, i.e. `istio-pilot` application is in `active` state and unit is in `active/idle` state:"
"3. Upgrade `istio-pilot` charm in sequence. For intermediate versions, Wait for each `refresh` command to finish and upgrade is complete, i.e. `istio-pilot` is in `Waiting` status with the message `\"Missing istio-ingressgateway-workload service, deferring this event\"`."
]
},
{
Expand Down Expand Up @@ -277,6 +277,14 @@
"juju refresh istio-pilot --channel 1.16/stable"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"After refreshing to 1.16, `istio-pilot` should reach `active` status within a few minutes. Otherwise, check out the troubleshooting tips below."
]
},
{
"attachments": {},
"cell_type": "markdown",
Expand Down Expand Up @@ -369,7 +377,9 @@
"source": [
"# enable trust on charms\n",
"juju trust jupyter-ui --scope=cluster\n",
"juju trust katib-db-manager --scope=cluster\n",
"juju trust katib-ui --scope=cluster\n",
"juju trust kfp-api --scope=cluster\n",
"juju trust kubeflow-dashboard --scope=cluster\n",
"juju trust kubeflow-profiles --scope=cluster\n",
"juju trust seldon-controller-manager --scope=cluster"
Expand Down Expand Up @@ -440,7 +450,7 @@
"source": [
"# redeploy kubeflow-roles\n",
"juju remove-application kubeflow-roles\n",
"juju deploy kubeflow-roles --channel 1.7/stable"
"juju deploy kubeflow-roles --channel 1.7/stable --trust"
]
},
{
Expand Down Expand Up @@ -551,7 +561,8 @@
"juju deploy knative-operator --channel 1.8/stable --trust\n",
"juju deploy knative-serving --config namespace=\"knative-serving\" --config istio.gateway.namespace=kubeflow --config istio.gateway.name=kubeflow-gateway --channel 1.8/stable --trust\n",
"juju deploy knative-eventing --config namespace=\"knative-eventing\" --channel 1.8/stable --trust\n",
"juju deploy kserve-controller --channel 0.10/stable --trust"
"juju deploy kserve-controller --channel 0.10/stable --trust\n",
"juju relate istio-pilot:gateway-info kserve-controller:ingress-gateway"
]
},
{
Expand Down
10 changes: 8 additions & 2 deletions docs/upgrade-guide-1.6-to-1.7.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# How to upgrade Charmed Kubeflow from 1.6 to 1.7

Version 1.7 of Charmed Kubeflow was released in March 2023, aligning with the upstream Kubeflow project [release](https://github.com/kubeflow/manifests/releases/tag/v1.7.0).
Expand Down Expand Up @@ -74,7 +75,7 @@ If required, remove `istio-ingressgateway` application with `--force` option and
kubectl -n kubeflow delete deploy istio-ingressgateway-workload
```

3. Upgrade `istio-pilot` charm in sequence. Wait for each `refresh` command to finish and upgrade to intermediate version is complete, i.e. `istio-pilot` application is in `active` state and unit is in `active/idle` state:
3. Upgrade `istio-pilot` charm in sequence. For intermediate versions, Wait for each `refresh` command to finish and upgrade is complete, i.e. `istio-pilot` is in `Waiting` status with the message `"Missing istio-ingressgateway-workload service, deferring this event"`.


```python
Expand Down Expand Up @@ -108,6 +109,8 @@ juju refresh istio-pilot --channel 1.15/stable
juju refresh istio-pilot --channel 1.16/stable
```

After refreshing to 1.16, `istio-pilot` should reach `active` status within a few minutes. Otherwise, check out the troubleshooting tips below.

<!-- This should be placed in [detail] section on Discourse -->
#### Troubleshooting of Istio upgrade

Expand Down Expand Up @@ -138,7 +141,9 @@ Because of changes in the charm code, some charms in Charmed Kubeflow 1.6 have t
```python
# enable trust on charms
juju trust jupyter-ui --scope=cluster
juju trust katib-db-manager --scope=cluster
juju trust katib-ui --scope=cluster
juju trust kfp-api --scope=cluster
juju trust kubeflow-dashboard --scope=cluster
juju trust kubeflow-profiles --scope=cluster
juju trust seldon-controller-manager --scope=cluster
Expand Down Expand Up @@ -167,7 +172,7 @@ There is a difference how charms are handling Roles and ClusterRoles in 1.7 rele
```python
# redeploy kubeflow-roles
juju remove-application kubeflow-roles
juju deploy kubeflow-roles --channel 1.7/stable
juju deploy kubeflow-roles --channel 1.7/stable --trust
```

## Upgrade charms
Expand Down Expand Up @@ -227,6 +232,7 @@ juju deploy knative-operator --channel 1.8/stable --trust
juju deploy knative-serving --config namespace="knative-serving" --config istio.gateway.namespace=kubeflow --config istio.gateway.name=kubeflow-gateway --channel 1.8/stable --trust
juju deploy knative-eventing --config namespace="knative-eventing" --channel 1.8/stable --trust
juju deploy kserve-controller --channel 0.10/stable --trust
juju relate istio-pilot:gateway-info kserve-controller:ingress-gateway
```

## Verify upgrade
Expand Down

0 comments on commit a32fcd2

Please sign in to comment.