haspm-gateway-deploy.yaml 2.3 KB

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