From 31d8f29ae8bb6cf3480f0e2b870986ac684ae076 Mon Sep 17 00:00:00 2001 From: Aleksey Kasatkin Date: Mon, 24 Apr 2017 16:46:16 +0300 Subject: [PATCH] add MY_NODE_NAME variable into netchecker-agent environment --- .../ansible/templates/netchecker-agent-ds.yml.j2 | 4 ++++ .../ansible/templates/netchecker-agent-hostnet-ds.j2 | 4 ++++ .../ansible/templates/netchecker-agent-hostnet-ds.yml.j2 | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/roles/kubernetes-apps/ansible/templates/netchecker-agent-ds.yml.j2 b/roles/kubernetes-apps/ansible/templates/netchecker-agent-ds.yml.j2 index 139498733..df0b8ba90 100644 --- a/roles/kubernetes-apps/ansible/templates/netchecker-agent-ds.yml.j2 +++ b/roles/kubernetes-apps/ansible/templates/netchecker-agent-ds.yml.j2 @@ -20,6 +20,10 @@ spec: valueFrom: fieldRef: fieldPath: metadata.name + - name: MY_NODE_NAME + valueFrom: + fieldRef: + fieldPath: spec.nodeName args: - "-v=5" - "-alsologtostderr=true" diff --git a/roles/kubernetes-apps/ansible/templates/netchecker-agent-hostnet-ds.j2 b/roles/kubernetes-apps/ansible/templates/netchecker-agent-hostnet-ds.j2 index 13a966c80..10a74da84 100644 --- a/roles/kubernetes-apps/ansible/templates/netchecker-agent-hostnet-ds.j2 +++ b/roles/kubernetes-apps/ansible/templates/netchecker-agent-hostnet-ds.j2 @@ -24,6 +24,10 @@ spec: valueFrom: fieldRef: fieldPath: metadata.name + - name: MY_NODE_NAME + valueFrom: + fieldRef: + fieldPath: spec.nodeName args: - "-v=5" - "-alsologtostderr=true" diff --git a/roles/kubernetes-apps/ansible/templates/netchecker-agent-hostnet-ds.yml.j2 b/roles/kubernetes-apps/ansible/templates/netchecker-agent-hostnet-ds.yml.j2 index 13a966c80..10a74da84 100644 --- a/roles/kubernetes-apps/ansible/templates/netchecker-agent-hostnet-ds.yml.j2 +++ b/roles/kubernetes-apps/ansible/templates/netchecker-agent-hostnet-ds.yml.j2 @@ -24,6 +24,10 @@ spec: valueFrom: fieldRef: fieldPath: metadata.name + - name: MY_NODE_NAME + valueFrom: + fieldRef: + fieldPath: spec.nodeName args: - "-v=5" - "-alsologtostderr=true"