ska-tango-operator

command module
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

README

ska-tango-operator

This project is an extension of k8s with a Custom Resource Definition (CRD i.e. Device Server and Databaseds) and a Controller to give custom behaviours in order to have a better usage of TANGO-controls in kubernetes.

Installation

This project is structured to use k8s for development and testing so that the build environment, test environment and test results are all completely reproducible and are independent of host environment. It uses make to provide a consistent UI (run make help for targets documentation).

Install docker

Follow the instructions available at here.

Install minikube

You will need to install minikube or equivalent k8s installation in order to set up your test environment. You can follow the instruction at here:

git clone git@gitlab.com:ska-telescope/sdi/deploy-minikube.git
cd deploy-minikube
make all
eval $(minikube docker-env)

Please note that the command eval $(minikube docker-env) will point your local docker client at the docker-in-docker for minikube. Use this only for building the docker image and another shell for other work.

Install GO

Follow the instructions available at here.

How to Use

Install the operator with the following command:

$ git clone git@gitlab.com:ska-telescope/ska-tango-operator.git
$ cd ska-tango-operator
$ git submodule update --init --recursive
$ make k8s-install-chart

Install the example with the following command:

$ kubectl apply -f config/samples/all-in-one.yml

Check what's happening with the following commands:

$ kubectl get deviceserver
$ kubectl get databaseds

Uninstall the examples and the operator with the following commands:

$ kubectl delete -f config/samples/all-in-one.yml
$ make k8s-uninstall-chart

Generate the charts

The charts available in this repository are generated with the following commands:

$ make helm-operator
$ make helm-crd

External references and other information

  • This project has been made with the help of an operator SDK called kubebuilder written in GO.
  • The databaseds is a Device server as any other and technically can be defined as device server.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1
Go imports
Go imports
Package utils contains the utility functions for the tango-operator
Package utils contains the utility functions for the tango-operator

Jump to

Keyboard shortcuts

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