diff --git a/doc/examples/disaggregated/cluster/ddc-affinity.yaml b/doc/examples/disaggregated/cluster/ddc-affinity.yaml new file mode 100644 index 00000000..dd526608 --- /dev/null +++ b/doc/examples/disaggregated/cluster/ddc-affinity.yaml @@ -0,0 +1,58 @@ +# 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: disaggregated.cluster.doris.com/v1 +kind: DorisDisaggregatedCluster +metadata: + name: test-disaggregated-cluster +spec: + metaService: + image: apache/doris:ms-3.0.3 + fdb: + configMapNamespaceName: + name: test-cluster-config + namespace: default + feSpec: + replicas: 2 + image: apache/doris:fe-3.0.3 + computeGroups: + - uniqueId: cg1 + replicas: 3 + image: apache/doris:be-3.0.3 + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: kubernetes.io/os + operator: In + values: + - linux + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + # The operator has built-in affinity rules, with a default weight of 20. If you need to override, please set a weight greater than 20. + - weight: 30 + podAffinityTerm: + labelSelector: + matchLabels: + {label_name}: {label_values} + topologyKey: kubernetes.io/hostname + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchLabels: + {label_name}: {label_values} + topologyKey: kubernetes.io/hostname \ No newline at end of file diff --git a/doc/examples/disaggregated/cluster/ddc-pwd-secret.yaml b/doc/examples/disaggregated/cluster/ddc-pwd-secret.yaml new file mode 100644 index 00000000..57aea1d2 --- /dev/null +++ b/doc/examples/disaggregated/cluster/ddc-pwd-secret.yaml @@ -0,0 +1,41 @@ +# 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: disaggregated.cluster.doris.com/v1 +kind: DorisDisaggregatedCluster +metadata: + name: test-disaggregated-cluster +spec: + # the name of secret that type is `kubernetes.io/basic-auth` and contains keys username, password for management doris node in cluster as fe, be register. + # the password key is `password`. the username defaults to `root` and is omitempty. + authSecret: {secret_name} + metaService: + image: apache/doris:ms-3.0.3 + fdb: + configMapNamespaceName: + name: test-cluster-config + namespace: default + feSpec: + replicas: 2 + image: apache/doris:fe-3.0.3 + computeGroups: + - uniqueId: cg1 + replicas: 3 + image: apache/doris:be-3.0.3 + - uniqueId: cg2 + replicas: 3 + image: apache/doris:be-3.0.3 \ No newline at end of file diff --git a/doc/examples/disaggregated/cluster/ddc-pwd.yaml b/doc/examples/disaggregated/cluster/ddc-pwd.yaml new file mode 100644 index 00000000..050720da --- /dev/null +++ b/doc/examples/disaggregated/cluster/ddc-pwd.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: disaggregated.cluster.doris.com/v1 +kind: DorisDisaggregatedCluster +metadata: + name: test-disaggregated-cluster +spec: + adminUser: + name: {username} + # This method will store the password in plain text. If you need to encrypt it, please refer to 'ddc-pwd-secret.yaml' + password: {password} + metaService: + image: apache/doris:ms-3.0.3 + fdb: + configMapNamespaceName: + name: test-cluster-config + namespace: default + feSpec: + replicas: 2 + image: apache/doris:fe-3.0.3 + computeGroups: + - uniqueId: cg1 + replicas: 3 + image: apache/doris:be-3.0.3 + - uniqueId: cg2 + replicas: 3 + image: apache/doris:be-3.0.3 \ No newline at end of file