You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

k8s-7management.yaml 1.2 kB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: ci4s-management-platform-deployment
  5. namespace: argo
  6. spec:
  7. replicas: 1
  8. selector:
  9. matchLabels:
  10. app: ci4s-management-platform
  11. template:
  12. metadata:
  13. labels:
  14. app: ci4s-management-platform
  15. spec:
  16. containers:
  17. - name: ci4s-management-platform
  18. image: 172.20.32.187/ci4s/ci4s-managent:202409201355
  19. env:
  20. - name: TZ
  21. value: Asia/Shanghai
  22. - name: JAVA_TOOL_OPTIONS
  23. value: "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=*:5005"
  24. ports:
  25. - containerPort: 9213
  26. volumeMounts:
  27. - name: resource-volume
  28. mountPath: /home/resource/
  29. volumes:
  30. - name: resource-volume
  31. persistentVolumeClaim:
  32. claimName: platform-data-pvc-nfs
  33. ---
  34. apiVersion: v1
  35. kind: Service
  36. metadata:
  37. name: ci4s-management-platform-service
  38. namespace: argo
  39. spec:
  40. type: NodePort
  41. ports:
  42. - name: http
  43. port: 9213
  44. nodePort: 31208
  45. protocol: TCP
  46. - name: debug
  47. nodePort: 34567
  48. port: 5005
  49. protocol: TCP
  50. targetPort: 5005
  51. selector:
  52. app: ci4s-management-platform