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
3a598eba
Commit
3a598eba
authored
Jun 10, 2015
by
gong yong sheng
Committed by
Brendan Burns
Jun 19, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use NodePort instead Port, firewalls install firewall.
parent
0f374050
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
create.go
pkg/kubectl/cmd/create.go
+3
-3
No files found.
pkg/kubectl/cmd/create.go
View file @
3a598eba
...
@@ -126,7 +126,7 @@ func printObjectSpecificMessage(obj runtime.Object, out io.Writer) {
...
@@ -126,7 +126,7 @@ func printObjectSpecificMessage(obj runtime.Object, out io.Writer) {
An external load-balanced service was created. On many platforms (e.g. Google Compute Engine),
An external load-balanced service was created. On many platforms (e.g. Google Compute Engine),
you will also need to explicitly open a Firewall rule for the service port(s) (%s) to serve traffic.
you will also need to explicitly open a Firewall rule for the service port(s) (%s) to serve traffic.
See https://github.com/GoogleCloudPlatform/kubernetes/tree/master/docs/services-firewall.md for more details.
See https://github.com/GoogleCloudPlatform/kubernetes/tree/master/docs/services-firewall
s
.md for more details.
`
,
makePortsString
(
obj
.
Spec
.
Ports
))
`
,
makePortsString
(
obj
.
Spec
.
Ports
))
out
.
Write
([]
byte
(
msg
))
out
.
Write
([]
byte
(
msg
))
}
}
...
@@ -136,7 +136,7 @@ func printObjectSpecificMessage(obj runtime.Object, out io.Writer) {
...
@@ -136,7 +136,7 @@ func printObjectSpecificMessage(obj runtime.Object, out io.Writer) {
If you want to expose this service to the external internet, you may need to set up
If you want to expose this service to the external internet, you may need to set up
firewall rules for the service port(s) (%s) to serve traffic.
firewall rules for the service port(s) (%s) to serve traffic.
See https://github.com/GoogleCloudPlatform/kubernetes/tree/master/docs/services-firewall.md for more details.
See https://github.com/GoogleCloudPlatform/kubernetes/tree/master/docs/services-firewall
s
.md for more details.
`
,
makePortsString
(
obj
.
Spec
.
Ports
))
`
,
makePortsString
(
obj
.
Spec
.
Ports
))
out
.
Write
([]
byte
(
msg
))
out
.
Write
([]
byte
(
msg
))
}
}
...
@@ -146,7 +146,7 @@ func printObjectSpecificMessage(obj runtime.Object, out io.Writer) {
...
@@ -146,7 +146,7 @@ func printObjectSpecificMessage(obj runtime.Object, out io.Writer) {
func
makePortsString
(
ports
[]
api
.
ServicePort
)
string
{
func
makePortsString
(
ports
[]
api
.
ServicePort
)
string
{
pieces
:=
make
([]
string
,
len
(
ports
))
pieces
:=
make
([]
string
,
len
(
ports
))
for
ix
:=
range
ports
{
for
ix
:=
range
ports
{
pieces
[
ix
]
=
fmt
.
Sprintf
(
"%s:%d"
,
strings
.
ToLower
(
string
(
ports
[
ix
]
.
Protocol
)),
ports
[
ix
]
.
Port
)
pieces
[
ix
]
=
fmt
.
Sprintf
(
"%s:%d"
,
strings
.
ToLower
(
string
(
ports
[
ix
]
.
Protocol
)),
ports
[
ix
]
.
Node
Port
)
}
}
return
strings
.
Join
(
pieces
,
","
)
return
strings
.
Join
(
pieces
,
","
)
}
}
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