集成,总结MES功能
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_pztjweb.yaml 1.0 KiB

4 maanden geleden
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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