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
ea868d6f
Commit
ea868d6f
authored
Mar 22, 2017
by
Yu-Ju Hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kuberuntime: don't override the pod IP for pods using host network
parent
33eb8794
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
kuberuntime_manager.go
pkg/kubelet/kuberuntime/kuberuntime_manager.go
+7
-3
No files found.
pkg/kubelet/kuberuntime/kuberuntime_manager.go
View file @
ea868d6f
...
...
@@ -628,9 +628,13 @@ func (m *kubeGenericRuntimeManager) SyncPod(pod *v1.Pod, _ v1.PodStatus, podStat
return
}
// Overwrite the podIP passed in the pod status, since we just started the pod sandbox.
podIP
=
m
.
determinePodSandboxIP
(
pod
.
Namespace
,
pod
.
Name
,
podSandboxStatus
)
glog
.
V
(
4
)
.
Infof
(
"Determined the ip %q for pod %q after sandbox changed"
,
podIP
,
format
.
Pod
(
pod
))
// If we ever allow updating a pod from non-host-network to
// host-network, we may use a stale IP.
if
!
kubecontainer
.
IsHostNetworkPod
(
pod
)
{
// Overwrite the podIP passed in the pod status, since we just started the pod sandbox.
podIP
=
m
.
determinePodSandboxIP
(
pod
.
Namespace
,
pod
.
Name
,
podSandboxStatus
)
glog
.
V
(
4
)
.
Infof
(
"Determined the ip %q for pod %q after sandbox changed"
,
podIP
,
format
.
Pod
(
pod
))
}
}
// Get podSandboxConfig for containers to start.
...
...
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