Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
1874599c
Commit
1874599c
authored
Jun 22, 2015
by
Jeff Lowdermilk
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8947 from bcbroussard/services-nodeport
Update the services web ui for nodeport and loadbalancer
parents
5726ca55
90b0b5c8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
12 deletions
+24
-12
datafile.go
pkg/ui/datafile.go
+0
-0
app.js
www/app/assets/js/app.js
+1
-1
replication.html
www/app/components/dashboard/views/replication.html
+1
-1
service.html
www/app/components/dashboard/views/service.html
+10
-4
listServicesController.js
...ashboard/js/modules/controllers/listServicesController.js
+1
-1
replication.html
www/master/components/dashboard/views/replication.html
+1
-1
service.html
www/master/components/dashboard/views/service.html
+10
-4
No files found.
pkg/ui/datafile.go
View file @
1874599c
This diff is collapsed.
Click to expand it.
www/app/assets/js/app.js
View file @
1874599c
...
@@ -1729,7 +1729,7 @@ app.controller('ListServicesCtrl', [
...
@@ -1729,7 +1729,7 @@ app.controller('ListServicesCtrl', [
var
n
=
''
;
var
n
=
''
;
if
(
p
.
name
)
if
(
p
.
name
)
n
=
p
.
name
+
': '
;
n
=
p
.
name
+
': '
;
n
=
n
+
p
.
port
;
n
=
n
+
p
.
port
;
return
n
;
return
n
;
}).
join
(
', '
);
}).
join
(
', '
);
}
}
...
...
www/app/components/dashboard/views/replication.html
View file @
1874599c
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
</div>
</div>
<div
ng-repeat=
"(label, value) in replicationController.spec.selector"
>
<div
ng-repeat=
"(label, value) in replicationController.spec.selector"
>
<a
ng-href=
"#/dashboard/groups/type/selector/{{label}}={{value}},type=pod"
>
{{label}}
=
{{value}}
</a>
<a
ng-href=
"#/dashboard/groups/type/selector/{{label}}={{value}},type=pod"
>
{{label}}
:
{{value}}
</a>
</div>
</div>
</td>
</td>
</tr>
</tr>
...
...
www/app/components/dashboard/views/service.html
View file @
1874599c
...
@@ -31,6 +31,11 @@
...
@@ -31,6 +31,11 @@
{{port.name}}:
{{port.name}}:
</span>
</span>
{{port.port}}/{{port.protocol}}
{{port.port}}/{{port.protocol}}
<div
ng-show=
"port.nodePort && port.nodePort != 0"
>
Node Port: {{port.nodePort}}/{{port.protocol}}
</div>
</div>
</div>
</td>
</td>
</tr>
</tr>
...
@@ -43,10 +48,12 @@
...
@@ -43,10 +48,12 @@
</td>
</td>
</tr>
</tr>
<tr
ng-show=
"service.s
pec.publicIP
s"
>
<tr
ng-show=
"service.s
tatus.loadBalancer.ingres
s"
>
<td
class=
"name"
>
Public IP
s
</td>
<td
class=
"name"
>
LoadBalancer Ingres
s
</td>
<td
class=
"value"
>
<td
class=
"value"
>
{{service.spec.publicIPs | join:', '}}
<span
ng-repeat=
"lb in service.status.loadBalancer.ingress"
>
{{lb.ip || lb.hostname}}{{$last ? '' : ', '}}
</span>
</td>
</td>
</tr>
</tr>
...
@@ -75,7 +82,6 @@
...
@@ -75,7 +82,6 @@
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td
class=
"name"
>
Related Pods
</td>
<td
class=
"name"
>
Related Pods
</td>
<td
class=
"value"
>
<td
class=
"value"
>
...
...
www/master/components/dashboard/js/modules/controllers/listServicesController.js
View file @
1874599c
...
@@ -86,7 +86,7 @@ app.controller('ListServicesCtrl', [
...
@@ -86,7 +86,7 @@ app.controller('ListServicesCtrl', [
var
n
=
''
;
var
n
=
''
;
if
(
p
.
name
)
if
(
p
.
name
)
n
=
p
.
name
+
': '
;
n
=
p
.
name
+
': '
;
n
=
n
+
p
.
port
;
n
=
n
+
p
.
port
;
return
n
;
return
n
;
}).
join
(
', '
);
}).
join
(
', '
);
}
}
...
...
www/master/components/dashboard/views/replication.html
View file @
1874599c
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
</div>
</div>
<div
ng-repeat=
"(label, value) in replicationController.spec.selector"
>
<div
ng-repeat=
"(label, value) in replicationController.spec.selector"
>
<a
ng-href=
"#/dashboard/groups/type/selector/{{label}}={{value}},type=pod"
>
{{label}}
=
{{value}}
</a>
<a
ng-href=
"#/dashboard/groups/type/selector/{{label}}={{value}},type=pod"
>
{{label}}
:
{{value}}
</a>
</div>
</div>
</td>
</td>
</tr>
</tr>
...
...
www/master/components/dashboard/views/service.html
View file @
1874599c
...
@@ -31,6 +31,11 @@
...
@@ -31,6 +31,11 @@
{{port.name}}:
{{port.name}}:
</span>
</span>
{{port.port}}/{{port.protocol}}
{{port.port}}/{{port.protocol}}
<div
ng-show=
"port.nodePort && port.nodePort != 0"
>
Node Port: {{port.nodePort}}/{{port.protocol}}
</div>
</div>
</div>
</td>
</td>
</tr>
</tr>
...
@@ -43,10 +48,12 @@
...
@@ -43,10 +48,12 @@
</td>
</td>
</tr>
</tr>
<tr
ng-show=
"service.s
pec.publicIP
s"
>
<tr
ng-show=
"service.s
tatus.loadBalancer.ingres
s"
>
<td
class=
"name"
>
Public IP
s
</td>
<td
class=
"name"
>
LoadBalancer Ingres
s
</td>
<td
class=
"value"
>
<td
class=
"value"
>
{{service.spec.publicIPs | join:', '}}
<span
ng-repeat=
"lb in service.status.loadBalancer.ingress"
>
{{lb.ip || lb.hostname}}{{$last ? '' : ', '}}
</span>
</td>
</td>
</tr>
</tr>
...
@@ -75,7 +82,6 @@
...
@@ -75,7 +82,6 @@
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td
class=
"name"
>
Related Pods
</td>
<td
class=
"name"
>
Related Pods
</td>
<td
class=
"value"
>
<td
class=
"value"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment