2016-06-08 06:23:11 +00:00
|
|
|
<rd-header>
|
2016-06-14 02:32:44 +00:00
|
|
|
<rd-header-title title="Cluster overview">
|
|
|
|
<a data-toggle="tooltip" title="Refresh" ui-sref="swarm" ui-sref-opts="{reload: true}">
|
|
|
|
<i class="fa fa-refresh" aria-hidden="true"></i>
|
|
|
|
</a>
|
|
|
|
</rd-header-title>
|
2016-06-08 06:23:11 +00:00
|
|
|
<rd-header-content>Swarm</rd-header-content>
|
|
|
|
</rd-header>
|
|
|
|
|
2016-06-02 05:34:03 +00:00
|
|
|
<div class="row">
|
2016-07-27 07:54:31 +00:00
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
|
2016-06-02 05:34:03 +00:00
|
|
|
<rd-widget>
|
|
|
|
<rd-widget-header icon="fa-object-group" title="Cluster status"></rd-widget-header>
|
|
|
|
<rd-widget-body classes="no-padding">
|
|
|
|
<table class="table">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>Nodes</td>
|
2016-09-23 04:54:58 +00:00
|
|
|
<td ng-if="!swarm_mode">{{ swarm.Nodes }}</td>
|
|
|
|
<td ng-if="swarm_mode">{{ info.Swarm.Nodes }}</td>
|
2016-06-02 05:34:03 +00:00
|
|
|
</tr>
|
2016-09-23 04:54:58 +00:00
|
|
|
<tr ng-if="!swarm_mode">
|
2016-06-02 05:34:03 +00:00
|
|
|
<td>Images</td>
|
|
|
|
<td>{{ info.Images }}</td>
|
|
|
|
</tr>
|
2016-09-23 04:54:58 +00:00
|
|
|
<tr ng-if="!swarm_mode">
|
2016-07-27 07:54:31 +00:00
|
|
|
<td>Swarm version</td>
|
|
|
|
<td>{{ docker.Version|swarmversion }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Docker API version</td>
|
|
|
|
<td>{{ docker.ApiVersion }}</td>
|
|
|
|
</tr>
|
2016-09-23 04:54:58 +00:00
|
|
|
<tr ng-if="!swarm_mode">
|
2016-06-02 05:34:03 +00:00
|
|
|
<td>Strategy</td>
|
|
|
|
<td>{{ swarm.Strategy }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2016-07-27 07:54:31 +00:00
|
|
|
<td>Total CPU</td>
|
2016-09-23 04:54:58 +00:00
|
|
|
<td ng-if="!swarm_mode">{{ info.NCPU }}</td>
|
|
|
|
<td ng-if="swarm_mode">{{ totalCPU }}</td>
|
2016-06-02 05:34:03 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2016-07-27 07:54:31 +00:00
|
|
|
<td>Total memory</td>
|
2016-10-01 08:38:20 +00:00
|
|
|
<td ng-if="!swarm_mode">{{ info.MemTotal|humansize: 2 }}</td>
|
|
|
|
<td ng-if="swarm_mode">{{ totalMemory|humansize: 2 }}</td>
|
2016-06-02 05:34:03 +00:00
|
|
|
</tr>
|
2016-09-23 04:54:58 +00:00
|
|
|
<tr ng-if="!swarm_mode">
|
2016-07-27 07:54:31 +00:00
|
|
|
<td>Operating system</td>
|
2016-06-02 05:34:03 +00:00
|
|
|
<td>{{ info.OperatingSystem }}</td>
|
|
|
|
</tr>
|
2016-09-23 04:54:58 +00:00
|
|
|
<tr ng-if="!swarm_mode">
|
2016-07-27 07:54:31 +00:00
|
|
|
<td>Kernel version</td>
|
2016-06-02 05:34:03 +00:00
|
|
|
<td>{{ info.KernelVersion }}</td>
|
|
|
|
</tr>
|
2016-09-23 04:54:58 +00:00
|
|
|
<tr ng-if="!swarm_mode">
|
2016-07-27 07:54:31 +00:00
|
|
|
<td>Go version</td>
|
|
|
|
<td>{{ docker.GoVersion }}</td>
|
|
|
|
</tr>
|
2016-06-02 05:34:03 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</rd-widget-body>
|
|
|
|
</rd-widget>
|
|
|
|
</div>
|
2016-07-27 07:54:31 +00:00
|
|
|
</div>
|
2016-09-23 04:54:58 +00:00
|
|
|
|
2016-07-27 07:54:31 +00:00
|
|
|
<div class="row">
|
2016-09-23 04:54:58 +00:00
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" ng-if="!swarm_mode">
|
2016-06-02 05:34:03 +00:00
|
|
|
<rd-widget>
|
2016-07-27 07:59:41 +00:00
|
|
|
<rd-widget-header icon="fa-hdd-o" title="Node status"></rd-widget-header>
|
2016-06-02 05:34:03 +00:00
|
|
|
<rd-widget-body classes="no-padding">
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>
|
2016-06-14 02:13:52 +00:00
|
|
|
<a ui-sref="swarm" ng-click="order('Name')">
|
2016-06-02 05:34:03 +00:00
|
|
|
Name
|
|
|
|
<span ng-show="sortType == 'Name' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'Name' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
|
|
|
</a>
|
|
|
|
</th>
|
2016-07-27 07:54:31 +00:00
|
|
|
<th>
|
|
|
|
<a ui-sref="swarm" ng-click="order('cpu')">
|
|
|
|
CPU
|
|
|
|
<span ng-show="sortType == 'cpu' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'cpu' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
|
|
|
</a>
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
<a ui-sref="swarm" ng-click="order('memory')">
|
|
|
|
Memory
|
|
|
|
<span ng-show="sortType == 'memory' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'memory' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
|
|
|
</a>
|
|
|
|
</th>
|
2016-06-02 05:34:03 +00:00
|
|
|
<th>
|
2016-06-14 02:13:52 +00:00
|
|
|
<a ui-sref="swarm" ng-click="order('IP')">
|
2016-06-02 05:34:03 +00:00
|
|
|
IP
|
|
|
|
<span ng-show="sortType == 'IP' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'IP' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
|
|
|
</a>
|
|
|
|
</th>
|
2016-06-23 22:11:25 +00:00
|
|
|
<th>
|
|
|
|
<a ui-sref="swarm" ng-click="order('Engine')">
|
|
|
|
Engine
|
|
|
|
<span ng-show="sortType == 'Engine' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'Engine' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
|
|
|
</a>
|
|
|
|
</th>
|
2016-06-02 05:34:03 +00:00
|
|
|
<th>
|
2016-06-14 02:13:52 +00:00
|
|
|
<a ui-sref="swarm" ng-click="order('Status')">
|
2016-06-02 05:34:03 +00:00
|
|
|
Status
|
|
|
|
<span ng-show="sortType == 'Status' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'Status' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
|
|
|
</a>
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr ng-repeat="node in (state.filteredNodes = (swarm.Status | filter:state.filter | orderBy:sortType:sortReverse))">
|
|
|
|
<td>{{ node.name }}</td>
|
2016-07-27 07:54:31 +00:00
|
|
|
<td>{{ node.cpu }}</td>
|
|
|
|
<td>{{ node.memory }}</td>
|
2016-06-02 05:34:03 +00:00
|
|
|
<td>{{ node.ip }}</td>
|
2016-06-23 22:11:25 +00:00
|
|
|
<td>{{ node.version }}</td>
|
2016-06-29 09:04:29 +00:00
|
|
|
<td><span class="label label-{{ node.status|nodestatusbadge }}">{{ node.status }}</span></td>
|
2016-06-02 05:34:03 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</rd-widget-body>
|
|
|
|
</rd-widget>
|
|
|
|
</div>
|
2016-09-23 04:54:58 +00:00
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" ng-if="swarm_mode">
|
|
|
|
<rd-widget>
|
|
|
|
<rd-widget-header icon="fa-hdd-o" title="Node status"></rd-widget-header>
|
|
|
|
<rd-widget-body classes="no-padding">
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
<a ui-sref="swarm" ng-click="order('Name')">
|
|
|
|
Name
|
|
|
|
<span ng-show="sortType == 'Name' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'Name' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
|
|
|
</a>
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
<a ui-sref="swarm" ng-click="order('type')">
|
|
|
|
Role
|
|
|
|
<span ng-show="sortType == 'type' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'type' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
|
|
|
</a>
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
<a ui-sref="swarm" ng-click="order('cpu')">
|
|
|
|
CPU
|
|
|
|
<span ng-show="sortType == 'cpu' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'cpu' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
|
|
|
</a>
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
<a ui-sref="swarm" ng-click="order('memory')">
|
|
|
|
Memory
|
|
|
|
<span ng-show="sortType == 'memory' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'memory' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
|
|
|
</a>
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
<a ui-sref="swarm" ng-click="order('Engine')">
|
|
|
|
Engine
|
|
|
|
<span ng-show="sortType == 'Engine' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'Engine' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
|
|
|
</a>
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
<a ui-sref="swarm" ng-click="order('Status')">
|
|
|
|
Status
|
|
|
|
<span ng-show="sortType == 'Status' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'Status' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
|
|
|
</a>
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr ng-repeat="node in (state.filteredNodes = (nodes | filter:state.filter | orderBy:sortType:sortReverse))">
|
|
|
|
<td>{{ node.Description.Hostname }}</td>
|
|
|
|
<td>{{ node.Spec.Role }}</td>
|
|
|
|
<td>{{ node.Description.Resources.NanoCPUs / 1000000000 }}</td>
|
|
|
|
<td>{{ node.Description.Resources.MemoryBytes|humansize }}</td>
|
|
|
|
<td>{{ node.Description.Engine.EngineVersion }}</td>
|
|
|
|
<td><span class="label label-{{ node.Status.State|nodestatusbadge }}">{{ node.Status.State }}</span></td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</rd-widget-body>
|
|
|
|
</rd-widget>
|
|
|
|
</div>
|
2016-06-02 05:34:03 +00:00
|
|
|
</div>
|