1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: flexo
- spec:
- replicas: 1
- selector:
- matchLabels:
- app: flexo
- template:
- metadata:
- labels:
- app: flexo
- spec:
- containers:
- - name: flexo
- image: nroi/flexo
- ports:
- - containerPort: 7878
- # Mount the persistent volume claim
- volumeMounts:
- - name: storage-nfs
- mountPath: /var/cache/flexo/pkg
- - name: config
- mountPath: /etc/flexo/flexo.toml
- subPath: flexo.toml
- # Define persistent volume claim
- 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: 7878
- targetPort: 7878
- nodePort: 31787
- name: flexo
|