apicurio-registry

module
v0.0.0-...-3b6f037 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: Apache-2.0

README

Apicurio Registry Operator

Requirements

  • Docker
  • go (1.13+, with export GO111MODULE='on'), and $GOPATH and $GOROOT set.
  • Operator SDK v0.9.0+
  • A running Kubernetes or Minikube cluster, with system:admin access.

Build

Clone this repo under your $GOPATH/src dir and cd inside.

Pick a registry, e.g. quay.io and use build.sh script (or Operator SDK directly) to build the image:

$ ./build.sh build -r "$REGISTRY"

And push it to the registry:

$ ./build.sh push -r "$REGISTRY"

Installation

If you are testing on minikube, you can use the following commands to deploy and undeploy the operator, respectively, with an example CR:

$ ./build.sh mkdeploy -r "$REGISTRY"
$ ./build.sh mkundeploy -r "$REGISTRY"

Or you can perform the steps manually (see the build.sh):

  1. Create resources and resource definitions on your cluster:
$ kubecl create -f deploy/service_account.yaml
$ kubecl create -f deploy/role.yaml
$ kubecl create -f deploy/role_binding.yaml
  1. Create operator CRD:
$ kubecl create -f deploy/crds/apicur_v1alpha1_apicurioregistry_crd.yaml
  1. Deploy the operator:
$ kubecl create -f deploy/operator.yaml
  1. Create an example deployment of Apicurio Registry (mem) using the operator:
$ kubecl create -f apicur_v1alpha1_apicurioregistry_cr.yaml

Verify the deployment is active:

$ kubecl get deployments
$ kubecl get pods

(If the host is configured using minikube ip and /etc/hosts :)

$ curl -v http://registry.example.com/health

Development

Use the script to see the steps to build manually.

Apicurio Registry CRD

TODO

Note

This operator is in alpha stage, which means that while it's working and is able to replace the registry templates, some planned features are not implemented yet.

It's been tested on minikube, but it has not been released on operator hub.

Directories

Path Synopsis
cmd
pkg
apis/apicur
Package registry contains registry API versions.
Package registry contains registry API versions.
apis/apicur/v1alpha1
Package v1alpha1 contains API Schema definitions for the registry v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=apicur.io Package v1alpha1 contains API Schema definitions for the registry v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=apicur.io
Package v1alpha1 contains API Schema definitions for the registry v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=apicur.io Package v1alpha1 contains API Schema definitions for the registry v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=apicur.io

Jump to

Keyboard shortcuts

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