You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.8 KiB

  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/gin-vue-admin/server:40fc3aa6
  27. imagePullPolicy: IfNotPresent
  28. ports:
  29. - containerPort: 8888
  30. name: http
  31. volumeMounts:
  32. - mountPath: /go/src/github.com/flipped-aurora/gin-vue-admin/server/config.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. # readinessProbe:
  45. # httpGet:
  46. # path: /ready
  47. # port: http
  48. # initialDelaySeconds: 20
  49. # periodSeconds: 10
  50. # successThreshold: 1
  51. # failureThreshold: 3
  52. # livenessProbe:
  53. # httpGet:
  54. # path: /health
  55. # port: http
  56. # initialDelaySeconds: 20
  57. # periodSeconds: 10
  58. # successThreshold: 1
  59. # failureThreshold: 3
  60. #imagePullSecrets:
  61. # - name: docker-registry
  62. volumes:
  63. - name: localtime
  64. hostPath:
  65. path: /etc/localtime
  66. - name: config
  67. configMap:
  68. name: config.yaml