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>
This commit is contained in:
parent
2117e8167d
commit
1911fe5ca8
4 changed files with 5 additions and 4 deletions
|
@ -68,6 +68,7 @@ nginx_cpu_requests: 25m
|
||||||
|
|
||||||
nginx_image_repo: nginx
|
nginx_image_repo: nginx
|
||||||
nginx_image_tag: 1.13
|
nginx_image_tag: 1.13
|
||||||
|
nginx_config_dir: "/etc/nginx"
|
||||||
|
|
||||||
etcd_config_dir: /etc/ssl/etcd
|
etcd_config_dir: /etc/ssl/etcd
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
- name: nginx-proxy | Make nginx directory
|
- name: nginx-proxy | Make nginx directory
|
||||||
file:
|
file:
|
||||||
path: /etc/nginx
|
path: "{{ nginx_config_dir }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0700
|
mode: 0700
|
||||||
owner: root
|
owner: root
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
- name: nginx-proxy | Write nginx-proxy configuration
|
- name: nginx-proxy | Write nginx-proxy configuration
|
||||||
template:
|
template:
|
||||||
src: nginx.conf.j2
|
src: nginx.conf.j2
|
||||||
dest: "/etc/nginx/nginx.conf"
|
dest: "{{ nginx_config_dir }}/nginx.conf"
|
||||||
owner: root
|
owner: root
|
||||||
mode: 0755
|
mode: 0755
|
||||||
backup: yes
|
backup: yes
|
||||||
|
|
|
@ -33,4 +33,4 @@ spec:
|
||||||
volumes:
|
volumes:
|
||||||
- name: etc-nginx
|
- name: etc-nginx
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /etc/nginx
|
path: {{ nginx_config_dir }}
|
||||||
|
|
|
@ -120,7 +120,7 @@
|
||||||
- /etc/ssl/etcd
|
- /etc/ssl/etcd
|
||||||
- /var/log/calico
|
- /var/log/calico
|
||||||
- /etc/cni
|
- /etc/cni
|
||||||
- /etc/nginx
|
- "{{ nginx_config_dir }}"
|
||||||
- /etc/dnsmasq.d
|
- /etc/dnsmasq.d
|
||||||
- /etc/dnsmasq.conf
|
- /etc/dnsmasq.conf
|
||||||
- /etc/dnsmasq.d-available
|
- /etc/dnsmasq.d-available
|
||||||
|
|
Loading…
Reference in a new issue