团餐订单
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

65 linhas
1.4 KiB

  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: groupmealorder
  5. namespace: kube-<NAMESPACES>
  6. spec:
  7. selector:
  8. matchLabels:
  9. app: groupmealorder
  10. replicas: 1
  11. template:
  12. metadata:
  13. labels:
  14. app: groupmealorder
  15. spec:
  16. containers:
  17. - image: 10.2.1.24:10242/bpa/groupmealorder:<BUILD_TAG>
  18. imagePullPolicy: IfNotPresent
  19. name: groupmealorder
  20. env:
  21. - name: branch
  22. value: <BRANCH_NAME>
  23. - name: TZ
  24. value: Asia/Shanghai
  25. ports:
  26. - containerPort: 80
  27. protocol: TCP
  28. volumeMounts:
  29. - mountPath: "/app/appsettings.json"
  30. name: groupmealorder-config
  31. readOnly: true
  32. subPath: appsetting
  33. - mountPath: "/etc/localtime"
  34. name: timezone
  35. resources:
  36. requests:
  37. cpu: "100m"
  38. memory: "112Mi"
  39. limits:
  40. cpu: "500m"
  41. memory: "512Mi"
  42. volumes:
  43. - name: groupmealorder-config
  44. configMap:
  45. name: groupmealorder-config
  46. - name: timezone
  47. hostPath:
  48. path: /usr/share/zoneinfo/Asia/Shanghai
  49. ---
  50. kind: Service
  51. apiVersion: v1
  52. metadata:
  53. labels:
  54. app: groupmealorder
  55. name: groupmealorder
  56. namespace: kube-<NAMESPACES>
  57. spec:
  58. type: ClusterIP
  59. ports:
  60. - port: 80
  61. name: http
  62. selector:
  63. app: groupmealorder