Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add oceanbase #5

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/applications.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

146 changes: 0 additions & 146 deletions README.md

This file was deleted.

2 changes: 1 addition & 1 deletion debug/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ CMD kubectl apply -f recommended.yaml

## What can this CloudImage do

This CloudImage contains a debug:ubuntu docker image which may needed by `sealer debug`. You can see [sealer debug document](../../docs/debug/README.md) to see how to use `sealer debug`.
This CloudImage contains a debug:ubuntu docker image which may needed by `sealer debug`. You can see [sealer debug document](../../main/debug/README.md) to see how to use `sealer debug`.

12 changes: 12 additions & 0 deletions oceanbase/Kubefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM kubernetes:v1.19.8
COPY openebs-operator.yaml etc/
COPY cstor-operator.yaml etc/
COPY crd.yaml etc/
COPY operator.yaml etc/
COPY obcluster.yaml etc/
COPY imageList manifests
CMD kubectl apply -f etc/openebs-operator.yaml
CMD kubectl apply -f etc/cstor-operator.yaml
CMD kubectl apply -f etc/crd.yaml
CMD kubectl apply -f etc/operator.yaml
CMD kubectl apply -f etc/obcluster.yaml
61 changes: 61 additions & 0 deletions oceanbase/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Overview
The ob-operator allows OceanBase to run seamlessly on public cloud or privately deployed Kubernetes clusters in the form
of containers.See [ob-operator installation](https://github.com/oceanbase/ob-operator/blob/master/README.md)

## How to use it

1, Three files are required for deployment.

* crd.yaml
* operator.yaml
* obcluster.yaml

2, Modify configuration files before deployment.

a. configuration operator.yaml

The --cluster-name startup parameter is recommended to be the same as the Kubernetes cluster name.

b. Configure node label.

The Kubernetes nodes need to be labeled with labels that match nodeSelector configuration in obcluster.yaml. Ob-operator
will schedule the Pod to the node with the corresponding label.You are advised to set the key of the label to `topology.kubernetes.io/zone`
you can use label plugin.For example label.yaml:

```shell
apiVersion: sealer.aliyun.com/v1alpha1
kind: Plugin
metadata:
name: MyLabel
spec:
type: LABEL
action: PreGuest
data: |
192.168.0.2 topology.kubernetes.io/zone=zonename
```

3, kubefile context

Kubefile:

```shell
FROM kubernetes:v1.19.8
COPY openebs-operator.yaml etc/
COPY cstor-operator.yaml etc/
COPY crd.yaml etc/
COPY operator.yaml etc/
COPY obcluster.yaml etc/
COPY label.yaml plugins
COPY imageList manifests
CMD kubectl apply -f etc/openebs-operator.yaml
CMD kubectl apply -f etc/cstor-operator.yaml
CMD kubectl apply -f etc/crd.yaml
CMD kubectl apply -f etc/operator.yaml
CMD kubectl apply -f etc/obcluster.yaml
```

## How to build it

```shell
sealer build -f Kubefile -t {Your Image Name} .
```
Loading