rpaas-operator

module
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: BSD-3-Clause

README

RPaaS Operator

This project has two parts: operator and API

Operator

The operator is responsible for managing RPaaS instances running inside the cluster.

Running locally
make local
Running in Kubernetes
  • build the docker image: make build
  • push the image to a registry accessible from your cluster: docker push ...
  • make deploy

API

The API doesn't need to run inside Kubernetes, but it needs credentials to access Kubernetes API, to manage RPaaS instances, binds and plans.

It follows tsuru service API contract.

Running locally

To run outside the cluster, it needs a KUBECONFIG env var, pointing to your Kubernetes configuration. Start the API with:

make api
Running in Kubernetes

When running inside the cluster, the API knows how to get the required credentials. Follow these steps:

  • build the docker image: docker build . -t my-registry/tsuru/rpaas-api
  • push the image to a registry accessible from your cluster: docker push my-registry/tsuru/rpaas-api
  • start with kubectl apply -f deploy/api.yaml

Directories

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

Jump to

Keyboard shortcuts

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