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>
|
2017-06-20 11:00:32 +00:00
|
|
|
<i id="loadingViewSpinner" class="fa fa-cog fa-spin" style="margin-left: 5px;"></i>
|
2016-06-14 02:32:44 +00:00
|
|
|
</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>
|
2017-01-22 23:14:34 +00:00
|
|
|
<td ng-if="applicationState.endpoint.mode.provider === 'DOCKER_SWARM'">{{ swarm.Nodes }}</td>
|
|
|
|
<td ng-if="applicationState.endpoint.mode.provider === 'DOCKER_SWARM_MODE'">{{ info.Swarm.Nodes }}</td>
|
2016-06-02 05:34:03 +00:00
|
|
|
</tr>
|
2017-01-22 23:14:34 +00:00
|
|
|
<tr ng-if="applicationState.endpoint.mode.provider === 'DOCKER_SWARM'">
|
2016-06-02 05:34:03 +00:00
|
|
|
<td>Images</td>
|
|
|
|
<td>{{ info.Images }}</td>
|
|
|
|
</tr>
|
2017-01-22 23:14:34 +00:00
|
|
|
<tr ng-if="applicationState.endpoint.mode.provider === 'DOCKER_SWARM'">
|
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>
|
2017-01-22 23:14:34 +00:00
|
|
|
<tr ng-if="applicationState.endpoint.mode.provider === 'DOCKER_SWARM'">
|
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>
|
2017-01-22 23:14:34 +00:00
|
|
|
<td ng-if="applicationState.endpoint.mode.provider === 'DOCKER_SWARM'">{{ info.NCPU }}</td>
|
|
|
|
<td ng-if="applicationState.endpoint.mode.provider === 'DOCKER_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>
|
2017-01-22 23:14:34 +00:00
|
|
|
<td ng-if="applicationState.endpoint.mode.provider === 'DOCKER_SWARM'">{{ info.MemTotal|humansize: 2 }}</td>
|
|
|
|
<td ng-if="applicationState.endpoint.mode.provider === 'DOCKER_SWARM_MODE'">{{ totalMemory|humansize: 2 }}</td>
|
2016-06-02 05:34:03 +00:00
|
|
|
</tr>
|
2017-01-22 23:14:34 +00:00
|
|
|
<tr ng-if="applicationState.endpoint.mode.provider === 'DOCKER_SWARM'">
|
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>
|
2017-01-22 23:14:34 +00:00
|
|
|
<tr ng-if="applicationState.endpoint.mode.provider === 'DOCKER_SWARM'">
|
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>
|
2017-01-22 23:14:34 +00:00
|
|
|
<tr ng-if="applicationState.endpoint.mode.provider === 'DOCKER_SWARM'">
|
2016-07-27 07:54:31 +00:00
|
|
|
<td>Go version</td>
|
|
|
|
<td>{{ docker.GoVersion }}</td>
|
|
|
|
</tr>
|
2017-09-14 06:04:59 +00:00
|
|
|
<tr ng-if="applicationState.endpoint.mode.provider === 'DOCKER_SWARM_MODE'">
|
|
|
|
<td colspan="2">
|
|
|
|
<div class="btn-group" role="group" aria-label="...">
|
|
|
|
<a class="btn btn-outline-secondary" type="button" ui-sref="swarm.visualizer"><i class="fa fa-object-group space-right" aria-hidden="true"></i>Go to cluster visualizer</a>
|
|
|
|
</div>
|
|
|
|
</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">
|
2017-01-22 23:14:34 +00:00
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" ng-if="applicationState.endpoint.mode.provider === 'DOCKER_SWARM'">
|
2016-06-02 05:34:03 +00:00
|
|
|
<rd-widget>
|
2017-01-24 01:28:40 +00:00
|
|
|
<rd-widget-header icon="fa-hdd-o" title="Node status">
|
|
|
|
<div class="pull-right">
|
|
|
|
Items per page:
|
|
|
|
<select ng-model="state.pagination_count" ng-change="changePaginationCount()">
|
|
|
|
<option value="0">All</option>
|
|
|
|
<option value="10">10</option>
|
|
|
|
<option value="25">25</option>
|
|
|
|
<option value="50">50</option>
|
|
|
|
<option value="100">100</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</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>
|
2017-01-24 01:45:38 +00:00
|
|
|
<a ui-sref="swarm" ng-click="order('name')">
|
2016-06-02 05:34:03 +00:00
|
|
|
Name
|
2017-01-24 01:45:38 +00:00
|
|
|
<span ng-show="sortType == 'name' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'name' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
2016-06-02 05:34:03 +00:00
|
|
|
</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>
|
2017-01-24 01:45:38 +00:00
|
|
|
<a ui-sref="swarm" ng-click="order('ip')">
|
2016-06-02 05:34:03 +00:00
|
|
|
IP
|
2017-01-24 01:45:38 +00:00
|
|
|
<span ng-show="sortType == 'ip' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'ip' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
2016-06-02 05:34:03 +00:00
|
|
|
</a>
|
|
|
|
</th>
|
2016-06-23 22:11:25 +00:00
|
|
|
<th>
|
2017-01-24 01:45:38 +00:00
|
|
|
<a ui-sref="swarm" ng-click="order('version')">
|
2016-06-23 22:11:25 +00:00
|
|
|
Engine
|
2017-01-24 01:45:38 +00:00
|
|
|
<span ng-show="sortType == 'version' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'version' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
2016-06-23 22:11:25 +00:00
|
|
|
</a>
|
|
|
|
</th>
|
2016-06-02 05:34:03 +00:00
|
|
|
<th>
|
2017-01-24 01:45:38 +00:00
|
|
|
<a ui-sref="swarm" ng-click="order('status')">
|
2016-06-02 05:34:03 +00:00
|
|
|
Status
|
2017-01-24 01:45:38 +00:00
|
|
|
<span ng-show="sortType == 'status' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'status' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
2016-06-02 05:34:03 +00:00
|
|
|
</a>
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2017-01-24 01:28:40 +00:00
|
|
|
<tr dir-paginate="node in (state.filteredNodes = (swarm.Status | filter:state.filter | orderBy:sortType:sortReverse | itemsPerPage: state.pagination_count))">
|
2016-06-02 05:34:03 +00:00
|
|
|
<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>
|
2016-11-17 12:50:46 +00:00
|
|
|
<div class="pagination-controls">
|
|
|
|
<dir-pagination-controls></dir-pagination-controls>
|
|
|
|
</div>
|
2016-06-02 05:34:03 +00:00
|
|
|
</rd-widget-body>
|
|
|
|
</rd-widget>
|
|
|
|
</div>
|
2017-01-22 23:14:34 +00:00
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" ng-if="applicationState.endpoint.mode.provider === 'DOCKER_SWARM_MODE'">
|
2016-09-23 04:54:58 +00:00
|
|
|
<rd-widget>
|
2017-01-24 01:28:40 +00:00
|
|
|
<rd-widget-header icon="fa-hdd-o" title="Node status">
|
|
|
|
<div class="pull-right">
|
|
|
|
Items per page:
|
|
|
|
<select ng-model="state.pagination_count" ng-change="changePaginationCount()">
|
|
|
|
<option value="0">All</option>
|
|
|
|
<option value="10">10</option>
|
|
|
|
<option value="25">25</option>
|
|
|
|
<option value="50">50</option>
|
|
|
|
<option value="100">100</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</rd-widget-header>
|
2016-09-23 04:54:58 +00:00
|
|
|
<rd-widget-body classes="no-padding">
|
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>
|
2017-02-13 09:39:02 +00:00
|
|
|
<a ui-sref="swarm" ng-click="order('Hostname')">
|
2016-09-23 04:54:58 +00:00
|
|
|
Name
|
2017-02-13 09:39:02 +00:00
|
|
|
<span ng-show="sortType == 'Hostname' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'Hostname' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
2016-09-23 04:54:58 +00:00
|
|
|
</a>
|
|
|
|
</th>
|
|
|
|
<th>
|
2017-02-13 09:39:02 +00:00
|
|
|
<a ui-sref="swarm" ng-click="order('Role')">
|
2016-09-23 04:54:58 +00:00
|
|
|
Role
|
2017-02-13 09:39:02 +00:00
|
|
|
<span ng-show="sortType == 'Role' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'Role' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
2016-09-23 04:54:58 +00:00
|
|
|
</a>
|
|
|
|
</th>
|
|
|
|
<th>
|
2017-02-13 09:39:02 +00:00
|
|
|
<a ui-sref="swarm" ng-click="order('CPUs')">
|
2016-09-23 04:54:58 +00:00
|
|
|
CPU
|
2017-02-13 09:39:02 +00:00
|
|
|
<span ng-show="sortType == 'CPUs' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'CPUs' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
2016-09-23 04:54:58 +00:00
|
|
|
</a>
|
|
|
|
</th>
|
|
|
|
<th>
|
2017-02-13 09:39:02 +00:00
|
|
|
<a ui-sref="swarm" ng-click="order('Memory')">
|
2016-09-23 04:54:58 +00:00
|
|
|
Memory
|
2017-02-13 09:39:02 +00:00
|
|
|
<span ng-show="sortType == 'Memory' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'Memory' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
2016-09-23 04:54:58 +00:00
|
|
|
</a>
|
|
|
|
</th>
|
|
|
|
<th>
|
2017-02-13 09:39:02 +00:00
|
|
|
<a ui-sref="swarm" ng-click="order('EngineVersion')">
|
2016-09-23 04:54:58 +00:00
|
|
|
Engine
|
2017-02-13 09:39:02 +00:00
|
|
|
<span ng-show="sortType == 'EngineVersion' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'EngineVersion' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
|
|
|
</a>
|
|
|
|
</th>
|
|
|
|
<th ng-if="applicationState.endpoint.apiVersion >= 1.25">
|
|
|
|
<a ui-sref="swarm" ng-click="order('Addr')">
|
|
|
|
IP Address
|
|
|
|
<span ng-show="sortType == 'Addr' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'Addr' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
2016-09-23 04:54:58 +00:00
|
|
|
</a>
|
|
|
|
</th>
|
|
|
|
<th>
|
2017-02-13 09:39:02 +00:00
|
|
|
<a ui-sref="swarm" ng-click="order('Status')">
|
2016-09-23 04:54:58 +00:00
|
|
|
Status
|
2017-02-13 09:39:02 +00:00
|
|
|
<span ng-show="sortType == 'Status' && !sortReverse" class="glyphicon glyphicon-chevron-down"></span>
|
|
|
|
<span ng-show="sortType == 'Status' && sortReverse" class="glyphicon glyphicon-chevron-up"></span>
|
2016-09-23 04:54:58 +00:00
|
|
|
</a>
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2017-01-24 01:28:40 +00:00
|
|
|
<tr dir-paginate="node in (state.filteredNodes = (nodes | filter:state.filter | orderBy:sortType:sortReverse | itemsPerPage: state.pagination_count))">
|
2017-09-19 16:41:03 +00:00
|
|
|
<td>
|
|
|
|
<a ui-sref="node({id: node.Id})" ng-if="isAdmin">{{ node.Hostname }}</a>
|
|
|
|
<span ng-if="!isAdmin">{{ node.Hostname }}</span>
|
|
|
|
</td>
|
2017-02-13 09:39:02 +00:00
|
|
|
<td>{{ node.Role }}</td>
|
|
|
|
<td>{{ node.CPUs / 1000000000 }}</td>
|
|
|
|
<td>{{ node.Memory|humansize }}</td>
|
|
|
|
<td>{{ node.EngineVersion }}</td>
|
|
|
|
<td ng-if="applicationState.endpoint.apiVersion >= 1.25">{{ node.Addr }}</td>
|
|
|
|
<td><span class="label label-{{ node.Status|nodestatusbadge }}">{{ node.Status }}</span></td>
|
2016-09-23 04:54:58 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2016-11-17 12:50:46 +00:00
|
|
|
<div class="pagination-controls">
|
|
|
|
<dir-pagination-controls></dir-pagination-controls>
|
|
|
|
</div>
|
2016-09-23 04:54:58 +00:00
|
|
|
</rd-widget-body>
|
|
|
|
</rd-widget>
|
|
|
|
</div>
|
2016-06-02 05:34:03 +00:00
|
|
|
</div>
|