{{ extends "../_layouts/default" }} {{ import "../_modules/detail" }} {{ block body() }}

NODE

Nodes are instances of the Engine participating in a swarm.

{{ .Node.Spec.Name ? .Node.Spec.Name : (.Node.Description.Hostname ? .Node.Description.Hostname : .Node.ID) }}

ID
{{ .Node.ID }}
Hostname
{{ .Node.Description.Hostname }}
Role
{{ .Node.Spec.Role }}
Availability
{{ .Node.Spec.Availability}}
Status
{{ .Node.Status.State}}
Address
{{ .Node.Status.Addr}}
Created at
{{ time(.Node.CreatedAt) }}
Updated at
{{ time(.Node.UpdatedAt) }}

Description

CPU
{{printf("%.0f", .Node.Description.Resources.NanoCPUs / 1000000000)}}
Memory
{{printf("%.2f", .Node.Description.Resources.MemoryBytes / 1024 / 1024 / 1024)}} GB
Platform
{{ .Node.Description.Platform.OS }}/{{ .Node.Description.Platform.Architecture }}
Version
{{ .Node.Description.Engine.EngineVersion}}
{{if .Node.ManagerStatus}}

Manager status

Leader
{{ .Node.ManagerStatus.Leader ? "Yes" : "No" }}
Reachability
{{ .Node.ManagerStatus.Reachability }}
Addr
{{ .Node.ManagerStatus.Addr}}
{{end}}
{{ yield tags(title="Labels", tags=.Node.Spec.Labels) }} {{if .Tasks}}

Tasks

{{range .Tasks}} {{end}}
ID Status Image Updated at
{{.ID}} {{ .Task.Status.State }} {{.Image}} {{time(.UpdatedAt)}}
{{end}} Return
{{ end }}