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/operator-guide/upgrade/upgrade-krci-3.12.md
+25-15Lines changed: 25 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,15 +24,25 @@ We suggest backing up the KubeRocketCI environment before starting the upgrade p
24
24
In version 3.12, the `docker.io/epamedp/tekton-cache` image has been [deprecated](https://github.com/epam/edp-tekton/issues/511) and replaced with `ghcr.io/kuberocketci/krci-cache`. In case of using the [tekton-cache](https://github.com/epam/edp-tekton/tree/master/charts/tekton-cache) Helm chart, the image will be automatically updated during the upgrade process.
25
25
:::
26
26
27
-
1. (Optional) Update Tekton Custom Pipelines
27
+
:::warning
28
+
Since Kaniko Docker image build tool support has been discontinued, the [BuildKit](https://docs.docker.com/build/buildkit/) tool support has been introduced. Users now have a choice between two image build tools: Kaniko and BuildKit. For this reason, the `dockerbuild-verify` and `kaniko-build` Tekton Tasks no longer exist. Rename these Tasks by the following pattern if you leverage them in your custom pipelines:
29
+
30
+
-`dockerbuild-verify` → `dockerbuild-verify-kaniko` or `dockerbuild-verify-buildkit`, depending on which build tool you are using.
31
+
32
+
-`kaniko-build` → `container-build` (this task works with both Kaniko and BuildKit tools).
33
+
34
+
Kaniko is still used by default. To switch between Kaniko and BuildKit, set the `tekton.containerBuildTool` parameter in the [pipelines-library values](https://github.com/epam/edp-tekton/blob/master/charts/pipelines-library/values.yaml#L230).
35
+
:::
36
+
37
+
1. (Optional) Update custom Tekton Pipelines:
28
38
29
39
:::note
30
40
For more information about using Tekton custom pipelines in KubeRocketCI, refer to the [Create and Use Custom Tekton Pipelines](../../use-cases/custom-pipelines-flow.md) use case.
31
41
:::
32
42
33
43
In case of using Tekton custom pipelines, it is necessary to update them to ensure compatibility with the new version of KubeRocketCI.
34
44
35
-
1. Branch Name Validation Update
45
+
1. Update branch name validation:
36
46
37
47
Starting from version 3.12, the KubeRocketCI portal [supports](https://github.com/epam/edp-headlamp/issues/753) adding branches with long names (more than 30 characters), including support for special characters and uppercase letters. Due to this change, it is necessary to update the passing parameters for the `update-cbis` task in the Tekton custom build pipelines to ensure compatibility with the new version of KubeRocketCI.
38
48
@@ -159,7 +169,7 @@ In version 3.12, the `docker.io/epamedp/tekton-cache` image has been [deprecated
159
169
```
160
170
</details>
161
171
162
-
2. Build Pipeline Task Condition Update
172
+
2. Build Pipeline Task Condition Update:
163
173
164
174
:::note
165
175
This change is relevant only for build pipelines with `semver` versioning type.
@@ -236,7 +246,7 @@ In version 3.12, the `docker.io/epamedp/tekton-cache` image has been [deprecated
236
246
</TabItem>
237
247
</Tabs>
238
248
239
-
3. Deploy Pipeline Parameters Renaming
249
+
3. Deploy Pipeline Parameters Renaming:
240
250
241
251
:::note
242
252
For detailed information about parameter changes in Tekton tasks, refer to the [edp-tekton](https://github.com/epam/edp-tekton/tree/master/charts/pipelines-library/templates/tasks) repository.
@@ -424,7 +434,7 @@ In version 3.12, the `docker.io/epamedp/tekton-cache` image has been [deprecated
424
434
</TabItem>
425
435
</Tabs>
426
436
427
-
2. (Optional) Enable Repository Discovery
437
+
3. (Optional) Enable Repository Discovery:
428
438
429
439
:::warning
430
440
In case of using GitFusion with the Bitbucket Git provider, it is necessary to update the Bitbucket API token permissions to include the `read:account` scope. For more details on how to create a Bitbucket app password with the required permissions, refer to the [Add Git Server](../../user-guide/add-git-server.md) guide.
@@ -449,7 +459,7 @@ In version 3.12, the `docker.io/epamedp/tekton-cache` image has been [deprecated
449
459
enabled: true
450
460
```
451
461
452
-
2. Update the KrakenD configuration to include the GitFusion API endpoints.
462
+
2. Update the KrakenD configuration to include the GitFusion API endpoints:
453
463
454
464
:::note
455
465
The latest KrakenD configuration can be found in the [edp-cluster-add-ons](https://github.com/epam/edp-cluster-add-ons/tree/main/clusters/core/addons/krakend) repository.
@@ -798,7 +808,7 @@ In version 3.12, the `docker.io/epamedp/tekton-cache` image has been [deprecated
798
808
```
799
809
</details>
800
810
801
-
3. Update the KrakenD secret with the GitFusion URL variable.
811
+
3. Update the KrakenD secret with the GitFusion URL variable:
802
812
803
813
:::note
804
814
The `GITFUSION_URL` variable should point to the GitFusion service URL, e.g., `http://gitfusion.krci:8080`.
@@ -841,7 +851,7 @@ In version 3.12, the `docker.io/epamedp/tekton-cache` image has been [deprecated
In case of using remote clusters in KubeRocketCI, it is necessary to update the remote cluster names in KubeRocketCI portal after upgrading to version 3.12.
847
857
@@ -851,37 +861,37 @@ In version 3.12, the `docker.io/epamedp/tekton-cache` image has been [deprecated
851
861
852
862
There are two ways to align the remote cluster names in the KubeRocketCI portal:
853
863
854
-
1. Recreate the remote cluster integration in the KubeRocketCI portal.
864
+
1. Recreate the remote cluster integration in the KubeRocketCI portal:
855
865
856
866
1. Navigate to the **Configuration** -> **Deployment** -> **Clusters** section in the KubeRocketCI portal.
857
867
858
-
2. Click on the cluster integration that needs to be updated and delete it by clicking the **Delete** (trash can) icon.
868
+
2. Click on the cluster integration that needs to be updated and delete it by clicking the **Delete** (trash can) icon:
3. After the cluster integration is deleted, click the **Add Cluster** button to create a new cluster integration. Fill in the required fields and click the **Save** button to add the cluster.
874
+
3. After the cluster integration is deleted, click the **Add Cluster** button to create a new cluster integration. Fill in the required fields and click the **Save** button to add the cluster:
After the new cluster integration is created, the correct cluster name will be displayed in the KubeRocketCI portal.
869
879
870
-
2. Update the `kubeconfig` specification in the `<cluster-name>` Kubernetes secret.
880
+
2. Update the `kubeconfig` specification in the `<cluster-name>` Kubernetes secret:
871
881
872
882
:::note
873
883
The `<cluster-name>` secret is created automatically when a new cluster integration is added in the KubeRocketCI portal. The secret contains the `kubeconfig` specification used to connect to the remote cluster.
874
884
:::
875
885
876
886
It is also possible to update the `kubeconfig` specification in the existing `<cluster-name>` secret to change the cluster name, instead of recreating the cluster integration in the KubeRocketCI portal.
877
887
878
-
1. Locate the `<cluster-name>` secret in the namespace where KubeRocketCI is installed (e.g., `krci` namespace).
888
+
1. Locate the `<cluster-name>` secret in the namespace where KubeRocketCI is installed (e.g., `krci` namespace):
879
889
880
890
```bash
881
891
kubectl get secret <cluster-name> -n krci -o yaml
882
892
```
883
893
884
-
2. Update the `kubeconfig` specification by changing the `clusters.name` and `contexts.context.cluster` fields to match the desired cluster name.
894
+
2. Update the `kubeconfig` specification by changing the `clusters.name` and `contexts.context.cluster` fields to match the desired cluster name:
885
895
886
896
:::note
887
897
The `data.config` field in the secret is base64 encoded. To update the `kubeconfig` specification, decode the `data.config` field, make the necessary changes, and then encode it back to base64 before updating the secret.
@@ -926,7 +936,7 @@ In version 3.12, the `docker.io/epamedp/tekton-cache` image has been [deprecated
926
936
927
937
After updating the `kubeconfig` specification in the secret, the correct cluster name will be displayed in the KubeRocketCI portal.
928
938
929
-
4. To upgrade KubeRocketCI to the v3.12, run the following commands:
939
+
5. To upgrade KubeRocketCI to the v3.12, run the following commands:
930
940
931
941
:::note
932
942
To verify the installation, it is possible to test the deployment before applying it to the cluster with the `--dry-run` key:
Copy file name to clipboardExpand all lines: versioned_docs/version-3.12/operator-guide/upgrade/upgrade-krci-3.12.md
+23-15Lines changed: 23 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,15 +24,23 @@ We suggest backing up the KubeRocketCI environment before starting the upgrade p
24
24
In version 3.12, the `docker.io/epamedp/tekton-cache` image has been [deprecated](https://github.com/epam/edp-tekton/issues/511) and replaced with `ghcr.io/kuberocketci/krci-cache`. In case of using the [tekton-cache](https://github.com/epam/edp-tekton/tree/master/charts/tekton-cache) Helm chart, the image will be automatically updated during the upgrade process.
25
25
:::
26
26
27
-
1. (Optional) Update Tekton Custom Pipelines
27
+
:::warning
28
+
Since Kaniko Docker image build tool support has been discontinued, the [BuildKit](https://docs.docker.com/build/buildkit/) tool support has been introduced. Users now have a choice between two image build tools: Kaniko and BuildKit. For this reason, the `dockerbuild-verify` and `kaniko-build` Tekton Tasks no longer exist. Rename these Tasks by the following pattern if you leverage them in your custom pipelines:
29
+
30
+
-`dockerbuild-verify` → `dockerbuild-verify-kaniko` or `dockerbuild-verify-buildkit`, depending on which build tool you are using.
31
+
32
+
-`kaniko-build` → `container-build` (this task works with both Kaniko and BuildKit tools).
33
+
:::
34
+
35
+
1. (Optional) Update custom Tekton Pipelines:
28
36
29
37
:::note
30
38
For more information about using Tekton custom pipelines in KubeRocketCI, refer to the [Create and Use Custom Tekton Pipelines](../../use-cases/custom-pipelines-flow.md) use case.
31
39
:::
32
40
33
41
In case of using Tekton custom pipelines, it is necessary to update them to ensure compatibility with the new version of KubeRocketCI.
34
42
35
-
1. Branch Name Validation Update
43
+
1. Update branch name validation:
36
44
37
45
Starting from version 3.12, the KubeRocketCI portal [supports](https://github.com/epam/edp-headlamp/issues/753) adding branches with long names (more than 30 characters), including support for special characters and uppercase letters. Due to this change, it is necessary to update the passing parameters for the `update-cbis` task in the Tekton custom build pipelines to ensure compatibility with the new version of KubeRocketCI.
38
46
@@ -159,7 +167,7 @@ In version 3.12, the `docker.io/epamedp/tekton-cache` image has been [deprecated
159
167
```
160
168
</details>
161
169
162
-
2. Build Pipeline Task Condition Update
170
+
2. Build Pipeline Task Condition Update:
163
171
164
172
:::note
165
173
This change is relevant only for build pipelines with `semver` versioning type.
@@ -236,7 +244,7 @@ In version 3.12, the `docker.io/epamedp/tekton-cache` image has been [deprecated
236
244
</TabItem>
237
245
</Tabs>
238
246
239
-
3. Deploy Pipeline Parameters Renaming
247
+
3. Deploy Pipeline Parameters Renaming:
240
248
241
249
:::note
242
250
For detailed information about parameter changes in Tekton tasks, refer to the [edp-tekton](https://github.com/epam/edp-tekton/tree/master/charts/pipelines-library/templates/tasks) repository.
@@ -424,7 +432,7 @@ In version 3.12, the `docker.io/epamedp/tekton-cache` image has been [deprecated
424
432
</TabItem>
425
433
</Tabs>
426
434
427
-
2. (Optional) Enable Repository Discovery
435
+
3. (Optional) Enable Repository Discovery:
428
436
429
437
:::warning
430
438
In case of using GitFusion with the Bitbucket Git provider, it is necessary to update the Bitbucket API token permissions to include the `read:account` scope. For more details on how to create a Bitbucket app password with the required permissions, refer to the [Add Git Server](../../user-guide/add-git-server.md) guide.
@@ -449,7 +457,7 @@ In version 3.12, the `docker.io/epamedp/tekton-cache` image has been [deprecated
449
457
enabled: true
450
458
```
451
459
452
-
2. Update the KrakenD configuration to include the GitFusion API endpoints.
460
+
2. Update the KrakenD configuration to include the GitFusion API endpoints:
453
461
454
462
:::note
455
463
The latest KrakenD configuration can be found in the [edp-cluster-add-ons](https://github.com/epam/edp-cluster-add-ons/tree/main/clusters/core/addons/krakend) repository.
@@ -798,7 +806,7 @@ In version 3.12, the `docker.io/epamedp/tekton-cache` image has been [deprecated
798
806
```
799
807
</details>
800
808
801
-
3. Update the KrakenD secret with the GitFusion URL variable.
809
+
3. Update the KrakenD secret with the GitFusion URL variable:
802
810
803
811
:::note
804
812
The `GITFUSION_URL` variable should point to the GitFusion service URL, e.g., `http://gitfusion.krci:8080`.
@@ -841,7 +849,7 @@ In version 3.12, the `docker.io/epamedp/tekton-cache` image has been [deprecated
In case of using remote clusters in KubeRocketCI, it is necessary to update the remote cluster names in KubeRocketCI portal after upgrading to version 3.12.
847
855
@@ -851,37 +859,37 @@ In version 3.12, the `docker.io/epamedp/tekton-cache` image has been [deprecated
851
859
852
860
There are two ways to align the remote cluster names in the KubeRocketCI portal:
853
861
854
-
1. Recreate the remote cluster integration in the KubeRocketCI portal.
862
+
1. Recreate the remote cluster integration in the KubeRocketCI portal:
855
863
856
864
1. Navigate to the **Configuration** -> **Deployment** -> **Clusters** section in the KubeRocketCI portal.
857
865
858
-
2. Click on the cluster integration that needs to be updated and delete it by clicking the **Delete** (trash can) icon.
866
+
2. Click on the cluster integration that needs to be updated and delete it by clicking the **Delete** (trash can) icon:
3. After the cluster integration is deleted, click the **Add Cluster** button to create a new cluster integration. Fill in the required fields and click the **Save** button to add the cluster.
872
+
3. After the cluster integration is deleted, click the **Add Cluster** button to create a new cluster integration. Fill in the required fields and click the **Save** button to add the cluster:
After the new cluster integration is created, the correct cluster name will be displayed in the KubeRocketCI portal.
869
877
870
-
2. Update the `kubeconfig` specification in the `<cluster-name>` Kubernetes secret.
878
+
2. Update the `kubeconfig` specification in the `<cluster-name>` Kubernetes secret:
871
879
872
880
:::note
873
881
The `<cluster-name>` secret is created automatically when a new cluster integration is added in the KubeRocketCI portal. The secret contains the `kubeconfig` specification used to connect to the remote cluster.
874
882
:::
875
883
876
884
It is also possible to update the `kubeconfig` specification in the existing `<cluster-name>` secret to change the cluster name, instead of recreating the cluster integration in the KubeRocketCI portal.
877
885
878
-
1. Locate the `<cluster-name>` secret in the namespace where KubeRocketCI is installed (e.g., `krci` namespace).
886
+
1. Locate the `<cluster-name>` secret in the namespace where KubeRocketCI is installed (e.g., `krci` namespace):
879
887
880
888
```bash
881
889
kubectl get secret <cluster-name> -n krci -o yaml
882
890
```
883
891
884
-
2. Update the `kubeconfig` specification by changing the `clusters.name` and `contexts.context.cluster` fields to match the desired cluster name.
892
+
2. Update the `kubeconfig` specification by changing the `clusters.name` and `contexts.context.cluster` fields to match the desired cluster name:
885
893
886
894
:::note
887
895
The `data.config` field in the secret is base64 encoded. To update the `kubeconfig` specification, decode the `data.config` field, make the necessary changes, and then encode it back to base64 before updating the secret.
@@ -926,7 +934,7 @@ In version 3.12, the `docker.io/epamedp/tekton-cache` image has been [deprecated
926
934
927
935
After updating the `kubeconfig` specification in the secret, the correct cluster name will be displayed in the KubeRocketCI portal.
928
936
929
-
4. To upgrade KubeRocketCI to the v3.12, run the following commands:
937
+
5. To upgrade KubeRocketCI to the v3.12, run the following commands:
930
938
931
939
:::note
932
940
To verify the installation, it is possible to test the deployment before applying it to the cluster with the `--dry-run` key:
0 commit comments