diff --git a/demo/echo-service.yaml b/demo/echo-service.yaml new file mode 100644 index 00000000..25b810f4 --- /dev/null +++ b/demo/echo-service.yaml @@ -0,0 +1,33 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: echo +spec: + replicas: 1 + selector: + matchLabels: + app: echo + template: + metadata: + labels: + app: echo + spec: + containers: + - name: echo + image: mendhak/http-https-echo + ports: + - containerPort: 8080 + +--- + +apiVersion: v1 +kind: Service +metadata: + name: echo +spec: + type: ClusterIP + selector: + app: echo + ports: + - port: 8080 + targetPort: 8080 \ No newline at end of file diff --git a/demo/install-istio.sh b/demo/install-istio.sh new file mode 100755 index 00000000..6a1b2d14 --- /dev/null +++ b/demo/install-istio.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Create Kind cluster +kind create cluster + +# Add Helm repo +helm repo add istio https://istio-release.storage.googleapis.com/charts +helm repo update + +# Create istio-system namespace +kubectl create namespace istio-system + +# Install Istio components +helm install istio-base istio/base -n istio-system +helm install istiod istio/istiod -n istio-system --wait +helm install istio-ingress istio/gateway -n istio-system + +# Label default namespace to inject sidecar automatically +kubectl label namespace default istio-injection=enabled \ No newline at end of file