Agent Configuration
potctl provides an AgentConfig resource for dynamic management of Agents.
AgentConfig is usually deployed after an Agent in order to modify its behavior. Note that the Agent kind also contains configuration details in the same way that AgentConfig does which means that you can specify custom configuration of Agents at deploy-time.
An Agent Configuration can be retrieved using potctl describe agent-config <AGENT_NAME>.
An Agent Configuration can be deployed using potctl deploy -f agent-config.yaml. The following is a sample of AgentConfig YAML content:
apiVersion: datasance.com/v3
kind: AgentConfig
metadata:
name: edge-1
tags: []
spec:
\# All fields are optional - Only the specified fields will be updated
name: edge-1
host: 10.0.34.53
description: agent running on VM
latitude: 46.204391
longitude: 6.143158
fogType: x86
networkInterface: dynamic
dockerUrl: unix:///var/run/docker.sock
containerEngine: docker
deploymentType: native
diskLimit: 10
diskDirectory: /var/lib/iofog-agent/
memoryLimit: 4096
cpuLimit: 80
logLimit: 10
logDirectory: /var/log/iofog-agent/
logFileCount: 10
statusFrequency: 10
changeFrequency: 10
deviceScanFrequency: 60
bluetoothEnabled: false
watchdogEnabled: false
gpsMode: manual
gpsScanFrequency: 60
gpsDevice: ''
edgeGuardFrequency: 0
abstractedHardwareEnabled: false
upstreamRouters:
- default-router
routerConfig:
routerMode: edge
messagingPort: 5671
edgeRouterPort: 45671
interRouterPort: 55671
logLevel: INFO
dockerPruningFrequency: 0
availableDiskThreshold: 20
timeZone: Etc/UTC
A complete reference of AgentConfig kind is available in the relevant section in potctl reference documentation.
Details as to what the Agent configuration files look like on Agent hosts can be found on the Agent Reference - Configuration page.