operator

command module
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

README

Kubebuilder v2 Seldon Operator

Development

We assume:

  • Go 1.13
  • Kubebuilder 2.3.0
Issues
Prerequisites

For running locally kind, kustomize and kubebuilder should be installed.

Testing

If you installed kubebuilder outside of /usr/local/kubebuilder then you will need to set the env var KUBEBUILDER_ASSETS for example:

export KUBEBUILDER_ASSETS=/home/clive/tools/kubebuilder_2.3.0_linux_amd64/bin

Start a kind cluster

kind create cluster
export KUBECONFIG="$(kind get kubeconfig-path --name="kind")"

Install CRD and cert-manager

make install
make install-cert-manager

Build image

make docker-build

Standard Deploy

make deploy

Local Development Deploy

Deploy with webhook config set to point to host

make deploy-local

When running update tls certificates locally

make tls-extract

Now delete the cluster Deployment as we will run the manager locally:

kubectl delete deployment -n seldon-system seldon-controller-manager

Now we can run locally:

make run

You should now be able to create SeldonDeployments and Webhook calls will hit the local running manager. The same applies if you debug from GoLand. Though for GoLand you will need to export the KUBECONFIG to the debug configuration.

You should delete the Operator running in the cluster at this point.

Build Helm Chart

Use the Makefile in the ./helm directory. Ensure you have pyyaml in your python environment.

Openshift

see here

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
apis
machinelearning.seldon.io/v1
Package v1 contains API Schema definitions for the machinelearning v1 API group +kubebuilder:object:generate=true +groupName=machinelearning.seldon.io
Package v1 contains API Schema definitions for the machinelearning v1 API group +kubebuilder:object:generate=true +groupName=machinelearning.seldon.io
machinelearning.seldon.io/v1alpha2
Package v1alpha2 contains API Schema definitions for the machinelearning v1alpha2 API group +kubebuilder:object:generate=true +groupName=machinelearning.seldon.io
Package v1alpha2 contains API Schema definitions for the machinelearning v1alpha2 API group +kubebuilder:object:generate=true +groupName=machinelearning.seldon.io
machinelearning.seldon.io/v1alpha3
Package v1alpha3 contains API Schema definitions for the machinelearning v1alpha3 API group +kubebuilder:object:generate=true +groupName=machinelearning.seldon.io
Package v1alpha3 contains API Schema definitions for the machinelearning v1alpha3 API group +kubebuilder:object:generate=true +groupName=machinelearning.seldon.io
client
machinelearning.seldon.io/v1/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
machinelearning.seldon.io/v1/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
machinelearning.seldon.io/v1/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
machinelearning.seldon.io/v1/clientset/versioned/typed/machinelearning.seldon.io/v1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
Package fake has the automatically generated clients.
machinelearning.seldon.io/v1alpha2/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
machinelearning.seldon.io/v1alpha2/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
machinelearning.seldon.io/v1alpha2/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
This package has the automatically generated typed clients.
Package fake has the automatically generated clients.
machinelearning.seldon.io/v1alpha3/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
machinelearning.seldon.io/v1alpha3/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
machinelearning.seldon.io/v1alpha3/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
This package has the automatically generated typed clients.
Package fake has the automatically generated clients.
k8s

Jump to

Keyboard shortcuts

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