apiVersion: apps/v1 kind: Deployment metadata: annotations: deployment.kubernetes.io/revision: '10' field.cattle.io/publicEndpoints: >- [{"port":36658,"protocol":"TCP","serviceName":"tools:zentao","allNodes":true},{"addresses":["x.x.x.x"],"port":80,"protocol":"HTTP","serviceName":"tools:zentao","ingressName":"tools:zentao-ingress","hostname":"zentao.vts.cn","path":"/","allNodes":false}] meta.helm.sh/release-name: zentao meta.helm.sh/release-namespace: tools creationTimestamp: '2024-12-09T07:26:49Z' generation: 11 labels: app: zentao app.kubernetes.io/managed-by: Helm chart: zentao-2024.12.601 component: zentao provider: quickon release: zentao name: zentao namespace: tools resourceVersion: '1624539' uid: cbc9a432-a99d-486b-88fd-c9567d83b07c spec: progressDeadlineSeconds: 600 replicas: 1 revisionHistoryLimit: 10 selector: matchLabels: app: zentao component: zentao release: zentao strategy: rollingUpdate: maxSurge: 0 maxUnavailable: 25% type: RollingUpdate template: metadata: annotations: cattle.io/timestamp: '2024-12-09T08:50:07Z' creationTimestamp: null labels: app: zentao chart: zentao-2024.12.601 component: zentao provider: quickon release: zentao namespace: tools spec: containers: - env: - name: POD_NAME valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.name - name: POD_NAMESPACE valueFrom: fieldRef: apiVersion: v1 fieldPath: metadata.namespace - name: POD_IP valueFrom: fieldRef: apiVersion: v1 fieldPath: status.podIP - name: ZT_MYSQL_HOST value: xxxxxxxxxxxx - name: APP_DOMAIN value: zentao.local - name: IS_CONTAINER value: 'true' - name: PHP_EXT_REDIS value: 'true' - name: SMTP_ENABLED - name: SMTP_FROMNAME value: ZenTao - name: ZT_MYSQL_DB value: zantao_db - name: ZT_MYSQL_PASSWORD valueFrom: secretKeyRef: key: mysql_password name: zentao-mysql-pw optional: false - name: ZT_MYSQL_PORT value: '3306' - name: ZT_MYSQL_USER value: zantao - name: ZT_REDIS_HOST value: xxxxxxxxxxxx - name: ZT_REDIS_PASSWORD valueFrom: secretKeyRef: key: redis_password name: zentao-redis-pw optional: false - name: ZT_REDIS_PORT value: '6379' - name: ZT_REDIS_SERIALIZER value: igbinary envFrom: - configMapRef: name: zentao-mail - configMapRef: name: zentao-config image: hub.zentao.net/app/zentao:21.2 imagePullPolicy: Always name: zentao ports: - containerPort: 80 name: web protocol: TCP - containerPort: 80 name: probe protocol: TCP readinessProbe: failureThreshold: 1 httpGet: path: /check.html port: 80 scheme: HTTP periodSeconds: 5 successThreshold: 1 timeoutSeconds: 1 resources: limits: cpu: '1' memory: 1Gi requests: cpu: 500m memory: 512Mi startupProbe: failureThreshold: 10 initialDelaySeconds: 5 periodSeconds: 3 successThreshold: 1 tcpSocket: port: 80 timeoutSeconds: 1 terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /data name: data dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler securityContext: {} serviceAccount: default serviceAccountName: default terminationGracePeriodSeconds: 30 volumes: - name: data persistentVolumeClaim: claimName: zentao-data status: availableReplicas: 1 conditions: - lastTransitionTime: '2024-12-09T07:26:49Z' lastUpdateTime: '2024-12-09T07:26:49Z' message: Deployment has minimum availability. reason: MinimumReplicasAvailable status: 'True' type: Available - lastTransitionTime: '2024-12-09T08:22:05Z' lastUpdateTime: '2024-12-09T08:50:15Z' message: ReplicaSet "zentao-7696c8f67" has successfully progressed. reason: NewReplicaSetAvailable status: 'True' type: Progressing observedGeneration: 11 readyReplicas: 1 replicas: 1 updatedReplicas: 1