revit-algorithm.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. ---
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: revit-algorithm
  6. labels:
  7. app: revit-algorithm
  8. spec:
  9. selector:
  10. app: revit-algorithm
  11. ports:
  12. - port: 8080
  13. targetPort: 8080
  14. name: server-port
  15. ---
  16. apiVersion: apps/v1
  17. kind: Deployment
  18. metadata:
  19. name: revit-algorithm
  20. spec:
  21. replicas: 1
  22. selector:
  23. matchLabels:
  24. app: revit-algorithm
  25. template:
  26. metadata:
  27. labels:
  28. app: revit-algorithm
  29. spec:
  30. imagePullSecrets:
  31. - name: persagy
  32. containers:
  33. - name: revit-algorithm
  34. image: labisenlin.persagy.com/library/revit-algorithm:develop-fbcc3cd
  35. imagePullPolicy: Always
  36. ports:
  37. - containerPort: 8080
  38. name: server-port
  39. env:
  40. - name: TZ
  41. value: Asia/Shanghai
  42. resources:
  43. limits:
  44. memory: 4Gi
  45. requests:
  46. memory: 1Gi
  47. volumeMounts:
  48. - name: admpath
  49. mountPath: /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/application.yml
  50. subPath: path/to/application.yml
  51. volumes:
  52. - name: admpath
  53. configMap:
  54. name: revit-algorithm
  55. defaultMode: 511
  56. items:
  57. - key: application.yml
  58. path: path/to/application.yml