|
| 1 | + |
| 2 | + |
| 3 | +> English | [中文](README_zh.md) |
| 4 | +
|
| 5 | +## What is RadonDB PostgreSQL |
| 6 | + |
| 7 | +[PostgreSQL](https://www.postgresql.org/) The World's Most Advanced Open Source Relational Database. |
| 8 | + |
| 9 | +[RadonDB PostgreSQL](https://github.com/radondb/multi-platform-postgresql) High availability, High scalability, QingCloud Publish Open Source, PostgreSQL Operator On K8s and Machine. |
| 10 | + |
| 11 | +RadonDB PostgreSQL Kubernetes supports [Kubernetes](https://kubernetes.io) or machine platforms. |
| 12 | + |
| 13 | +## QuickStarts |
| 14 | + |
| 15 | +👀 This tutorial demonstrates how to deploy a RadonDB PostgreSQL cluster (Operator) on Kubernetes. |
| 16 | + |
| 17 | +## Preparation |
| 18 | + |
| 19 | +📦 Prepare a Kubernetes cluster. |
| 20 | + |
| 21 | +## Steps |
| 22 | + |
| 23 | +### Step 1: Deploy RadonDB PostgreSQL Operator |
| 24 | + |
| 25 | +Please select a method to deploy RadonDB PostgreSQL Operator. |
| 26 | +1. By Helm |
| 27 | +2. By Kubectl |
| 28 | + |
| 29 | +#### a. By Helm |
| 30 | + |
| 31 | +##### 1) Add a Helm repository. |
| 32 | + |
| 33 | +```plain |
| 34 | +helm repo add radondb-postgresql https://radondb.github.io/multi-platform-postgresql/ |
| 35 | +``` |
| 36 | + |
| 37 | +##### 2) Install Operator. |
| 38 | + |
| 39 | +Create a [Deployment](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/) named `radondb-postgres-operator`. |
| 40 | + |
| 41 | +```plain |
| 42 | +helm install demo radondb-postgresql/postgres-operator |
| 43 | +``` |
| 44 | +> **Notice** |
| 45 | +
|
| 46 | +> This step also creates the [CRD](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/) required by the cluster. |
| 47 | +
|
| 48 | +#### b. By Kubectl |
| 49 | + |
| 50 | +##### 1) Create `radondb-postgres-operator` namespace |
| 51 | + |
| 52 | +```plain |
| 53 | +kubectl create ns radondb-postgres-operator |
| 54 | +``` |
| 55 | + |
| 56 | +##### 2) Install Operator. |
| 57 | + |
| 58 | +```plain |
| 59 | +kubectl apply -f https://raw.githubusercontent.com/radondb/multi-platform-postgresql/V3.0.0/platforms/kubernetes/postgres-operator/deploy/postgres-operator.yaml |
| 60 | +``` |
| 61 | + |
| 62 | +### Step 2: Deploy a RadonDB PostgreSQL Cluster. |
| 63 | + |
| 64 | +Run the following command to create an instance of the `postgresqls.postgres.radondb.io` CRD and thereby create a RadonDB PostgreSQL cluster by using the default parameters. |
| 65 | + |
| 66 | +```plain |
| 67 | +curl https://raw.githubusercontent.com/radondb/multi-platform-postgresql/V3.0.0/platforms/kubernetes/postgres-operator/deploy/postgresql.yaml | sed -e "s/image: /image: radondb\//g" > postgresql.yaml |
| 68 | +kubectl apply -f postgresql.yaml |
| 69 | +``` |
| 70 | + |
| 71 | +## License |
| 72 | + |
| 73 | +See [LICENSE](License) for more information. |
| 74 | + |
| 75 | +## Welcome to join us ❤️ |
| 76 | + |
| 77 | +😊 Website: [https://radondb.com/](https://radondb.com/en/) |
| 78 | + |
| 79 | +😁 Forum: Please join the [RadonDB](https://kubesphere.com.cn/forum/t/RadonDB) section of kubesphere Developer Forum. |
| 80 | + |
| 81 | +🦉 Community WeChat group: Please add the group assistant **radondb** to invite you into the group. |
| 82 | + |
| 83 | +For any bugs, questions, or suggestions about RadonDB multi-platform-postgresql, please create an [issue](https://github.com/radondb/multi-platform-postgresql/issues) on GitHub or feedback on the [forum](https://kubesphere.com.cn/forum/t/RadonDB). |
| 84 | + |
0 commit comments