cloud-auth-deploy.yaml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. annotations:
  5. deployment.kubernetes.io/revision: "5"
  6. creationTimestamp: "2023-02-19T17:06:11Z"
  7. generation: 6
  8. labels:
  9. app: cloud-auth
  10. name: cloud-auth
  11. namespace: default
  12. resourceVersion: "38307519"
  13. uid: 91eb7b4b-5a63-4ff5-b3e2-70efa122a5ae
  14. spec:
  15. progressDeadlineSeconds: 600
  16. replicas: 2
  17. revisionHistoryLimit: 10
  18. selector:
  19. matchLabels:
  20. app: cloud-auth
  21. strategy:
  22. rollingUpdate:
  23. maxSurge: 25%
  24. maxUnavailable: 25%
  25. type: RollingUpdate
  26. template:
  27. metadata:
  28. annotations:
  29. redeploy-timestamp: "1676964128291"
  30. creationTimestamp: null
  31. labels:
  32. app: cloud-auth
  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: -Xms1024m -Xmx2048m -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-auth:1.1.0
  48. imagePullPolicy: Always
  49. name: cloud-auth
  50. ports:
  51. - containerPort: 3000
  52. name: auth-3000
  53. protocol: TCP
  54. resources:
  55. limits:
  56. cpu: "2"
  57. memory: 4Gi
  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:06:13Z"
  72. lastUpdateTime: "2023-02-19T17:06:13Z"
  73. message: Deployment has minimum availability.
  74. reason: MinimumReplicasAvailable
  75. status: "True"
  76. type: Available
  77. - lastTransitionTime: "2023-02-21T07:34:34Z"
  78. lastUpdateTime: "2023-02-21T07:34:34Z"
  79. message: ReplicaSet "cloud-auth-785676967d" has successfully progressed.
  80. reason: NewReplicaSetAvailable
  81. status: "True"
  82. type: Progressing
  83. observedGeneration: 6
  84. readyReplicas: 1
  85. replicas: 1
  86. updatedReplicas: 1