--- apiVersion: apps/v1 kind: Deployment metadata: annotations: k8s.kuboard.cn/displayName: '' labels: k8s.kuboard.cn/layer: svc k8s.kuboard.cn/name: iip-zentao name: iip-zentao namespace: devops resourceVersion: '16714149' spec: progressDeadlineSeconds: 600 replicas: 1 revisionHistoryLimit: 10 selector: matchLabels: k8s.kuboard.cn/layer: svc k8s.kuboard.cn/name: iip-zentao strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 25% type: RollingUpdate template: metadata: annotations: kubectl.kubernetes.io/restartedAt: '2023-05-10T08:43:57+00:00' creationTimestamp: null labels: k8s.kuboard.cn/layer: svc k8s.kuboard.cn/name: iip-zentao spec: containers: - env: - name: MYSQL_HOST valueFrom: configMapKeyRef: key: MYSQL_HOST name: zentao-conf - name: MYSQL_PORT valueFrom: configMapKeyRef: key: MYSQL_PORT name: zentao-conf - name: MYSQL_USER valueFrom: configMapKeyRef: key: MYSQL_USER name: zentao-conf - name: MYSQL_PASSWORD valueFrom: configMapKeyRef: key: MYSQL_PASSWORD name: zentao-conf - name: MYSQL_DB valueFrom: configMapKeyRef: key: MYSQL_DB name: zentao-conf - name: PHP_SESSION_TYPE valueFrom: configMapKeyRef: key: PHP_SESSION_TYPE name: zentao-conf - name: PHP_SESSION_PATH valueFrom: configMapKeyRef: key: PHP_SESSION_PATH name: zentao-conf - name: PHP_MAX_EXECUTION_TIME valueFrom: configMapKeyRef: key: PHP_MAX_EXECUTION_TIME name: zentao-conf - name: PHP_POST_MAX_SIZE valueFrom: configMapKeyRef: key: PHP_POST_MAX_SIZE name: zentao-conf - name: PHP_UPLOAD_MAX_FILESIZE valueFrom: configMapKeyRef: key: PHP_UPLOAD_MAX_FILESIZE name: zentao-conf image: '10.58.108.4:8443/ms/quickon-zentao:18.3-20230424' imagePullPolicy: IfNotPresent name: iip-zentao resources: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /data name: zentao-data-volume dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler securityContext: {} terminationGracePeriodSeconds: 30 volumes: - name: zentao-data-volume persistentVolumeClaim: claimName: zentao-datav3 --- apiVersion: v1 kind: Service metadata: annotations: {} labels: k8s.kuboard.cn/layer: svc k8s.kuboard.cn/name: iip-zentao name: iip-zentao namespace: devops resourceVersion: '16411542' spec: clusterIP: 10.233.22.86 clusterIPs: - 10.233.22.86 externalTrafficPolicy: Cluster internalTrafficPolicy: Cluster ipFamilies: - IPv4 ipFamilyPolicy: SingleStack ports: - name: g6wpwm nodePort: 30081 port: 80 protocol: TCP targetPort: 80 selector: k8s.kuboard.cn/layer: svc k8s.kuboard.cn/name: iip-zentao sessionAffinity: None type: NodePort