Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

65 wiersze
1.3 KiB

  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: datav
  5. namespace: kube-<NAMESPACES>
  6. spec:
  7. selector:
  8. matchLabels:
  9. app: datav
  10. replicas: 1
  11. template:
  12. metadata:
  13. labels:
  14. app: datav
  15. spec:
  16. containers:
  17. - image: 10.2.1.24:10242/bpa/datav:<BUILD_TAG>
  18. imagePullPolicy: IfNotPresent
  19. name: datav
  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: "/app/appsettings.json"
  30. name: datav-config
  31. readOnly: true
  32. subPath: appsetting
  33. - mountPath: "/etc/localtime"
  34. name: timezone
  35. resources:
  36. requests:
  37. cpu: "100m"
  38. memory: "112Mi"
  39. limits:
  40. cpu: "500m"
  41. memory: "512Mi"
  42. volumes:
  43. - name: datav-config
  44. configMap:
  45. name: datav-config
  46. - name: timezone
  47. hostPath:
  48. path: /usr/share/zoneinfo/Asia/Shanghai
  49. ---
  50. kind: Service
  51. apiVersion: v1
  52. metadata:
  53. labels:
  54. app: datav
  55. name: datav
  56. namespace: kube-<NAMESPACES>
  57. spec:
  58. type: ClusterIP
  59. ports:
  60. - port: 80
  61. name: http
  62. selector:
  63. app: datav