Initial website add.

This commit is contained in:
Brendan Burns
2014-10-01 10:15:45 -07:00
parent 1c29b50303
commit 219ceac985
7 changed files with 1101 additions and 0 deletions

20
www/partials/groups.html Normal file
View File

@@ -0,0 +1,20 @@
<!--
Copyright 2014 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<div class="content" style="width: 90%; margin-left: 5%" ng-if="selector && selector.length > 0">
<div class="k8s-inline">{{selector}}</div>
<div class="k8s-inline k8s-button" ng-click="controller.clearSelector()">X</div>
</div>
<div ng-repeat="(groupName,group) in groups.items" ng-include="'box.ng'">

63
www/partials/pod.html Normal file
View File

@@ -0,0 +1,63 @@
<!--
Copyright 2014 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<div class="content k8s-title-font k8s-font-regular">
<div class="navbar title k8s-title-font">
{{pod.id}}
</div>
{{pod.currentState.status}} on <a href="#/groups/host/selector/$.DesiredState.Host={{pod.currentState.host}}">{{pod.currentState.host}}</a>
<div>
Created: {{pod.creationTimestamp}}
</div>
<div>
Pod Networking : {{pod.currentState.podIP}}
<span ng-repeat="container in pod.desiredState.manifest.containers">
<span ng-repeat="port in container.ports">
:{{port.containerPort}}
</span>
</span>
</div>
<div>
Host Networking
{{pod.currentState.hostIP}}
<span ng-repeat="container in pod.desiredState.manifest.containers">
<span ng-repeat="port in container.ports">
:{{port.hostPort}}
</span>
</span>
</div>
<div>
<div>
Labels:
<div class="content">
<div ng-repeat="(label, value) in pod.labels">
{{label}} - {{value}}
</div>
</div>
</div>
Containers:
<div class="content">
<table width="400">
<tr><td>Name</td><td>Image</td><td>Restarts</td></tr>
<tr ng-repeat="container in pod.desiredState.manifest.containers">
<td>{{container.name}}</td>
<td>{{container.image}}</td>
<td>{{pod.currentState.info[container.name].restartCount}}</td>
</tr>
</table>
</div>
</div>
</div>