Helm repo, or OCI repo, that's the question #8905
-
In an offline production environment, the Kubernetes cluster cannot access GitHub/internet, only private repositories (hosted in Artifactory/Sonatype Nexus). What steps do we need to take to enable offline installation? I'd like to use Helm exclusively. Do I need to create a traditional Helm repo for the I can populate the OCI repo with the Ansible below, but that does not create the - name: Ensure KubeBlocks cache
ansible.builtin.file:
path: "{{ kubeblocks_cache }}"
state: directory
mode: '0755'
- name: Pull KubeSpray helm charts
kubernetes.core.helm_pull:
chart_ref: "{{ item.addon_name }}"
chart_version: "{{ item.version }}"
repo_url: "{{ helm_upstream_repo_url }}"
untar_chart: false
destination: "{{ kubeblocks_cache }}"
when:
- item.state == "present"
loop: "{{ kubeblocks_add_ons }}"
- name: Registry login for helm
environment:
REGISTRY_PASS: "{{ registry_pass }}"
ansible.builtin.command:
cmd: 'helm registry login "{{ registry_host }}" --username "{{ registry_user }}" --password $REGISTRY_PASS'
- name: Push helm charts
ansible.builtin.command:
cmd: "helm push {{ kubeblocks_cache }}/{{ item.addon_name }}-{{ item.version }}.tgz oci://{{ registry_host }}/helm-apecloud/"
when:
- item.state == "present"
loop: "{{ kubeblocks_add_ons }}" |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
Thank you for reaching out with your detailed question. To address your requirements for an offline Kubernetes environment using Helm exclusively, here are the steps and considerations you need to take into account:
The following are images related to deploying KubeBlocks v0.9.2:
|
Beta Was this translation helpful? Give feedback.
-
helm template stdout $CHART | grep image: | sed 's/image://;s/ //g;s/^-//;/IMAGE/d' | sort -u |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I published a solution with private OCI registry |
Beta Was this translation helpful? Give feedback.
I published a solution with private OCI registry
#8922