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
92117f69
Commit
92117f69
authored
Nov 24, 2017
by
Lion-Wei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add kube config file of kube-proxy to kube-proxy config map
parent
45db5e72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
defaults.go
cmd/kubeadm/app/apis/kubeadm/v1alpha1/defaults.go
+6
-0
No files found.
cmd/kubeadm/app/apis/kubeadm/v1alpha1/defaults.go
View file @
92117f69
...
@@ -65,6 +65,8 @@ const (
...
@@ -65,6 +65,8 @@ const (
DefaultProxyBindAddressv4
=
"0.0.0.0"
DefaultProxyBindAddressv4
=
"0.0.0.0"
// DefaultProxyBindAddressv6 is the default bind address when the advertise address is v6
// DefaultProxyBindAddressv6 is the default bind address when the advertise address is v6
DefaultProxyBindAddressv6
=
"::"
DefaultProxyBindAddressv6
=
"::"
// KubeproxyKubeConfigFileName efines the file name for the kube-proxy's KubeConfig file
KubeproxyKubeConfigFileName
=
"/var/lib/kube-proxy/kubeconfig.conf"
)
)
func
addDefaultingFuncs
(
scheme
*
runtime
.
Scheme
)
error
{
func
addDefaultingFuncs
(
scheme
*
runtime
.
Scheme
)
error
{
...
@@ -127,6 +129,10 @@ func SetDefaults_ProxyConfiguration(obj *MasterConfiguration) {
...
@@ -127,6 +129,10 @@ func SetDefaults_ProxyConfiguration(obj *MasterConfiguration) {
obj
.
KubeProxy
.
Config
.
ClusterCIDR
=
obj
.
Networking
.
PodSubnet
obj
.
KubeProxy
.
Config
.
ClusterCIDR
=
obj
.
Networking
.
PodSubnet
}
}
if
obj
.
KubeProxy
.
Config
.
ClientConnection
.
KubeConfigFile
==
""
{
obj
.
KubeProxy
.
Config
.
ClientConnection
.
KubeConfigFile
=
KubeproxyKubeConfigFileName
}
kubeproxyscheme
.
Scheme
.
Default
(
obj
.
KubeProxy
.
Config
)
kubeproxyscheme
.
Scheme
.
Default
(
obj
.
KubeProxy
.
Config
)
}
}
...
...
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