Skip to content

Instantly share code, notes, and snippets.

@usrbinkat
Last active February 3, 2021 23:03
Show Gist options
  • Save usrbinkat/126002ab0660d05f822920e17abe07a1 to your computer and use it in GitHub Desktop.
Save usrbinkat/126002ab0660d05f822920e17abe07a1 to your computer and use it in GitHub Desktop.
CloudCtl | Connected Mirror

Prereqs

  1. Follow CloudCtl startup Readme
  2. Run the following as root from the directory cd /root/

Write koffer.yml

cat <<EOF | tee ~/koffer.yml
koffer:
  silent: false
  mirror: localhost:5000
  plugins:
    collector-ocp:
      version: master
      organization: codesparta
      service: github.com
      env:
        - name: "VERSION"
          value: "latest"
EOF

Run Koffer

podman run -it --rm --pull always --volume ${HOME}/koffer.yml:/root/.koffer/config.yml:z --volume ${HOME}/platform:/root/platform:z quay.io/cloudctl/koffer:latest bundle

Append install-config.yaml (full example for aws)

 cat /root/platform/secrets/cloudctl/certs/ssl/server/cloudctl.crt
additionalTrustBundle: |
  -----BEGIN CERTIFICATE-----
  MIIGLzCCBBegAwIBAgIUZKjOTwIGD5IG82RovuQBE+pz1ugwDQYJKoZIhvcNAQEL
  BQAwIjEgMB4GA1UEAwwXcmVnaXN0cnkua25veC5yZWRoYXQuaW8wHhcNMjEwMTI2
  M2/2Kvr................................................iocZ61UYR
  yV5MTmfKKg2yOrbRWS1pXI26secOkpFg1tvz5yWfhNr6oNCzOEJLm4fNa/kyuefD
  shp/RI8xeNYPMBg5UhEpppnfwU26fiDl7d5ZkBPZddelzrXF6sViWlemZyLuH4Qh
  RvJx
  -----END CERTIFICATE-----
imageContentSources:
- mirrors:
  - ${CLOUDCTL_FQDN_OR_ADDRESS}:5000/openshift-release-dev
  source: quay.io/openshift-release-dev/ocp-release
- mirrors:
  - ${CLOUDCTL_FQDN_OR_ADDRESS}:5000/openshift-release-dev
  source: quay.io/openshift-release-dev/ocp-v4.0-art-dev

Validate

 sudo podman exec -it konductor connect
 du -sh /root/platform/mirror/docker
 curl -ks -u 'cloudctl:cloudctl' https://10.88.0.1:5000/v2/_catalog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment