以Kubersphere v3.2.0为例

搜索名称为 devops-jenkins的deployment,编辑yaml,在env添加-Dorg.apache.commons.jelly.tags.fmt.timeZone=Asia/Shanghai

      containers:
        - name: devops-jenkins
          image: 'kubesphere/ks-jenkins:v3.2.0-2.249.1'
          args:
            - '--argumentsRealm.passwd.$(ADMIN_USER)=$(ADMIN_PASSWORD)'
            - '--argumentsRealm.roles.$(ADMIN_USER)=admin'
          ports:
            - name: http
              containerPort: 8080
              protocol: TCP
            - name: slavelistener
              containerPort: 50000
              protocol: TCP
          env:
            - name: JAVA_TOOL_OPTIONS
              value: >-
                -Xms512m -Xmx512m -XX:MaxRAM=2g
                -Dorg.apache.commons.jelly.tags.fmt.timeZone=Asia/Shanghai
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
上次更新: 2022/8/10 12:42:24