cdap-operator

module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: Apache-2.0, BSD-3-Clause

README

Kubernetes operator for CDAP

Project Status

Alpha

The CDAP Operator is still under active development and has not been extensively tested in production environment. Backward compatibility of the APIs is not guaranteed for alpha releases.

Prerequisites

  • Version >= 1.9 of Kubernetes.
  • Version >= 6.0.0 of CDAP

Quick Start

Build and Run Locally

You can checkout the CDAP Operator source code, build and run locally. To build the CDAP Operator, you need to setup your environment for the Go language. Also, you should have a Kubernetes cluster

  1. Checkout CDAP Operator source
    mkdir -p $GOPATH/src/cdap.io
    cd $GOPATH/src/cdap.io
    git clone https://github.com/cdapio/cdap-operator.git
    cd cdap-operator
    
  2. Generates and install the CRDs
    make install
    
  3. Compiles and run the CDAP Operator
    make run
    
  4. Deploy CDAP CRD to the cluster
    kubectl apply -f config/crds
    
  5. Edit the sample CDAP CR and deploy to the cluster
    kubectl apply -f config/samples/cdap_v1alpha1_cdapmaster.yaml
    
Build Controller Docker Image and Deploy in Kubernetes

You can also build a docker image containing the CDAP controller and deploy it to Kubernetes.

  1. Build the docker image
    IMG=cdap-controller:latest make docker-build
    
    You can change the target image name and tag by setting the IMG environment variable.
  2. Push the docker image
    IMG=cdap-controller:latest make docker-push
    
  3. Deploy CDAP CRD and RBAC to the cluster
    make deploy
    
Using CDAP operator to manage CDAP instances in Kubernetes

A step by step guide of running CDAP in Kubernetes using CDAP operator can be found in the blog post.

Directories

Path Synopsis
cmd
pkg
apis
Package apis contains Kubernetes API groups.
Package apis contains Kubernetes API groups.
apis/cdap
Package cdap contains cdap API versions
Package cdap contains cdap API versions
apis/cdap/v1alpha1
Package v1alpha1 contains API Schema definitions for the cdap v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=cdap.io/cdap-operator/pkg/apis/cdap +k8s:defaulter-gen=TypeMeta +groupName=cdap.cdap.io Package v1alpha1 contains API Schema definitions for the cdap v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=cdap.io/cdap-operator/pkg/apis/cdap +k8s:defaulter-gen=TypeMeta +groupName=cdap.cdap.io
Package v1alpha1 contains API Schema definitions for the cdap v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=cdap.io/cdap-operator/pkg/apis/cdap +k8s:defaulter-gen=TypeMeta +groupName=cdap.cdap.io Package v1alpha1 contains API Schema definitions for the cdap v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=cdap.io/cdap-operator/pkg/apis/cdap +k8s:defaulter-gen=TypeMeta +groupName=cdap.cdap.io

Jump to

Keyboard shortcuts

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