Coder Social home page Coder Social logo

presto-kubernetes-operator's Introduction

Presto Kubernetes Operator

Kubernetes is an open source container orchestration engine for automating deployment, scaling, and management of containerized applications. Operators are software extensions to Kubernetes that make use of custom resources to manage applications and their components. Operators follow Kubernetes principles, notably the control loop.

Use this operator to manage Presto clusters which are deployed as custom resources. In short, the task of configuring, creating, managing, automatically scaling up and scaling-in of Presto cluster(s) in a Kubernetes environment has been made simple, easy and quick.

Deploying Operator

Deploying Operator - Locally

Step 1: Enable metrics server for k8s, if not already enabled. See this. This is needed for horizontal pod autoscaling.

Step 2: Build the operator

$ go build  -o presto-kubernetes-operator cmd/manager/main.go 

Step 3: Deploy the CRD

$  kubectl apply -f    deploy/crds/prestodb.io_prestos_crd.yaml

Step 4: Start the controller with the right credentials

$ ./presto-kubernetes-operator -kubeconfig /home/hemant/.kube/config

Deploying Operator - GKE

Step 1: Enable metrics server for GKE, if not already enabled. See this. This is needed for horizontal pod autoscaling.

Step 2: Create Operator Image Using Google CloudBuild

$ docker/gcloudDockerBuild.sh

Step 3: Deploy the CRD

$  kubectl apply -f    deploy/crds/prestodb.io_prestos_crd.yaml

Step 4: Update the Operator yaml with image name

# Here gcr.io/fluid-tangent-249303/presto-kubernetes-operator is the name of image. 
# Replace it with your image name
$ sed -i 's/REPLACE_IMAGE/gcr.io\/fluid-tangent-249303\/presto-kubernetes-operator/g' deploy/operator.yaml

Step 5: Launch the operator

$ kubectl apply -f deploy/operator.yaml

Deploy Presto Cluster

Deploy the presto cluster

$ ## Deploy Presto
$ kubectl apply -f deploy/crds/prestodb.yaml  

Further Details

Community support

Slack Slack

presto-kubernetes-operator's People

Contributors

falaricaanalytics avatar hbhanawat avatar tdcmeehan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.