fdb-kubernetes-operator

module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: Apache-2.0

README

Overview

This project provides an experimental operator for managing FoundationDB clusters on Kubernetes.

Local Development

Environment Set-up

  1. Install GO on your machine, see the Getting Started guide for more information.
  2. Install KubeBuilder and its dependencies on your machine, see The KubeBuilder Book for more information.
  3. Set your $GOPATH, e.x. /Users/me/Code/go
  4. Install kustomize.

Running Locally

To get this controller running in a local Kubernetes cluster:

  1. Change your current directory to $GOPATH/src/github.com using the command cd $GOPATH/src/github.com and run mkdir foundationdb to create the directory foundationdb.
  2. CD into newly created directory and clone this github repo inside the created directory that is foundationdb.
  3. Run config/test-certs/generate_secrets.bash to set up a secret with self-signed test certs.
  4. Run make rebuild-operator to install the operator.
  5. Run kubectl apply -f config/samples/local_cluster.yaml to create a new FoundationDB cluster with the operator.

You can see logs from the operator by running kubectl logs fdb-kubernetes-operator-controller-manager-0 --container=manager -f.

Directories

Path Synopsis
cmd
manager command
pkg
apis
Package apis contains Kubernetes API groups.
Package apis contains Kubernetes API groups.
apis/apps
Package apps contains apps API versions
Package apps contains apps API versions
apis/apps/v1beta1
Package v1beta1 contains API Schema definitions for the apps v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/foundationdb/fdb-kubernetes-operator/pkg/apis/apps +k8s:defaulter-gen=TypeMeta +groupName=apps.foundationdb.org Package v1beta1 contains API Schema definitions for the apps v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/foundationdb/fdb-kubernetes-operator/pkg/apis/apps +k8s:defaulter-gen=TypeMeta +groupName=apps.foundationdb.org
Package v1beta1 contains API Schema definitions for the apps v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/foundationdb/fdb-kubernetes-operator/pkg/apis/apps +k8s:defaulter-gen=TypeMeta +groupName=apps.foundationdb.org Package v1beta1 contains API Schema definitions for the apps v1beta1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/foundationdb/fdb-kubernetes-operator/pkg/apis/apps +k8s:defaulter-gen=TypeMeta +groupName=apps.foundationdb.org

Jump to

Keyboard shortcuts

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