k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
708 B
22 lines
708 B
---
|
|
- 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
|