gva-server-deployment.yaml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: gva-server
  5. annotations:
  6. flipped-aurora/gin-vue-admin: backend
  7. github: "https://github.com/flipped-aurora/gin-vue-admin.git"
  8. app.kubernetes.io/version: 0.0.1
  9. labels:
  10. app: gva-server
  11. version: gva-vue3
  12. spec:
  13. replicas: 1
  14. selector:
  15. matchLabels:
  16. app: gva-server
  17. version: gva-vue3
  18. template:
  19. metadata:
  20. labels:
  21. app: gva-server
  22. version: gva-vue3
  23. spec:
  24. containers:
  25. - name: gin-vue-admin-container
  26. image: registry.cn-hangzhou.aliyuncs.com/gva/server:latest
  27. imagePullPolicy: Always
  28. ports:
  29. - containerPort: 8888
  30. name: http
  31. volumeMounts:
  32. - mountPath: /go/src/github.com/flipped-aurora/gin-vue-admin/server/config.docker.yaml
  33. name: config
  34. subPath: config.yaml
  35. - mountPath: /etc/localtime
  36. name: localtime
  37. resources:
  38. limits:
  39. cpu: 1000m
  40. memory: 2000Mi
  41. requests:
  42. cpu: 100m
  43. memory: 200Mi
  44. livenessProbe:
  45. failureThreshold: 1
  46. periodSeconds: 5
  47. successThreshold: 1
  48. tcpSocket:
  49. port: 8888
  50. timeoutSeconds: 1
  51. readinessProbe:
  52. failureThreshold: 3
  53. initialDelaySeconds: 30
  54. periodSeconds: 5
  55. successThreshold: 1
  56. tcpSocket:
  57. port: 8888
  58. timeoutSeconds: 1
  59. startupProbe:
  60. failureThreshold: 40
  61. periodSeconds: 5
  62. successThreshold: 1
  63. tcpSocket:
  64. port: 8888
  65. timeoutSeconds: 1
  66. #imagePullSecrets:
  67. # - name: docker-registry
  68. volumes:
  69. - name: localtime
  70. hostPath:
  71. path: /etc/localtime
  72. - name: config
  73. configMap:
  74. name: config.yaml