Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[doc] 10.2 Mirror Images to Registry #1038

Open
bdekany opened this issue Dec 4, 2020 · 0 comments
Open

[doc] 10.2 Mirror Images to Registry #1038

bdekany opened this issue Dec 4, 2020 · 0 comments

Comments

@bdekany
Copy link

bdekany commented Dec 4, 2020

10.2 Mirror Images to Registry:

https://documentation.suse.com/suse-cap/2.1/single-html/cap-guides/#sec-cap-air-gap-registry

Hi,
The definition of local registry in kubecf-config-values.yaml is not working anymore

kube:
  registry:
    # example registry domain
    hostname: "myregistry.com"
    username: ""
    password: ""
  organization: "cap"
# helm install kubecf suse/kubecf -f kubecf-config-values.yaml  --dry-run
Error: values don't meet the specifications of the schema(s) in the following chart(s):
kubecf:
- kube: Additional property organization is not allowed
- kube: Additional property registry is not allowed

To be able to use local registry, we have to either:

  • Use registry proxy in docker config or cri-o config
  • Modify helm chart

Cri-O /etc/containers/registries.conf

[[registry]]
prefix = "registry.suse.com"
location = "myregistry.com"
insecure = true

Docker /etc/docker/daemon.json

"registry-mirrors": ["myregistry.com"],

Modify Helm chart

helm fetch suse/cf-operator
tar zxvf cf-operator-6.1.17+0.gec409fd7.tgz
cd cf-operator/
for f in $(grep -lr registry.suse.com) ; do echo $f ;  sed -i "s/registry.suse.com/myregistry.com/"  $f ; done
cd ..

helm fetch suse/kubecf
tar zxvf kubecf-2.5.8.tgz
cd kubecf
for f in $(grep -lr registry.suse.com) ; do echo $f ;  sed -i "s/registry.suse.com/myregistry.com/"  $f ; done
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant