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.
40 lines
1.3 KiB
40 lines
1.3 KiB
---
|
|
- name: "ElasticSearch | Write efk manifests (RBAC)"
|
|
template:
|
|
src: "{{ item }}"
|
|
dest: "{{ kube_config_dir }}/{{ item }}"
|
|
with_items:
|
|
- "efk-sa.yml"
|
|
- "efk-clusterrolebinding.yml"
|
|
run_once: true
|
|
when: rbac_enabled
|
|
|
|
- name: "ElasticSearch | Create Serviceaccount and Clusterrolebinding (RBAC)"
|
|
command: "{{ bin_dir }}/kubectl apply -f {{ kube_config_dir }}/{{ item }} -n {{ system_namespace }}"
|
|
with_items:
|
|
- "efk-sa.yml"
|
|
- "efk-clusterrolebinding.yml"
|
|
run_once: true
|
|
when: rbac_enabled
|
|
|
|
- name: "ElasticSearch | Write ES deployment"
|
|
template:
|
|
src: elasticsearch-deployment.yml.j2
|
|
dest: "{{ kube_config_dir }}/elasticsearch-deployment.yaml"
|
|
register: es_deployment_manifest
|
|
|
|
- name: "ElasticSearch | Create ES deployment"
|
|
command: "{{ bin_dir }}/kubectl apply -f {{ kube_config_dir }}/elasticsearch-deployment.yaml -n {{ system_namespace }}"
|
|
run_once: true
|
|
when: es_deployment_manifest.changed
|
|
|
|
- name: "ElasticSearch | Write ES service "
|
|
template:
|
|
src: elasticsearch-service.yml.j2
|
|
dest: "{{ kube_config_dir }}/elasticsearch-service.yaml"
|
|
register: es_service_manifest
|
|
|
|
- name: "ElasticSearch | Create ES service"
|
|
command: "{{ bin_dir }}/kubectl apply -f {{ kube_config_dir }}/elasticsearch-service.yaml -n {{ system_namespace }}"
|
|
run_once: true
|
|
when: es_service_manifest.changed
|