--- apiVersion: apps/v1 kind: StatefulSet metadata: labels: app.kubernetes.io/component: doris-cluster-be name: doris-cluster-be namespace: bj-sh-uas-260511 spec: persistentVolumeClaimRetentionPolicy: whenDeleted: Retain whenScaled: Retain podManagementPolicy: Parallel replicas: 1 revisionHistoryLimit: 10 selector: matchLabels: app.kubernetes.io/component: doris-cluster-be serviceName: doris-cluster-be-internal template: metadata: creationTimestamp: null labels: app.kubernetes.io/component: doris-cluster-be name: doris-cluster-be spec: affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: doris-be operator: In values: - "true" podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - podAffinityTerm: labelSelector: matchExpressions: - key: app.kubernetes.io/component operator: In values: - doris-cluster-be topologyKey: kubernetes.io/hostname weight: 100 containers: - args: - $(ENV_FE_ADDR) command: - /opt/apache-doris/be_entrypoint.sh env: - name: POD_NAME valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.name - name: POD_IP valueFrom: fieldRef: apiVersion: v1 fieldPath: status.podIP - name: HOST_IP valueFrom: fieldRef: apiVersion: v1 fieldPath: status.hostIP - name: POD_NAMESPACE valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.namespace - name: CONFIGMAP_MOUNT_PATH value: /etc/doris - name: USER value: root - name: DORIS_ROOT value: /opt/apache-doris - name: ENV_FE_ADDR value: doris-cluster-fe-service - name: FE_QUERY_PORT value: "9030" image: 192.168.3.31:8088/cmii/doris.be-ubuntu:2.1.6 imagePullPolicy: IfNotPresent lifecycle: preStop: exec: command: - /opt/apache-doris/be_prestop.sh livenessProbe: failureThreshold: 3 initialDelaySeconds: 80 periodSeconds: 5 successThreshold: 1 tcpSocket: port: 9050 timeoutSeconds: 180 name: be ports: - containerPort: 9060 name: be-port protocol: TCP - containerPort: 8040 name: webserver-port protocol: TCP - containerPort: 9050 name: heartbeat-port protocol: TCP - containerPort: 8060 name: brpc-port protocol: TCP readinessProbe: failureThreshold: 3 httpGet: path: /api/health port: 8040 scheme: HTTP periodSeconds: 5 successThreshold: 1 timeoutSeconds: 1 resources: limits: cpu: "8" memory: 28Gi requests: cpu: "2" memory: 16Gi securityContext: capabilities: add: - SYS_RESOURCE - IPC_LOCK runAsUser: 0 startupProbe: failureThreshold: 60 periodSeconds: 5 successThreshold: 1 tcpSocket: port: 9050 timeoutSeconds: 1 terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /etc/podinfo name: podinfo - mountPath: /opt/apache-doris/be/storage name: be-storage - mountPath: /opt/apache-doris/be/log name: be-log - mountPath: /etc/doris name: doris-cluster-be-conf dnsPolicy: ClusterFirst hostname: $(POD_NAME) imagePullSecrets: - name: harborsecret initContainers: - args: - -c - sysctl -w vm.max_map_count=2000000 ; swapoff -a ; ulimit -n 655350 command: - /bin/sh image: 192.168.3.31:8088/cmii/alpine:3.23.0 imagePullPolicy: IfNotPresent name: default-init resources: limits: cpu: "1" memory: 1Gi requests: cpu: 500m memory: 500Mi securityContext: privileged: true terminationMessagePath: /dev/termination-log terminationMessagePolicy: File restartPolicy: Always schedulerName: default-scheduler securityContext: {} subdomain: doris-cluster-be-internal terminationGracePeriodSeconds: 30 volumes: - downwardAPI: defaultMode: 420 items: - fieldRef: apiVersion: v1 fieldPath: metadata.labels path: labels - fieldRef: apiVersion: v1 fieldPath: metadata.annotations path: annotations name: podinfo - configMap: defaultMode: 420 name: doris-cluster-be-conf name: doris-cluster-be-conf - name: be-storage persistentVolumeClaim: claimName: doris-be-storage-pvc - name: be-log persistentVolumeClaim: claimName: doris-fe-log-pvc updateStrategy: rollingUpdate: partition: 0 type: RollingUpdate