flexo.yaml 1.6 KB

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