-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_istio_jaeger.yml
54 lines (44 loc) · 1.66 KB
/
install_istio_jaeger.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
- name: Install Istio on GKE cluster
hosts: localhost
gather_facts: false
vars_files:
- ansible.vars.yml
collections:
- kubernetes.core
tasks:
- name: access gcp
shell: gcloud auth activate-service-account --key-file {{ credential }}
- name: set your desire project
shell: gcloud config set core/project {{ project_id }}
- name: get cluster credentials
shell: gcloud container clusters get-credentials {{ cluster_name }} --region {{ region_name }} --project {{ project_id }}
- name: set kube context to your cluster
shell: kubectl config use-context gke_{{ project_id }}_{{ region_name }}_{{ cluster_name }}
- name: Add istio chart repo
kubernetes.core.helm_repository:
name: istio
repo_url: "https://istio-release.storage.googleapis.com/charts"
- name: Add Jaeger chart repo
kubernetes.core.helm_repository:
name: jaegertracing
repo_url: "https://jaegertracing.github.io/helm-charts"
- name: Deploy latest version of Istio chart inside ist namespace with values
kubernetes.core.helm:
name: istiod
chart_ref: istio/istiod
create_namespace: true
namespace: istio-system
release_namespace: istiod
ca_cert:
kubeconfig: '~/.kube/config'
- name: Deploy latest version of Jaegar chart inside jae namespace with values
kubernetes.core.helm:
name: jaeger
chart_ref: jaegertracing/jaeger
create_namespace: true
namespace: jaeg
release_namespace: jaeger
kubeconfig: '~/.kube/config'
values_files:
- jaeger.values.yml