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

58 linhas
1.2 KiB

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