caiconghui commented on code in PR #17281: URL: https://github.com/apache/doris/pull/17281#discussion_r1125648784
########## docker/runtime/k8s/backend.yml: ########## @@ -0,0 +1,105 @@ +# 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: v1 +kind: Service +metadata: + name: dbe + labels: + app: dbe +spec: + ports: + - port: 9060 + name: be + - port: 8040 + name: webserver + - port: 9050 + name: heartbeat-port #This name should be fixed. Doris will get the port information through this name + - port: 8060 + name: brpc + clusterIP: None + selector: + app: dbe +--- +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: dbe + labels: + app: dbe +spec: + selector: + matchLabels: + app: dbe + serviceName: dbe + replicas: 3 + template: + metadata: + name: dbe + labels: + app: dbe + spec: + containers: + - name: dbe + #Need to change to real mirror information + image: be:test + imagePullPolicy: IfNotPresent + env: + #Specify the startup type as k8s to bypass some restrictions of the official image initialization script + - name: BUILD_TYPE + value: "k8s" + ports: + - containerPort: 9060 + name: be + - containerPort: 8040 + name: webserver + - containerPort: 9050 + name: heartbeat-port + - containerPort: 8060 + name: brpc + volumeMounts: + #Mount the configuration file in the way of configmap + - name: conf + mountPath: /opt/apache-doris/be/conf + #Ifnot mounted, when enable_profile, error will be reported when querying the data from jdbc catalog + #Error message: error setting certificate verify locations: CAfile:/etc/pki/tls/certs/ca-bundle.crt CApath: none + - name: sys + mountPath: /etc/pki + readOnly: true + volumes: + - name: conf + configMap: + name: be-conf + - name: sys + hostPath: + path: /etc/pki +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: be-conf +data: + be.conf: | + PPROF_TMPDIR="$DORIS_HOME/log/" + sys_log_level = INFO + + be_port = 9060 + webserver_port = 8040 + heartbeat_service_port = 9050 + brpc_port = 8060 + + priority_networks = 172.16.0.0/24 Review Comment: ```suggestion apiVersion: apps/v1 kind: StatefulSet metadata: name: doris-be-demo labels: app: doris-be-demo spec: selector: matchLabels: app: doris-be-demo serviceName: doris-be-demo replicas: 3 template: metadata: name: doris-be-demo labels: app: doris-be-demo spec: containers: - name: doris-be-demo #Need to change to real mirror information image: apache-doris:test imagePullPolicy: IfNotPresent env: #Specify the startup type as k8s to bypass some restrictions of the official image initialization script - name: BUILD_TYPE value: "k8s" ports: - containerPort: 9060 name: be_thrift_port - containerPort: 8040 name: be_webserver_port - containerPort: 9050 name: be_heartbeat_port - containerPort: 8060 name: be_brpc_port volumeMounts: #Mount the configuration file in the way of configmap - name: conf mountPath: /opt/apache-doris/be/conf #Ifnot mounted, when enable_profile, error will be reported when querying the data from jdbc catalog #Error message: error setting certificate verify locations: CAfile:/etc/pki/tls/certs/ca-bundle.crt CApath: none - name: sys mountPath: /etc/pki readOnly: true volumes: - name: conf configMap: name: be-conf - name: sys hostPath: path: /etc/pki --- apiVersion: v1 kind: ConfigMap metadata: name: be-conf data: be.conf: | PPROF_TMPDIR="$DORIS_HOME/log/" sys_log_level = INFO be_port = 9060 webserver_port = 8040 heartbeat_service_port = 9050 brpc_port = 8060 priority_networks = 172.16.0.0/24 ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org