SUSE / registries-operator

A Kubernetes operator for images registries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A Kubernetes operator for images registries

License:Apache License 2.0


Languages

Language:Go 85.8%Language:Makefile 8.6%Language:Shell 4.6%Language:Dockerfile 1.0%