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
ff977e5c
Unverified
Commit
ff977e5c
authored
Nov 22, 2016
by
Jordan Liggitt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add internal/external DNS node address types
parent
71369b9b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
options.go
cmd/kube-apiserver/app/options/options.go
+8
-0
types.go
pkg/api/types.go
+2
-0
types.go
pkg/api/v1/types.go
+2
-0
No files found.
cmd/kube-apiserver/app/options/options.go
View file @
ff977e5c
...
@@ -79,9 +79,17 @@ func NewServerRunOptions() *ServerRunOptions {
...
@@ -79,9 +79,17 @@ func NewServerRunOptions() *ServerRunOptions {
Port
:
ports
.
KubeletPort
,
Port
:
ports
.
KubeletPort
,
ReadOnlyPort
:
ports
.
KubeletReadOnlyPort
,
ReadOnlyPort
:
ports
.
KubeletReadOnlyPort
,
PreferredAddressTypes
:
[]
string
{
PreferredAddressTypes
:
[]
string
{
// --override-hostname
string
(
api
.
NodeHostName
),
string
(
api
.
NodeHostName
),
// internal, preferring DNS if reported
string
(
api
.
NodeInternalDNS
),
string
(
api
.
NodeInternalIP
),
string
(
api
.
NodeInternalIP
),
// external, preferring DNS if reported
string
(
api
.
NodeExternalDNS
),
string
(
api
.
NodeExternalIP
),
string
(
api
.
NodeExternalIP
),
string
(
api
.
NodeLegacyHostIP
),
string
(
api
.
NodeLegacyHostIP
),
},
},
EnableHttps
:
true
,
EnableHttps
:
true
,
...
...
pkg/api/types.go
View file @
ff977e5c
...
@@ -2718,6 +2718,8 @@ const (
...
@@ -2718,6 +2718,8 @@ const (
NodeHostName
NodeAddressType
=
"Hostname"
NodeHostName
NodeAddressType
=
"Hostname"
NodeExternalIP
NodeAddressType
=
"ExternalIP"
NodeExternalIP
NodeAddressType
=
"ExternalIP"
NodeInternalIP
NodeAddressType
=
"InternalIP"
NodeInternalIP
NodeAddressType
=
"InternalIP"
NodeExternalDNS
NodeAddressType
=
"ExternalDNS"
NodeInternalDNS
NodeAddressType
=
"InternalDNS"
)
)
type
NodeAddress
struct
{
type
NodeAddress
struct
{
...
...
pkg/api/v1/types.go
View file @
ff977e5c
...
@@ -3142,6 +3142,8 @@ const (
...
@@ -3142,6 +3142,8 @@ const (
NodeHostName
NodeAddressType
=
"Hostname"
NodeHostName
NodeAddressType
=
"Hostname"
NodeExternalIP
NodeAddressType
=
"ExternalIP"
NodeExternalIP
NodeAddressType
=
"ExternalIP"
NodeInternalIP
NodeAddressType
=
"InternalIP"
NodeInternalIP
NodeAddressType
=
"InternalIP"
NodeExternalDNS
NodeAddressType
=
"ExternalDNS"
NodeInternalDNS
NodeAddressType
=
"InternalDNS"
)
)
// NodeAddress contains information for the node's address.
// NodeAddress contains information for the node's address.
...
...
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