# 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: doris-be-cluster1 labels: app: doris-be-cluster1 spec: ports: - port: 9060 name: be-port - port: 8040 name: webserver-port - port: 9050 name: heartbeat-port #This name should be fixed. Doris will get the port information through this name - port: 8060 name: brpc-port clusterIP: None selector: app: doris-be-cluster1 --- apiVersion: apps/v1 kind: StatefulSet metadata: name: doris-be-cluster1 labels: app: doris-be-cluster1 spec: selector: matchLabels: app: doris-be-cluster1 serviceName: doris-be-cluster1 replicas: 3 template: metadata: name: doris-be-cluster1 labels: app: doris-be-cluster1 spec: containers: - name: doris-be-cluster1 #Need to change to real mirror information image: apache-doris-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-port - containerPort: 8040 name: webserver-port - containerPort: 9050 name: heartbeat-port - containerPort: 8060 name: 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