Skip to content

Commit 7ecd36f

Browse files
committed
Merge branch 'feature/istio' into feature/structure
2 parents 7b13962 + 5872ed7 commit 7ecd36f

File tree

7 files changed

+75
-40
lines changed

7 files changed

+75
-40
lines changed

istio/README.md

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,6 @@ Istio is an open-source service mesh platform that provides a uniform way to con
44
Traffic routing rules let you easily control the flow of traffic and API calls between services.
55
It provides a number of key capabilities uniformly across a network of services: traffic management, service identity and security, and observability and telemetry
66

7-
## Install istioctl
8-
9-
### Binary/Archive
10-
11-
```bash
12-
curl -L https://istio.io/downloadIstio | sh -
13-
cd istio-*/
14-
cd bin
15-
chmod +x istioctl
16-
sudo /bin/cp -pf istioctl /usr/local/bin
17-
```
18-
19-
### Homebrew
20-
21-
```sh
22-
brew install istioctl
23-
```
24-
25-
### Chocolatey
26-
27-
```ps1
28-
choco install -y istioctl
29-
```
30-
317
## References
328

339
- Istio Documentation: <https://istio.io/latest/docs/>

istio/helm/add-helm-repo.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
helm repo add istio https://istio-release.storage.googleapis.com/charts
4+
helm repo update

istio/helm/istio.tf

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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+
}

istio/install-istio.sh renamed to istio/install/install-istio.sh

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,7 @@ set -o errtrace
55

66
istioctl version
77
### Istio is not present in the cluster: no running Istio pods in namespace "istio-system"
8-
### client version: 1.23.2
9-
10-
### profile list
11-
istioctl profile list
12-
### Istio configuration profiles:
13-
### ambient
14-
### default
15-
### demo
16-
### empty
17-
### minimal
18-
### openshift
19-
### openshift-ambient
20-
### preview
21-
### remote
22-
### stable
8+
### client version: 1.24.2
239

2410
### install
2511
istioctl install -y --set profile=default
File renamed without changes.
File renamed without changes.

istio/istio-commands.sh

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,23 @@ export PATH="${PATH}:${HOME}/.istioctl/bin"
66

77
######################################################################
88

9+
### install istioctl
10+
11+
### download and install istioctl
12+
curl -L https://istio.io/downloadIstio | sh -
13+
cd istio-*/
14+
cd bin
15+
chmod +x istioctl
16+
sudo /bin/cp -pf istioctl /usr/local/bin
17+
18+
### homebrew
19+
brew install istioctl
20+
21+
### chocolatey
22+
choco install -y istioctl
23+
24+
######################################################################
25+
926
### version
1027

1128
istioctl version
@@ -19,7 +36,7 @@ istioctl version
1936

2037
######################################################################
2138

22-
### install
39+
### install istio
2340

2441
### profile list
2542
istioctl profile list

0 commit comments

Comments
 (0)