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