174 lines
5.0 KiB
YAML
174 lines
5.0 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/component: doris-cluster-fe
|
|
name: doris-cluster-fe
|
|
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-fe
|
|
serviceName: doris-cluster-fe-internal
|
|
template:
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
app.kubernetes.io/component: doris-cluster-fe
|
|
name: doris-cluster-fe
|
|
spec:
|
|
affinity:
|
|
podAntiAffinity:
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
- podAffinityTerm:
|
|
labelSelector:
|
|
matchExpressions:
|
|
- key: app.kubernetes.io/component
|
|
operator: In
|
|
values:
|
|
- doris-cluster-fe
|
|
topologyKey: kubernetes.io/hostname
|
|
weight: 100
|
|
containers:
|
|
- args:
|
|
- $(ENV_FE_ADDR)
|
|
command:
|
|
- /opt/apache-doris/fe_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"
|
|
- name: ELECT_NUMBER
|
|
value: "3"
|
|
image: 192.168.3.31:8088/cmii/doris.fe-ubuntu:2.1.6
|
|
imagePullPolicy: IfNotPresent
|
|
lifecycle:
|
|
preStop:
|
|
exec:
|
|
command:
|
|
- /opt/apache-doris/fe_prestop.sh
|
|
livenessProbe:
|
|
failureThreshold: 3
|
|
initialDelaySeconds: 80
|
|
periodSeconds: 5
|
|
successThreshold: 1
|
|
tcpSocket:
|
|
port: 9030
|
|
timeoutSeconds: 180
|
|
name: doris-cluster-fe
|
|
ports:
|
|
- containerPort: 8030
|
|
name: http-port
|
|
protocol: TCP
|
|
- containerPort: 9020
|
|
name: rpc-port
|
|
protocol: TCP
|
|
- containerPort: 9030
|
|
name: query-port
|
|
protocol: TCP
|
|
- containerPort: 9010
|
|
name: edit-log-port
|
|
protocol: TCP
|
|
readinessProbe:
|
|
failureThreshold: 3
|
|
httpGet:
|
|
path: /api/health
|
|
port: 8030
|
|
scheme: HTTP
|
|
periodSeconds: 5
|
|
successThreshold: 1
|
|
timeoutSeconds: 1
|
|
resources:
|
|
limits:
|
|
cpu: "4"
|
|
memory: 4Gi
|
|
requests:
|
|
cpu: "1"
|
|
memory: 2Gi
|
|
startupProbe:
|
|
failureThreshold: 60
|
|
periodSeconds: 5
|
|
successThreshold: 1
|
|
tcpSocket:
|
|
port: 9030
|
|
timeoutSeconds: 1
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
volumeMounts:
|
|
- mountPath: /etc/podinfo
|
|
name: podinfo
|
|
- mountPath: /opt/apache-doris/fe/log
|
|
name: log
|
|
- mountPath: /opt/apache-doris/fe/doris-meta
|
|
name: meta
|
|
- mountPath: /etc/doris
|
|
name: doris-cluster-fe-conf
|
|
dnsPolicy: ClusterFirst
|
|
imagePullSecrets:
|
|
- name: harborsecret
|
|
restartPolicy: Always
|
|
schedulerName: default-scheduler
|
|
securityContext: {}
|
|
terminationGracePeriodSeconds: 30
|
|
volumes:
|
|
- name: meta
|
|
persistentVolumeClaim:
|
|
claimName: doris-fe-meta-pvc
|
|
- name: log
|
|
persistentVolumeClaim:
|
|
claimName: doris-fe-log-pvc
|
|
- 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-fe-conf
|
|
name: doris-cluster-fe-conf
|
|
updateStrategy:
|
|
rollingUpdate:
|
|
partition: 0
|
|
type: RollingUpdate
|