b22bef5cfb
Making fluentd.conf as configmap to change configuration. Change elasticsearch rc to deployment. Having installed previous elastaicsearch as rc, first should delete that.
23 lines
709 B
YAML
23 lines
709 B
YAML
---
|
|
- name: "Fluentd | copy config file"
|
|
template:
|
|
src: fluentd-config.yml.j2
|
|
dest: "{{ kube_config_dir }}/fluentd-config.yaml"
|
|
register: fluentd_config
|
|
|
|
- name: "Fluentd | create configMap"
|
|
command: "{{bin_dir}}/kubectl apply -f {{ kube_config_dir }}/fluentd-config.yaml"
|
|
run_once: true
|
|
when: fluentd_config.changed
|
|
|
|
- name: "Fluentd | Write fluentd daemonset"
|
|
template:
|
|
src: fluentd-ds.yml.j2
|
|
dest: "{{ kube_config_dir }}/fluentd-ds.yaml"
|
|
register: fluentd_ds_manifest
|
|
|
|
- name: "Fluentd | Create fluentd daemonset"
|
|
command: "{{ bin_dir }}/kubectl apply -f {{ kube_config_dir }}/fluentd-ds.yaml -n {{ system_namespace }}"
|
|
run_once: true
|
|
when: fluentd_ds_manifest.changed
|
|
|