mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 10:27:37 -02:30
ConfigMap rsyslog conf files for k8
This commit is contained in:
@@ -214,6 +214,7 @@
|
|||||||
- 'deployment'
|
- 'deployment'
|
||||||
- 'supervisor'
|
- 'supervisor'
|
||||||
- 'launch_awx'
|
- 'launch_awx'
|
||||||
|
- 'rsyslog'
|
||||||
no_log: true
|
no_log: true
|
||||||
|
|
||||||
- name: Apply Deployment
|
- name: Apply Deployment
|
||||||
@@ -225,6 +226,7 @@
|
|||||||
- "{{ deployment }}"
|
- "{{ deployment }}"
|
||||||
- "{{ supervisor }}"
|
- "{{ supervisor }}"
|
||||||
- "{{ launch_awx }}"
|
- "{{ launch_awx }}"
|
||||||
|
- "{{ rsyslog }}"
|
||||||
no_log: true
|
no_log: true
|
||||||
|
|
||||||
- name: Delete any existing management pod
|
- name: Delete any existing management pod
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ spec:
|
|||||||
mountPath: "/var/run/supervisor"
|
mountPath: "/var/run/supervisor"
|
||||||
- name: rsyslog-socket
|
- name: rsyslog-socket
|
||||||
mountPath: "/var/run/rsyslog"
|
mountPath: "/var/run/rsyslog"
|
||||||
- name: rsyslog-config
|
- name: rsyslog-dir
|
||||||
mountPath: "/var/lib/awx/rsyslog/"
|
mountPath: "/var/lib/awx/rsyslog/"
|
||||||
{% if ca_trust_dir is defined %}
|
{% if ca_trust_dir is defined %}
|
||||||
- name: {{ kubernetes_deployment_name }}-ca-trust-dir
|
- name: {{ kubernetes_deployment_name }}-ca-trust-dir
|
||||||
@@ -148,6 +148,11 @@ spec:
|
|||||||
subPath: supervisor_task.conf
|
subPath: supervisor_task.conf
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
|
||||||
|
- name: {{ kubernetes_deployment_name }}-rsyslog-config
|
||||||
|
mountPath: "/var/lib/awx/rsyslog/rsyslog.conf"
|
||||||
|
subPath: rsyslog.conf
|
||||||
|
readOnly: true
|
||||||
|
|
||||||
- name: {{ kubernetes_deployment_name }}-secret-key
|
- name: {{ kubernetes_deployment_name }}-secret-key
|
||||||
mountPath: "/etc/tower/SECRET_KEY"
|
mountPath: "/etc/tower/SECRET_KEY"
|
||||||
subPath: SECRET_KEY
|
subPath: SECRET_KEY
|
||||||
@@ -184,7 +189,7 @@ spec:
|
|||||||
mountPath: "/var/run/supervisor"
|
mountPath: "/var/run/supervisor"
|
||||||
- name: rsyslog-socket
|
- name: rsyslog-socket
|
||||||
mountPath: "/var/run/rsyslog"
|
mountPath: "/var/run/rsyslog"
|
||||||
- name: rsyslog-config
|
- name: rsyslog-dir
|
||||||
mountPath: "/var/lib/awx/rsyslog/"
|
mountPath: "/var/lib/awx/rsyslog/"
|
||||||
{% if ca_trust_dir is defined %}
|
{% if ca_trust_dir is defined %}
|
||||||
- name: {{ kubernetes_deployment_name }}-ca-trust-dir
|
- name: {{ kubernetes_deployment_name }}-ca-trust-dir
|
||||||
@@ -331,7 +336,7 @@ spec:
|
|||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: rsyslog-socket
|
- name: rsyslog-socket
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: rsyslog-config
|
- name: rsyslog-dir
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
{% if ca_trust_dir is defined %}
|
{% if ca_trust_dir is defined %}
|
||||||
- name: {{ kubernetes_deployment_name }}-ca-trust-dir
|
- name: {{ kubernetes_deployment_name }}-ca-trust-dir
|
||||||
@@ -409,6 +414,12 @@ spec:
|
|||||||
- key: supervisor-task-config
|
- key: supervisor-task-config
|
||||||
path: 'supervisor_task.conf'
|
path: 'supervisor_task.conf'
|
||||||
|
|
||||||
|
- name: {{ kubernetes_deployment_name }}-rsyslog-config
|
||||||
|
configMap:
|
||||||
|
name: {{ kubernetes_deployment_name }}-rsyslog-config
|
||||||
|
items:
|
||||||
|
- key: rsyslog-config
|
||||||
|
path: 'rsyslog.conf'
|
||||||
|
|
||||||
- name: {{ kubernetes_deployment_name }}-secret-key
|
- name: {{ kubernetes_deployment_name }}-secret-key
|
||||||
secret:
|
secret:
|
||||||
|
|||||||
10
installer/roles/kubernetes/templates/rsyslog.yml.j2
Normal file
10
installer/roles/kubernetes/templates/rsyslog.yml.j2
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: {{ kubernetes_deployment_name }}-rsyslog-config
|
||||||
|
namespace: {{ kubernetes_namespace }}
|
||||||
|
data:
|
||||||
|
rsyslog-config: |
|
||||||
|
$WorkDirectory /var/lib/awx/rsyslog
|
||||||
|
$IncludeConfig /etc/rsyslog.d/*.conf
|
||||||
|
|
||||||
Reference in New Issue
Block a user