flexo.yaml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: flexo
  5. spec:
  6. replicas: 1
  7. selector:
  8. matchLabels:
  9. app: flexo
  10. template:
  11. metadata:
  12. labels:
  13. app: flexo
  14. spec:
  15. affinity:
  16. nodeAffinity:
  17. preferredDuringSchedulingIgnoredDuringExecution:
  18. - weight: 1
  19. preference:
  20. matchExpressions:
  21. - key: kubernetes.io/arch
  22. operator: In
  23. values:
  24. - amd64
  25. containers:
  26. - name: flexo
  27. image: nroi/flexo
  28. env:
  29. - name: FLEXO_PORT
  30. value: "31787"
  31. - name: FLEXO_LISTEN_IP_ADDRESS
  32. value: "0.0.0.0"
  33. ports:
  34. - containerPort: 31787
  35. volumeMounts:
  36. - name: storage-nfs
  37. mountPath: /var/cache/flexo/pkg
  38. volumes:
  39. - name: storage-nfs
  40. persistentVolumeClaim:
  41. claimName: nroi-flexo-pvc
  42. - name: config
  43. configMap:
  44. name: flexo
  45. ---
  46. apiVersion: v1
  47. kind: PersistentVolumeClaim
  48. metadata:
  49. name: nroi-flexo-pvc
  50. spec:
  51. accessModes:
  52. - ReadWriteOnce
  53. resources:
  54. requests:
  55. storage: 250Gi
  56. storageClassName: nfs-vrt
  57. ---
  58. apiVersion: v1
  59. kind: Service
  60. metadata:
  61. name: flexo
  62. spec:
  63. type: NodePort
  64. selector:
  65. app: flexo
  66. ipFamilyPolicy: PreferDualStack
  67. ports:
  68. - protocol: TCP
  69. port: 31787
  70. targetPort: 31787
  71. nodePort: 31787
  72. name: flexo