aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--src/kube2msb/kube_work.go2
2 files changed, 2 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 959ce65..2a97bf1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@
.classpath
.settings/
.vscode/
+.idea/
target/
.vagrant
/archives/
diff --git a/src/kube2msb/kube_work.go b/src/kube2msb/kube_work.go
index 4e99cbd..07a2e63 100644
--- a/src/kube2msb/kube_work.go
+++ b/src/kube2msb/kube_work.go
@@ -178,7 +178,7 @@ func (client *ClientBookKeeper) RemovePod(pod *kapi.Pod) {
client.msbQueue <- MSBWork{
Action: MSBWorkRemovePod,
ServiceInfo: pod.Annotations[serviceKey],
- IPAddress: pod.Status.PodIP,
+ IPAddress: client.pods[pod.Name].Status.PodIP,
}
delete(client.pods, pod.Name)
log.Println("Queued Pod to be removed: ", pod.Name)