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.

45 lines
931 B

2 years ago
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: gy-uuos-web
  5. spec:
  6. ports:
  7. - name: gu
  8. port: 8080
  9. targetPort: 8080
  10. selector:
  11. app: gy-uuos-web
  12. ---
  13. apiVersion: apps/v1
  14. kind: Deployment
  15. metadata:
  16. name: gy-uuos-web
  17. spec:
  18. replicas: 1
  19. selector:
  20. matchLabels:
  21. app: gy-uuos-web
  22. strategy:
  23. type: RollingUpdate
  24. template:
  25. metadata:
  26. labels:
  27. app: gy-uuos-web
  28. spec:
  29. serviceAccountName: micro-account
  30. containers:
  31. - name: gpw
  32. image: IMAGE_PATH:IMAGE_TAG
  33. ports:
  34. - name: gpww
  35. containerPort: 8080
  36. volumeMounts:
  37. - name: configfile
  38. mountPath: /usr/local/bin/conf.yaml
  39. subPath: gy-uuos.yaml
  40. volumes:
  41. - name: configfile
  42. configMap:
  43. name: config-center
  44. items:
  45. - key: gy-uuos.yaml
  46. path: gy-uuos.yaml