osmedeus.yaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. affinity:
  44. nodeAffinity:
  45. requiredDuringSchedulingIgnoredDuringExecution:
  46. nodeSelectorTerms:
  47. - matchExpressions:
  48. - key: kubernetes.io/arch
  49. operator: In
  50. values:
  51. - amd64
  52. containers:
  53. - name: osmedeus
  54. image: qdii/osmedeus:4.8.0
  55. imagePullPolicy: "Always"
  56. command: ["/usr/local/bin/osmedeus","server"]
  57. args: ["osmedeus"]
  58. env:
  59. - name: TELEGRAM_CHANNEL
  60. valueFrom:
  61. secretKeyRef:
  62. name: telegram
  63. key: channel
  64. - name: TELEGRAM_API_TOKEN
  65. valueFrom:
  66. secretKeyRef:
  67. name: telegram
  68. key: apitoken
  69. volumeMounts:
  70. - name: osmedeus
  71. mountPath: /root/workspaces-osmedeus
  72. ports:
  73. - containerPort: 8000
  74. name: http
  75. livenessProbe:
  76. initialDelaySeconds: 300
  77. timeoutSeconds: 10
  78. httpGet:
  79. path: "/ui/#"
  80. scheme: "HTTPS"
  81. port: 8000
  82. httpHeaders:
  83. - name: Host
  84. value: "osmedeus.dodges.it"
  85. imagePullSecrets:
  86. - name: regcred
  87. volumes:
  88. - name: osmedeus
  89. persistentVolumeClaim:
  90. claimName: osmedeus
  91. ---
  92. apiVersion: v1
  93. kind: Service
  94. metadata:
  95. name: osmedeus
  96. spec:
  97. type: ClusterIP
  98. ipFamilyPolicy: PreferDualStack
  99. selector:
  100. name: osmedeus
  101. ports:
  102. - protocol: TCP
  103. port: 8000
  104. targetPort: 8000
  105. name: http