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
57e74717
Commit
57e74717
authored
Dec 15, 2017
by
Brendan Burns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a typo and improve some documentation.
parent
761fdeac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
serving.go
pkg/kubeapiserver/options/serving.go
+2
-2
No files found.
pkg/kubeapiserver/options/serving.go
View file @
57e74717
...
@@ -85,7 +85,7 @@ func (s InsecureServingOptions) Validate(portArg string) []error {
...
@@ -85,7 +85,7 @@ func (s InsecureServingOptions) Validate(portArg string) []error {
errors
:=
[]
error
{}
errors
:=
[]
error
{}
if
s
.
BindPort
<
0
||
s
.
BindPort
>
65535
{
if
s
.
BindPort
<
0
||
s
.
BindPort
>
65535
{
errors
=
append
(
errors
,
fmt
.
Errorf
(
"--insecure-port %v must be between 0 and 65535, inclusive. 0 for turning off
secure
port."
,
s
.
BindPort
))
errors
=
append
(
errors
,
fmt
.
Errorf
(
"--insecure-port %v must be between 0 and 65535, inclusive. 0 for turning off
insecure (HTTP)
port."
,
s
.
BindPort
))
}
}
return
errors
return
errors
...
@@ -103,7 +103,7 @@ func (s *InsecureServingOptions) AddFlags(fs *pflag.FlagSet) {
...
@@ -103,7 +103,7 @@ func (s *InsecureServingOptions) AddFlags(fs *pflag.FlagSet) {
"The port on which to serve unsecured, unauthenticated access. It is assumed "
+
"The port on which to serve unsecured, unauthenticated access. It is assumed "
+
"that firewall rules are set up such that this port is not reachable from outside of "
+
"that firewall rules are set up such that this port is not reachable from outside of "
+
"the cluster and that port 443 on the cluster's public address is proxied to this "
+
"the cluster and that port 443 on the cluster's public address is proxied to this "
+
"port. This is performed by nginx in the default setup."
)
"port. This is performed by nginx in the default setup.
Set to zero to disable
"
)
}
}
func
(
s
*
InsecureServingOptions
)
AddDeprecatedFlags
(
fs
*
pflag
.
FlagSet
)
{
func
(
s
*
InsecureServingOptions
)
AddDeprecatedFlags
(
fs
*
pflag
.
FlagSet
)
{
...
...
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