noheat: Add workaround for SDC case-sensivity in Istio
[integration.git] / deployment / noheat / cluster-rke / ansible / roles / deps / tasks / istio.yml
1 ---
2 - name: Add Istio Helm repository
3   kubernetes.core.helm_repository:
4     name: istio
5     repo_url: https://istio-release.storage.googleapis.com/charts
6
7 - name: Create Istio config namespace
8   kubernetes.core.k8s:
9     name: istio-config
10     api_version: v1
11     kind: Namespace
12     state: present
13
14 - name: Deploy Istio base chart
15   kubernetes.core.helm:
16     name: istio-base
17     chart_version: "{{ istio_version }}"
18     chart_ref: istio/base
19     release_namespace: istio-system
20     create_namespace: true
21
22 - name: Deploy Istio discovery chart
23   kubernetes.core.helm:
24     name: istiod
25     chart_version: "{{ istio_version }}"
26     chart_ref: istio/istiod
27     release_namespace: istio-system
28     wait: true
29     release_values:
30       meshConfig:
31         rootNamespace: istio-config
32
33 - name: Apply workaround for SDC case sensivity issue
34   kubernetes.core.k8s:
35     state: present
36     definition: "{{ lookup('file', 'envoyfilter-case.yml') | from_yaml }}"
37
38 - name: Create Istio ingress gateway namespace
39   kubernetes.core.k8s:
40     state: present
41     definition:
42       apiVersion: v1
43       kind: Namespace
44       metadata:
45         name: istio-ingress
46         labels:
47           istio-injection: enabled
48
49 - name: Deploy Istio ingress gateway chart
50   kubernetes.core.helm:
51     name: istio-ingress
52     chart_version: "{{ istio_version }}"
53     chart_ref: istio/gateway
54     release_namespace: istio-ingress
55     wait: true