Updated Migrate helm chart to oci registry in Harbor (markdown)

stonezdj(Daojun Zhang) 2023-05-09 18:00:50 +08:00
parent a4a5f616a9
commit 677261e2ac
1 changed files with 4 additions and 3 deletions

@ -54,7 +54,7 @@ helm verify harbor-1.7.3.tgz --keyring=secring.gpg
```
### Question 3: If my Harbor instance is upgrade to 2.8, How to migrate the helm chart to Harbor with OCI helm chart?
Create a pod with this yaml
1. Create a pod with this yaml
```
apiVersion: v1
kind: Pod
@ -77,11 +77,12 @@ spec:
```
The <helm_install_name> should be replaced to the real name of your Harbor helm installation.
Run the following command to copy the chart data into local:
2. Run the following command to copy the chart data into local:
```
kubectl cp my-pod:/chart_storage <path to local dir>
```
Check if chart files are stored in the <path to local dir>/chart_storage, then delete the temporary pod
3. Check if chart files are stored in the <path to local dir>/chart_storage, then delete the temporary pod
```
kubectl delete pod my-pod --force
```