k3s/www/partials/pod.html

64 lines
1.9 KiB
HTML

<!--
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>