Victor Lavaud 4 miesięcy temu
rodzic
commit
d99b6257d1
1 zmienionych plików z 18 dodań i 8 usunięć
  1. 18 8
      flexo/flexo.yaml

+ 18 - 8
flexo/flexo.yaml

@@ -12,19 +12,29 @@ spec:
       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"
         ports:
-        - containerPort: 7878
-        # Mount the persistent volume claim
+        - containerPort: 31787
         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:
@@ -56,7 +66,7 @@ spec:
   ipFamilyPolicy: PreferDualStack
   ports:
     - protocol: TCP
-      port: 7878
-      targetPort: 7878
+      port: 31787
+      targetPort: 31787
       nodePort: 31787
       name: flexo