Victor Lavaud 4 ヶ月 前
コミット
5fc743dfc9
2 ファイル変更63 行追加0 行削除
  1. 1 0
      flexo/flexo.toml
  2. 62 0
      flexo/flexo.yaml

+ 1 - 0
flexo/flexo.toml

@@ -0,0 +1 @@
+listen_ip_address = "0.0.0.0"

+ 62 - 0
flexo/flexo.yaml

@@ -0,0 +1,62 @@
+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