海豚调度dolphinscheduler-pod 时区设置

dolphinscheduler-api

#kubectl get deployment dolphinscheduler-api -n data-science  -o yaml


apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: "20"
    meta.helm.sh/release-name: dolphinscheduler
    meta.helm.sh/release-namespace: data-science1
  creationTimestamp: "2023-05-12T07:59:27Z"
  generation: 20
  labels:
    app.kubernetes.io/component: api
    app.kubernetes.io/instance: dolphinscheduler
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: dolphinscheduler-api
    app.kubernetes.io/version: 3.1.5
  name: dolphinscheduler-api
  namespace: data-science1
  resourceVersion: "463066239"
  uid: 432f3666-e683-42f2-93a1-341e154df187
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      app.kubernetes.io/component: api
      app.kubernetes.io/instance: dolphinscheduler
      app.kubernetes.io/managed-by: Helm
      app.kubernetes.io/name: dolphinscheduler-api
      app.kubernetes.io/version: 3.1.5
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      creationTimestamp: null
      labels:
        app.kubernetes.io/component: api
        app.kubernetes.io/instance: dolphinscheduler
        app.kubernetes.io/managed-by: Helm
        app.kubernetes.io/name: dolphinscheduler-api
        app.kubernetes.io/version: 3.1.5
    spec:
      containers:
      - env:
        - name: TZ
          value: UTC
        - name: SPRING_JACKSON_TIME_ZONE
          value: Asia/Shanghai
        - name: DATABASE
          value: mysql
        - name: SPRING_DATASOURCE_URL
          value: jdbc:mysql://us1-data-1.db.xxxxx.com:3306/dolphinscheduler?characterEncoding=utf8
        - name: SPRING_DATASOURCE_USERNAME
          value: dolphinscheduler_rw
        - name: SPRING_DATASOURCE_PASSWORD
          valueFrom:
            secretKeyRef:
              key: database-password
              name: dolphinscheduler-externaldb
        - name: REGISTRY_TYPE
          value: zookeeper
        - name: REGISTRY_ZOOKEEPER_CONNECT_STRING
          value: dolphinscheduler-zookeeper:2181
        - name: JAVA_OPTS
          value: -Xms512m -Xmx512m -Xmn256m
        envFrom:
        - configMapRef:
            name: dolphinscheduler-common
        image: 2xxxx.dkr.ecr.us-west-1.amazonaws.com/data-science/dolphinscheduler-api:mysql-driver-v10
        imagePullPolicy: IfNotPresent
        livenessProbe:
          exec:
            command:
            - curl
            - -s
            - http://localhost:12345/dolphinscheduler/actuator/health/liveness
          failureThreshold: 3
          initialDelaySeconds: 30
          periodSeconds: 30
          successThreshold: 1
          timeoutSeconds: 5
        name: dolphinscheduler-api
        ports:
        - containerPort: 12345
          name: api-port
          protocol: TCP
        - containerPort: 25333
          name: python-api-port
          protocol: TCP
        readinessProbe:
          exec:
            command:
            - curl
            - -s
            - http://localhost:12345/dolphinscheduler/actuator/health/readiness
          failureThreshold: 3
          initialDelaySeconds: 30
          periodSeconds: 30
          successThreshold: 1
          timeoutSeconds: 5
        resources: {}
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /opt/dolphinscheduler/logs
          name: dolphinscheduler-api
        - mountPath: /opt/dolphinscheduler/conf/common.properties
          name: config-volume
          subPath: common_properties
        - mountPath: /opt/dolphinscheduler/data
          name: persistent-storage
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      serviceAccount: dolphinscheduler
      serviceAccountName: dolphinscheduler
      terminationGracePeriodSeconds: 30
      volumes:
      - emptyDir: {}
        name: dolphinscheduler-api
      - configMap:
          defaultMode: 420
          name: dolphinscheduler-configs
        name: config-volume
      - name: persistent-storage
        persistentVolumeClaim:
          claimName: efs-claim
status:
  availableReplicas: 1
  conditions:
  - lastTransitionTime: "2024-03-04T05:55:57Z"
    lastUpdateTime: "2024-03-04T05:55:57Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2023-05-17T04:14:58Z"
    lastUpdateTime: "2024-03-22T10:05:32Z"
    message: ReplicaSet "dolphinscheduler-api-79cbb6cb6" has successfully progressed.
    reason: NewReplicaSetAvailable
    status: "True"
    type: Progressing
  observedGeneration: 20
  readyReplicas: 1
  replicas: 1
  updatedReplicas: 1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值