registries-operator

module
v0.0.0-...-9fe8468 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2019 License: Apache-2.0

README

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

Directories

Path Synopsis
cmd
pkg
apis
Package apis contains Kubernetes API groups.
Package apis contains Kubernetes API groups.
apis/kubic
Package kubic contains kubic API versions
Package kubic contains kubic API versions
apis/kubic/v1beta1
Package v1beta1 contains API Schema definitions for the kubic v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/kubic-project/registries-operator/pkg/apis/kubic +k8s:defaulter-gen=TypeMeta +groupName=kubic.opensuse.org Package v1beta1 contains API Schema definitions for the kubic v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/kubic-project/registries-operator/pkg/apis/kubic +k8s:defaulter-gen=TypeMeta +groupName=kubic.opensuse.org
Package v1beta1 contains API Schema definitions for the kubic v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/kubic-project/registries-operator/pkg/apis/kubic +k8s:defaulter-gen=TypeMeta +groupName=kubic.opensuse.org Package v1beta1 contains API Schema definitions for the kubic v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/kubic-project/registries-operator/pkg/apis/kubic +k8s:defaulter-gen=TypeMeta +groupName=kubic.opensuse.org
config
Package config contains the registries-operator configuration structures and associated functions
Package config contains the registries-operator configuration structures and associated functions
test
Package test contains specific test utilities which can be used by operator
Package test contains specific test utilities which can be used by operator

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL