flexo.yaml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. - name: FLEXO_MIRRORS_AUTO_ALLOWED_COUNTRIES
  34. value: "CH,DE,FR"
  35. ports:
  36. - containerPort: 31787
  37. volumeMounts:
  38. - name: storage-nfs
  39. mountPath: /var/cache/flexo/pkg
  40. volumes:
  41. - name: storage-nfs
  42. persistentVolumeClaim:
  43. claimName: nroi-flexo-pvc
  44. - name: config
  45. configMap:
  46. name: flexo
  47. ---
  48. apiVersion: v1
  49. kind: PersistentVolumeClaim
  50. metadata:
  51. name: nroi-flexo-pvc
  52. spec:
  53. accessModes:
  54. - ReadWriteOnce
  55. resources:
  56. requests:
  57. storage: 250Gi
  58. storageClassName: nfs-vrt
  59. ---
  60. apiVersion: v1
  61. kind: Service
  62. metadata:
  63. name: flexo
  64. spec:
  65. type: NodePort
  66. selector:
  67. app: flexo
  68. ipFamilyPolicy: PreferDualStack
  69. ports:
  70. - protocol: TCP
  71. port: 31787
  72. targetPort: 31787
  73. nodePort: 31787
  74. name: flexo