-
Notifications
You must be signed in to change notification settings - Fork 64
Expand file tree
/
Copy path3_install_microservices_remote_minikube.sh
More file actions
executable file
·22 lines (18 loc) · 1.21 KB
/
3_install_microservices_remote_minikube.sh
File metadata and controls
executable file
·22 lines (18 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
kubectl create namespace tutorial
kubectl config set-context --current --namespace=tutorial
# Manual injection
kubectl apply -f <(istioctl kube-inject -f ../istio-tutorial/customer/kubernetes/Deployment.yml) -n tutorial
kubectl apply -f <(istioctl kube-inject -f ../istio-tutorial/preference/kubernetes/Deployment.yml) -n tutorial
kubectl apply -f <(istioctl kube-inject -f ../istio-tutorial/recommendation/kubernetes/Deployment.yml) -n tutorial
# OR auto-injection
# kubectl label namespace tutorial istio-injection=enabled
# kubectl apply -f ../istio-tutorial/customer/kubernetes/Deployment.yml -n tutorial
# kubectl apply -f ../istio-tutorial/preference/kubernetes/Deployment.yml -n tutorial
# kubectl apply -f ../istio-tutorial/recommendation/kubernetes/Deployment.yml -n tutorial
# now create the Services
kubectl create -f ../istio-tutorial/customer/kubernetes/Service.yml -n tutorial
# kubectl patch service/customer -p '{"spec":{"type":"NodePort"}}' -n tutorial
kubectl create -f ../istio-tutorial/preference/kubernetes/Service.yml -n tutorial
kubectl create -f ../istio-tutorial/recommendation/kubernetes/Service.yml -n tutorial
kubectl create -f ../istio-tutorial/customer/kubernetes/Gateway.yml -n tutorial