Workload Status
Eru Agent and all its friends
root@localhost:~# eru-cli workload get-status cd7c894aa0736bdf1f884115b18416bbeeca4b23e812a986ae2d86b77a332c2c
┌────┬────────────────┬──────────┬────────────┐
│ ID │ STATUS │ NETWORKS │ EXTENSIONS │
├────┼────────────────┼──────────┼────────────┤
│ │ Running: false │ │ │
│ │ Healthy: false │ │ │
└────┴────────────────┴──────────┴────────────┘cat <<! > eru-agent.yaml
appname: "eru"
entrypoints:
agent:
cmd: "/usr/bin/eru-agent --hostname node1 --config /etc/eru/agent.yaml"
restart: always
publish:
- "12345"
healthcheck:
tcp_ports:
- "12345"
privileged: true
volumes:
- /sys:/sys:ro
- /var/run/docker.sock:/var/run/docker.sock
- /proc/:/hostProc/
- /etc/eru:/etc/eru
!
cat <<! > /etc/eru/agent.yaml
pid: /tmp/eru-agent.sock
core: 127.0.0.1:5001
healthcheck:
interval: 15
timeout: 10
status_ttl: 0
cache_ttl: 300
docker:
endpoint: unix:///var/run/docker.sock
metrics:
step: 15
api:
addr: 0.0.0.0:12345
log:
forwards:
- __discard__
stdout: True
etcd:
machines:
- 127.0.0.1:2379
prefix: /agent-selfmon
!
eru-cli workload deploy --pod testpod --image projecteru2/agent --entry agent eru-agent.yamlWorkload Status
Last updated