You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by mi...@apache.org on 2023/05/10 09:15:04 UTC

[shardingsphere-on-cloud] branch main updated: chore(storage-node): add example of storage node

This is an automated email from the ASF dual-hosted git repository.

miaoliyao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shardingsphere-on-cloud.git


The following commit(s) were added to refs/heads/main by this push:
     new 920eeb3  chore(storage-node): add example of storage node
     new 1fa28b7  Merge pull request #356 from Xu-Wentao/examples
920eeb3 is described below

commit 920eeb33726b1e7a1fa51dcdac143ac186bf8a5c
Author: xuwentao <cu...@yahoo.com>
AuthorDate: Wed May 10 16:54:06 2023 +0800

    chore(storage-node): add example of storage node
---
 ...ngsphereproxy-storagenode-aws-rds-instance.yaml | 42 ++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/examples/operator/shardingsphereproxy-storagenode-aws-rds-instance.yaml b/examples/operator/shardingsphereproxy-storagenode-aws-rds-instance.yaml
new file mode 100644
index 0000000..ab30502
--- /dev/null
+++ b/examples/operator/shardingsphereproxy-storagenode-aws-rds-instance.yaml
@@ -0,0 +1,42 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+---
+apiVersion: core.database-mesh.io/v1alpha1
+kind: DatabaseClass
+metadata:
+  name: aws-rds-instance-mysql-5.7
+spec:
+  provisioner: databaseclass.database-mesh.io/aws-rds-instance
+  reclaimPolicy: Delete
+  parameters:
+    allocatedStorage: "20"
+    masterUsername: "root"
+    masterUserPassword: "root123456"
+    instanceClass: "db.t3.micro"
+    engine: "mysql"
+    engineVersion: "5.7"
+
+---
+apiVersion: shardingsphere.apache.org/v1alpha1
+kind: StorageNode
+metadata:
+  name: storage-node-example-1
+  annotations:
+    databaseclass.database-mesh.io/instance-identifier: "storage-node-example-1"
+spec:
+  databaseClassName: "aws-rds-instance-mysql-5.7"