diff --git a/roles/kubernetes-apps/ansible/templates/netchecker-server-deployment.yml.j2 b/roles/kubernetes-apps/ansible/templates/netchecker-server-deployment.yml.j2 index 0be97e0db9d..9eedfcd7cbc 100644 --- a/roles/kubernetes-apps/ansible/templates/netchecker-server-deployment.yml.j2 +++ b/roles/kubernetes-apps/ansible/templates/netchecker-server-deployment.yml.j2 @@ -17,6 +17,9 @@ spec: app: netchecker-server spec: priorityClassName: {% if netcheck_namespace == 'kube-system' %}system-cluster-critical{% else %}k8s-cluster-critical{% endif %}{{''}} + volumes: + - name: etcd-data + emptyDir: {} containers: - name: netchecker-server image: "{{ netcheck_server_image_repo }}:{{ netcheck_server_image_tag }}" @@ -34,10 +37,22 @@ spec: ports: - containerPort: 8081 args: - - "-v=5" - - "-logtostderr" - - "-kubeproxyinit" - - "-endpoint=0.0.0.0:8081" + - -v=5 + - -logtostderr + - -kubeproxyinit=false + - -endpoint=0.0.0.0:8081 + - -etcd-endpoints=https://127.0.0.1:2379 + - name: etcd + image: "{{ etcd_image_repo }}:{{ etcd_image_tag }}" + imagePullPolicy: {{ k8s_image_pull_policy }} + args: + - --listen-client-urls=http://127.0.0.1:2379 + - --advertise-client-urls=http://127.0.0.1:2379 + - --listen-metrics=http://127.0.0.1:2381 + - --data-dir=/var/lib/etcd + volumeMounts: + - mountPath: /var/lib/etcd + name: etcd-data tolerations: - effect: NoSchedule operator: Exists