Browse Source

fix nginx proxy configuration conflicts (#3489)

* Allow configuration of nginx proxy config path

* Fix the internal nginx configuration location

Signed-off-by: Johann Queuniet <contact@lordran.net>
pull/3515/head
Johann Queuniet 6 years ago
committed by k8s-ci-robot
parent
commit
1911fe5ca8
4 changed files with 5 additions and 4 deletions
  1. 1
      roles/kubernetes/node/defaults/main.yml
  2. 4
      roles/kubernetes/node/tasks/nginx-proxy.yml
  3. 2
      roles/kubernetes/node/templates/manifests/nginx-proxy.manifest.j2
  4. 2
      roles/reset/tasks/main.yml

1
roles/kubernetes/node/defaults/main.yml

@ -68,6 +68,7 @@ nginx_cpu_requests: 25m
nginx_image_repo: nginx
nginx_image_tag: 1.13
nginx_config_dir: "/etc/nginx"
etcd_config_dir: /etc/ssl/etcd

4
roles/kubernetes/node/tasks/nginx-proxy.yml

@ -6,7 +6,7 @@
- name: nginx-proxy | Make nginx directory
file:
path: /etc/nginx
path: "{{ nginx_config_dir }}"
state: directory
mode: 0700
owner: root
@ -14,7 +14,7 @@
- name: nginx-proxy | Write nginx-proxy configuration
template:
src: nginx.conf.j2
dest: "/etc/nginx/nginx.conf"
dest: "{{ nginx_config_dir }}/nginx.conf"
owner: root
mode: 0755
backup: yes

2
roles/kubernetes/node/templates/manifests/nginx-proxy.manifest.j2

@ -33,4 +33,4 @@ spec:
volumes:
- name: etc-nginx
hostPath:
path: /etc/nginx
path: {{ nginx_config_dir }}

2
roles/reset/tasks/main.yml

@ -120,7 +120,7 @@
- /etc/ssl/etcd
- /var/log/calico
- /etc/cni
- /etc/nginx
- "{{ nginx_config_dir }}"
- /etc/dnsmasq.d
- /etc/dnsmasq.conf
- /etc/dnsmasq.d-available

Loading…
Cancel
Save