osmedeus.yaml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. apiVersion: v1
  2. kind: PersistentVolume
  3. metadata:
  4. name: osmedeus-pv
  5. spec:
  6. storageClassName: manual
  7. capacity:
  8. storage: 10Gi
  9. accessModes:
  10. - ReadWriteMany
  11. nfs:
  12. path: /volume2/FastNFS/osmedeus
  13. server: 192.168.2.44
  14. readOnly: false
  15. ---
  16. apiVersion: v1
  17. kind: PersistentVolumeClaim
  18. metadata:
  19. name: osmedeus
  20. spec:
  21. storageClassName: manual
  22. accessModes:
  23. - ReadWriteMany
  24. resources:
  25. requests:
  26. storage: 10Gi
  27. ---
  28. apiVersion: apps/v1
  29. kind: Deployment
  30. metadata:
  31. name: osmedeus
  32. spec:
  33. replicas: 1
  34. selector:
  35. matchLabels:
  36. name: osmedeus
  37. template:
  38. metadata:
  39. labels:
  40. name: osmedeus
  41. nginx: backend
  42. spec:
  43. containers:
  44. - name: osmedeus
  45. image: qdii/osmedeus:4.6.3
  46. imagePullPolicy: "Always"
  47. command: ["/usr/local/bin/osmedeus","server"]
  48. args: ["osmedeus"]
  49. volumeMounts:
  50. - name: osmedeus
  51. mountPath: /root/workspaces-osmedeus
  52. ports:
  53. - containerPort: 8000
  54. name: http
  55. livenessProbe:
  56. initialDelaySeconds: 300
  57. timeoutSeconds: 10
  58. httpGet:
  59. path: "/ui/#"
  60. scheme: "HTTPS"
  61. port: 8000
  62. httpHeaders:
  63. - name: Host
  64. value: "osmedeus.dodges.it"
  65. volumes:
  66. - name: osmedeus
  67. persistentVolumeClaim:
  68. claimName: osmedeus
  69. ---
  70. apiVersion: v1
  71. kind: Service
  72. metadata:
  73. name: osmedeus
  74. spec:
  75. type: ClusterIP
  76. ipFamilyPolicy: PreferDualStack
  77. selector:
  78. name: osmedeus
  79. ports:
  80. - protocol: TCP
  81. port: 8000
  82. targetPort: 8000
  83. name: http