diff options
Diffstat (limited to 'deployment/noheat/cluster-rke/ansible/roles/deps/tasks/istio.yml')
-rw-r--r-- | deployment/noheat/cluster-rke/ansible/roles/deps/tasks/istio.yml | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/deployment/noheat/cluster-rke/ansible/roles/deps/tasks/istio.yml b/deployment/noheat/cluster-rke/ansible/roles/deps/tasks/istio.yml new file mode 100644 index 000000000..89b848636 --- /dev/null +++ b/deployment/noheat/cluster-rke/ansible/roles/deps/tasks/istio.yml @@ -0,0 +1,55 @@ +--- +- name: Add Istio Helm repository + kubernetes.core.helm_repository: + name: istio + repo_url: https://istio-release.storage.googleapis.com/charts + +- name: Create Istio config namespace + kubernetes.core.k8s: + name: istio-config + api_version: v1 + kind: Namespace + state: present + +- name: Deploy Istio base chart + kubernetes.core.helm: + name: istio-base + chart_version: "{{ istio_version }}" + chart_ref: istio/base + release_namespace: istio-system + create_namespace: true + +- name: Deploy Istio discovery chart + kubernetes.core.helm: + name: istiod + chart_version: "{{ istio_version }}" + chart_ref: istio/istiod + release_namespace: istio-system + wait: true + release_values: + meshConfig: + rootNamespace: istio-config + +- name: Apply workaround for SDC case sensivity issue + kubernetes.core.k8s: + state: present + definition: "{{ lookup('file', 'envoyfilter-case.yml') | from_yaml }}" + +- name: Create Istio ingress gateway namespace + kubernetes.core.k8s: + state: present + definition: + apiVersion: v1 + kind: Namespace + metadata: + name: istio-ingress + labels: + istio-injection: enabled + +- name: Deploy Istio ingress gateway chart + kubernetes.core.helm: + name: istio-ingress + chart_version: "{{ istio_version }}" + chart_ref: istio/gateway + release_namespace: istio-ingress + wait: true |