集成,总结MES功能
Não pode escolher mais do que 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.
 
 
 
 

56 linhas
1.0 KiB

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