1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: flexo
- spec:
- replicas: 1
- selector:
- matchLabels:
- app: flexo
- template:
- metadata:
- labels:
- app: flexo
- spec:
- affinity:
- nodeAffinity:
- preferredDuringSchedulingIgnoredDuringExecution:
- - weight: 1
- preference:
- matchExpressions:
- - key: kubernetes.io/arch
- operator: In
- values:
- - amd64
- containers:
- - name: flexo
- image: nroi/flexo
- env:
- - name: FLEXO_PORT
- value: "31787"
- - name: FLEXO_LISTEN_IP_ADDRESS
- value: "0.0.0.0"
- - name: FLEXO_MIRRORS_AUTO_ALLOWED_COUNTRIES
- value: "CH,DE,FR"
- ports:
- - containerPort: 31787
- volumeMounts:
- - name: storage-nfs
- mountPath: /var/cache/flexo/pkg
- volumes:
- - name: storage-nfs
- persistentVolumeClaim:
- claimName: nroi-flexo-pvc
- - name: config
- configMap:
- name: flexo
- ---
- apiVersion: v1
- kind: PersistentVolumeClaim
- metadata:
- name: nroi-flexo-pvc
- spec:
- accessModes:
- - ReadWriteOnce
- resources:
- requests:
- storage: 250Gi
- storageClassName: nfs-vrt
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: flexo
- spec:
- type: NodePort
- selector:
- app: flexo
- ipFamilyPolicy: PreferDualStack
- ports:
- - protocol: TCP
- port: 31787
- targetPort: 31787
- nodePort: 31787
- name: flexo
|