UNPKG

@flowfuse/device-agent

Version:

An Edge Agent for running Node-RED instances deployed from the FlowFuse Platform

50 lines 1.03 kB
apiVersion: apps/v1 kind: Deployment metadata: name: device-one labels: app: device-one spec: replicas: 1 # there can only be one replica as there is one configuration revisionHistoryLimit: 10 selector: matchLabels: app: device-one template: metadata: labels: app: device-one spec: containers: - name: device-one image: flowfuse/device-agent:latest ports: - containerPort: 1880 volumeMounts: - name: config mountPath: "/opt/flowfuse-device/device.yml" subPath: "device.yml" readOnly: true resources: limits: cpu: 1000m memory: 256Mi requests: cpu: 500m memory: 128Mi volumes: - name: config secret: secretName: device-one-secret --- apiVersion: v1 kind: Service metadata: name: device-one-service spec: selector: app: device-one ports: - protocol: TCP port: 1880 targetPort: 1880