GithubHelp home page GithubHelp logo

owen-carter / ob-operator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oceanbase/ob-operator

0.0 0.0 0.0 2.44 MB

License: Other

Shell 0.56% Go 98.03% Makefile 0.68% Smarty 0.23% Dockerfile 0.49%

ob-operator's Introduction

What is ob-operator

The ob-operator is a Kubernetes operator that simplifies the deployment and management of OceanBase clusters on Kubernetes.

Quick Start

Deploy ob-operator

Using Helm

Helm is a package management tool for Kubernetes, please refer to the helm documentation to install the helm client.

helm repo add ob-operator https://oceanbase.github.io/ob-operator/
helm install ob-operator ob-operator/ob-operator --namespace=oceanbase-system --create-namespace  --version=1.1.0

Using configuration file

The configuration files are located under deploy directory, using the following commands to deploy ob-operator.

# Deploy CRD
kubectl apply -f deploy/crd.yaml
# Deploy ob-operator
kubectl apply -f deploy/operator.yaml

Deploy OceanBase cluster

Customize configuration file

deploy/obcluster.yaml defines an OceanBase cluster, including deployment topology, resources, storages etc. You can configure your own OceanBase based on this file.

Label node

Ob-operator distributes observer pods on selected nodes to achive high availablity, by matching specific labels, ob-operator knows where to locate an observer pod, the node labels must includes the labels configured under nodeSelector in deploy/obcluster.yaml. You can use the following command to label a node.

kubectl label node ${node_name} ${label_name}=${label_value}

Deploy OceanBase

Create namespace if needed, namespace should match the one in configuration file deploy/obcluster.yaml

kubectl create namespace ${namespace_name}

Using the following command to deploy OceanBase Cluster

kubectl apply -f deploy/obcluster.yaml

Connect to OceanBase Cluster

After successfully deployed OceanBase cluster, you can connect to OceanBase cluster via any observer pod's ip or the service address created by ob-operator named svc-${cluster_name}, ${cluster_name} is the name which you configured in deploy/obcluster.yaml

Contributing

Contributions are warmly welcomed and greatly appreciated. Here are a few ways you can contribute:

License

Ob-operator is licensed under the MulanPSL - 2.0 license. You can copy and use the source code freely. When you modify or distribute the source code, please follow the MulanPSL - 2.0 license.

ob-operator's People

Contributors

70data avatar alv00 avatar chris-sun-star avatar liuxinbot avatar ob-robot avatar wangzelin19961202 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.