File tree Expand file tree Collapse file tree 2 files changed +56
-0
lines changed Expand file tree Collapse file tree 2 files changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ helm repo add istio https://istio-release.storage.googleapis.com/charts
4+ helm repo update
Original file line number Diff line number Diff line change 1+ provider "kubernetes" {
2+ config_path = " ~/.kube/config"
3+ }
4+
5+ provider "helm" {
6+ kubernetes {
7+ config_path = " ~/.kube/config"
8+ }
9+ }
10+
11+ resource "kubernetes_namespace" "istio-system" {
12+ metadata {
13+ name = " istio-system"
14+ }
15+ }
16+
17+ resource "helm_release" "istio-base" {
18+ name = " istio-base"
19+ repository = " https://istio-release.storage.googleapis.com/charts"
20+ chart = " base"
21+ version = " 1.24.2"
22+ set {
23+ name = " defaultRevision"
24+ value = " default"
25+ }
26+ namespace = kubernetes_namespace. istio-system . metadata . 0 . name
27+ depends_on = [kubernetes_namespace . istio-system ]
28+ }
29+
30+ resource "helm_release" "istio-istiod" {
31+ name = " istio-istiod"
32+ repository = " https://istio-release.storage.googleapis.com/charts"
33+ chart = " istiod"
34+ version = " 1.24.2"
35+ namespace = kubernetes_namespace. istio-system . metadata . 0 . name
36+ depends_on = [helm_release . istio-base ]
37+ }
38+
39+ resource "kubernetes_namespace" "istio-ingress" {
40+ metadata {
41+ name = " istio-ingress"
42+ }
43+ }
44+
45+ resource "helm_release" "istio-ingressgateway" {
46+ name = " istio-ingressgateway"
47+ repository = " https://istio-release.storage.googleapis.com/charts"
48+ chart = " gateway"
49+ version = " 1.24.2"
50+ namespace = kubernetes_namespace. istio-ingress . metadata . 0 . name
51+ depends_on = [kubernetes_namespace . istio-ingress , helm_release . istio-istiod ]
52+ }
You can’t perform that action at this time.
0 commit comments