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.
35 lines
1.1 KiB
35 lines
1.1 KiB
---
|
|
- 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"
|
|
kube:
|
|
filename: "{{kube_config_dir}}/elasticsearch-deployment.yaml"
|
|
kubectl: "{{bin_dir}}/kubectl"
|
|
name: "elasticsearch-logging-v1"
|
|
namespace: "{{system_namespace}}"
|
|
resource: "rc"
|
|
state: "{{ item | ternary('latest','present') }}"
|
|
#state: "latest"
|
|
with_items: "{{ es_deployment_manifest.changed }}"
|
|
run_once: true
|
|
|
|
- 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"
|
|
kube:
|
|
filename: "{{kube_config_dir}}/elasticsearch-service.yaml"
|
|
kubectl: "{{bin_dir}}/kubectl"
|
|
name: "elasticsearch-logging"
|
|
namespace: "{{system_namespace}}"
|
|
resource: "svc"
|
|
state: "{{ item | ternary('latest','present') }}"
|
|
with_items: "{{ es_service_manifest.changed }}"
|
|
run_once: true
|