包含后厨 团餐 门店分支
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

58 satır
1.1 KiB

  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: kitchenweb
  5. namespace: kube-<NAMESPACES>
  6. spec:
  7. selector:
  8. matchLabels:
  9. app: kitchenweb
  10. replicas: 1
  11. template:
  12. metadata:
  13. labels:
  14. app: kitchenweb
  15. spec:
  16. containers:
  17. - image: 10.2.1.24:10242/bpa/kitchenweb:<BUILD_TAG>
  18. imagePullPolicy: IfNotPresent
  19. name: kitchenweb
  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: kitchenweb
  48. name: kitchenweb
  49. namespace: kube-<NAMESPACES>
  50. spec:
  51. type: ClusterIP
  52. ports:
  53. - port: 80
  54. name: http
  55. selector:
  56. app: kitchenweb