deployment.yaml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. apiVersion: apps/v1beta2
  2. kind: Deployment
  3. metadata:
  4. labels:
  5. app: logintestonly
  6. name: logintestonly
  7. namespace: login
  8. spec:
  9. progressDeadlineSeconds: 600
  10. replicas: 1
  11. revisionHistoryLimit: 10
  12. selector:
  13. matchLabels:
  14. app: logintestonly
  15. strategy:
  16. type: Recreate
  17. template:
  18. metadata:
  19. labels:
  20. app: logintestonly
  21. group: login-testonly
  22. spec:
  23. containers:
  24. - env:
  25. - name: aliyun_logs_login-console
  26. value: stdout
  27. image: 'registry-vpc.cn-beijing.aliyuncs.com/jixiang/logintestonly:1'
  28. imagePullPolicy: Always
  29. lifecycle:
  30. preStop:
  31. exec:
  32. command:
  33. - sleep
  34. - '5'
  35. livenessProbe:
  36. failureThreshold: 3
  37. initialDelaySeconds: 15
  38. periodSeconds: 10
  39. successThreshold: 1
  40. tcpSocket:
  41. port: 6532
  42. timeoutSeconds: 5
  43. name: logintestonly
  44. ports:
  45. - containerPort: 6532
  46. protocol: TCP
  47. - containerPort: 8181
  48. protocol: TCP
  49. readinessProbe:
  50. failureThreshold: 3
  51. initialDelaySeconds: 20
  52. periodSeconds: 10
  53. successThreshold: 1
  54. tcpSocket:
  55. port: 6532
  56. timeoutSeconds: 5
  57. resources:
  58. limits:
  59. cpu: '1'
  60. memory: 512Mi
  61. requests:
  62. cpu: 500m
  63. memory: 512Mi
  64. stdin: true
  65. terminationMessagePath: /dev/termination-log
  66. terminationMessagePolicy: File
  67. tty: true
  68. dnsPolicy: ClusterFirst
  69. hostAliases:
  70. - hostnames:
  71. - mpa-api.jixiang.cn
  72. ip: 10.16.196.131
  73. - hostnames:
  74. - console.api.jixiang.cn
  75. - console-api.jixiang.cn
  76. ip: 10.16.196.146
  77. - hostnames:
  78. - ds-console.jixiang.cn
  79. - ds.console.jixiang.cn
  80. ip: 10.16.196.28
  81. imagePullSecrets:
  82. - name: reg-key-fyj
  83. restartPolicy: Always
  84. schedulerName: default-scheduler
  85. securityContext: {}
  86. terminationGracePeriodSeconds: 30