You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/vendor/helm-v2-migrate.md
+32-9Lines changed: 32 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,31 +87,54 @@ To migrate applications that were previously packaged as standard Kubernetes man
87
87
88
88
1. Create a new release containing the Kubernetes manifests for your application.
89
89
90
-
1. For each application manifest in the release, add the `kots.io/keep` annotation. This ensures that KOTS does not delete these existing resources from the cluster when deploying a new release using the HelmChart v2 method.
90
+
1. For each of the application manifests in the release, add the `kots.io/keep` annotation.
91
+
92
+
This ensures that KOTS will not delete these resources from the cluster when deploying a new release that uses the HelmChart v2 method.
91
93
92
94
1. Save the release.
93
95
94
96
1. Create another new release:
95
97
96
-
1. Remove all the standard Kubernetes manifests and adds the new Helm chart(s) for the application instead.
98
+
1. In the release, add your new application Helm chart or charts.
99
+
100
+
1. Remove the Kubernetes manifests that are replaced by the Helm chart(s).
97
101
98
-
1. In the Embedded Cluster Config for the new release, add the `--take-ownership` flag.
102
+
1. In the Embedded Cluster Config, add the `--take-ownership` flag to the `helmUpgradeFlags` field, as shown below:
99
103
100
-
1. (Recommended) In the KOTS Application custom resource, set `minKotsVersion: 1.122.0` to ensure that the `--take-ownership` flag is supported.
104
+
```yaml
105
+
# HelmChart v1 beta2
106
+
apiVersion: kots.io/v1beta2
107
+
kind: HelmChart
108
+
metadata:
109
+
name: samplechart
110
+
spec:
111
+
helmUpgradeFlags:
112
+
- --take-ownership
113
+
```
114
+
115
+
When the `--take-ownership` flag is enabled, Helm automatically takes ownership of existing resources in the cluster during upgrade.
116
+
117
+
1. (Recommended) In the KOTS Application custom resource, set `minKotsVersion: 1.122.0`. The Helm `--take-ownership` flag is not supported on versions of KOTS earlier than 1.122.0.
118
+
119
+
1. Save the release.
101
120
102
121
1. Test the upgrade flow:
103
122
104
-
1. Promote the first release to an internal channel used for testing. Replicated recommends that you mark the release as required because customers will need to upgrade to this release first before they can upgrade to the second release in order to migrate to HelmChart v2.
123
+
1. Promote the first release to an internal-only channel used for testing.
124
+
125
+
:::note
126
+
Replicated recommends that you mark the release as required because customers must upgrade to this release first before they can upgrade to the release that migrates to HelmChart v2.
127
+
:::
105
128
106
-
1. Install the release in a development environment.
129
+
1. In a development environment, install the release.
107
130
108
131
1. Promote the second release to the same channel.
109
132
110
-
1. In your development environment, upgrade to the second release from the Admin Console to migrate to HelmChart v2. Confirm that none of the existing resources in the cluster were deleted during upgrade.
133
+
1. In your development environment, upgrade to the second release to migrate the installation to HelmChart v2. Confirm that none of the existing resources in the cluster were deleted during upgrade.
111
134
112
-
1. When you are done testing, promote the first release containing the Kubernetes manifests to one or more customer-facing channels. Replicated recommends that you mark the release as required because customers will need to upgrade to this release first before they can upgrade to the second release in order to migrate to HelmChart v2.
135
+
1. When you are ready, promote the first release containing your application manifests to one or more customer-facing channels.
113
136
114
-
1. Promote the second release containing your Helm chart(s) to the same channel(s).
137
+
1. Promote the second release containing your application Helm chart to the same channel or channels.
115
138
116
139
1. Instruct customers to migrate by first upgrading to the release packaged with standard manifests, then upgrading to the release packaged with Helm second.
0 commit comments