Skip to content
This repository has been archived by the owner on Oct 15, 2019. It is now read-only.

SUSE/registries-operator

Repository files navigation

alpha CircleCI Go Report Card Build Status Master branch

Registry operator:

Description

A Docker registries operator for Kubernetes, developed inside the Kubic project.

features:

  • Automatic installation of registries certificates based on some CRDs.

Quick start

  • load the operator with

    kubectl apply -f https://raw.githubusercontent.com/kubic-project/registries-operator/master/deployments/registries-operator-full.yaml
    
  • once the operator is running, store the certificate for your registry in a Secret with:

    kubectl create secret generic suse-ca-crt --from-file=ca.crt=/etc/pki/trust/anchors/SUSE_CaaSP_CA.crt -n kube-system
    

    where /etc/pki/trust/anchors/SUSE_CaaSP_CA.crt is the certificate and suse-ca-crt is the Secret.

  • create a Registry object like this:

    # registry.yaml
    apiVersion: "kubic.opensuse.org/v1beta1"
    kind: Registry
    metadata:
      name: suse-registry
      namespace: kube-system
    spec:
      hostPort: "registry.suse.de:5000"
      # secret with the ca.crt used for pulling images from this registry
      certificate:
        name: suse-ca-crt
        namespace: kube-system

    then you can load it with kubectl apply -f registry.yaml.

  • once this is done, the suse-ca-crt should automatically appear in all the machines in your cluster, and all the Docker daemons in your cluster will be able to pull from that registry automatically.

Devel

Extra