包含后厨 团餐 门店分支
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.

k8s_groupmealweb.yaml 1.1 KiB

преди 11 месеца
преди 11 месеца
преди 11 месеца
преди 11 месеца
преди 11 месеца
преди 11 месеца
преди 11 месеца
преди 11 месеца
преди 11 месеца
преди 11 месеца
преди 11 месеца
преди 11 месеца
преди 11 месеца
преди 11 месеца
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: groupmealweb
  5. namespace: kube-<NAMESPACES>
  6. spec:
  7. selector:
  8. matchLabels:
  9. app: groupmealweb
  10. replicas: 1
  11. template:
  12. metadata:
  13. labels:
  14. app: groupmealweb
  15. spec:
  16. containers:
  17. - image: 10.2.1.24:10242/bpa/groupmealweb:<BUILD_TAG>
  18. imagePullPolicy: IfNotPresent
  19. name: groupmealweb
  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: "/etc/localtime"
  30. name: timezone
  31. resources:
  32. requests:
  33. cpu: "100m"
  34. memory: "112Mi"
  35. limits:
  36. cpu: "500m"
  37. memory: "512Mi"
  38. volumes:
  39. - name: timezone
  40. hostPath:
  41. path: /usr/share/zoneinfo/Asia/Shanghai
  42. ---
  43. kind: Service
  44. apiVersion: v1
  45. metadata:
  46. labels:
  47. app: groupmealweb
  48. name: groupmealweb
  49. namespace: kube-<NAMESPACES>
  50. spec:
  51. type: ClusterIP
  52. ports:
  53. - port: 80
  54. name: http
  55. selector:
  56. app: groupmealweb