cloud-upms-deploy.yaml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. annotations:
  5. deployment.kubernetes.io/revision: "8"
  6. generation: 9
  7. labels:
  8. app: cloud-upms
  9. name: cloud-upms
  10. namespace: default
  11. resourceVersion: "38318635"
  12. uid: 4d1b74a6-2e0c-490d-b50a-e0bb011bcb81
  13. spec:
  14. progressDeadlineSeconds: 600
  15. replicas: 2
  16. revisionHistoryLimit: 10
  17. selector:
  18. matchLabels:
  19. app: cloud-upms
  20. strategy:
  21. rollingUpdate:
  22. maxSurge: 25%
  23. maxUnavailable: 25%
  24. type: RollingUpdate
  25. template:
  26. metadata:
  27. annotations:
  28. redeploy-timestamp: "1676825682622"
  29. creationTimestamp: null
  30. labels:
  31. app: cloud-upms
  32. spec:
  33. containers:
  34. - env:
  35. - name: LANG
  36. value: C.UTF-8
  37. - name: JAVA_HOME
  38. value: /usr/lib/jvm/java-8-openjdk-amd64/jre
  39. - name: TZ
  40. value: Asia/Shanghai
  41. - name: JAVA_OPTS
  42. value: -Xms1024m -Xmx2048m -Djava.security.egd=file:/dev/./urandom
  43. - name: cloudRegister
  44. value: 10.210.160.59:8848
  45. - name: hostIp
  46. image: 10.210.5.68:8443/devops-test/cloud-upms:1.1.0
  47. imagePullPolicy: Always
  48. name: cloud-upms
  49. ports:
  50. - containerPort: 4000
  51. name: cloud-upms-4000
  52. protocol: TCP
  53. resources:
  54. limits:
  55. cpu: 2000m
  56. memory: 4Gi
  57. requests:
  58. cpu: 1500m
  59. memory: 2048Mi
  60. terminationMessagePath: /dev/termination-log
  61. terminationMessagePolicy: File
  62. volumeMounts:
  63. - mountPath: /etc/localtime
  64. name: volume-localtime
  65. dnsPolicy: ClusterFirst
  66. restartPolicy: Always
  67. schedulerName: default-scheduler
  68. securityContext: {}
  69. terminationGracePeriodSeconds: 30
  70. volumes:
  71. - hostPath:
  72. path: /etc/localtime
  73. type: ""
  74. name: volume-localtime
  75. status:
  76. availableReplicas: 1
  77. conditions:
  78. - lastTransitionTime: "2023-02-21T07:52:02Z"
  79. lastUpdateTime: "2023-02-21T07:52:02Z"
  80. message: Deployment has minimum availability.
  81. reason: MinimumReplicasAvailable
  82. status: "True"
  83. type: Available
  84. - lastTransitionTime: "2023-02-18T02:15:14Z"
  85. lastUpdateTime: "2023-02-21T07:52:02Z"
  86. message: ReplicaSet "cloud-upms-78d4dfc9f6" has successfully progressed.
  87. reason: NewReplicaSetAvailable
  88. status: "True"
  89. type: Progressing
  90. observedGeneration: 9
  91. readyReplicas: 1
  92. replicas: 1
  93. updatedReplicas: 1