Istio install steps

This commit is contained in:
Stefan Prodan
2018-04-17 14:13:08 +03:00
parent 88f417ee1c
commit 00106faf8d
+59
View File
@@ -0,0 +1,59 @@
# Istio
### Install
Download latest release:
```bash
curl -L https://git.io/getLatestIstio | sh -
```
Add the istioctl client to your PATH:
```bash
cd istio-0.7.1
export PATH=$PWD/bin:$PATH
```
Install Istio services without enabling mutual TLS authentication:
```bash
kubectl apply -f install/kubernetes/istio.yaml
```
### Setup automatic sidecar injection
Generate certs:
```bash
./install/kubernetes/webhook-create-signed-cert.sh \
--service istio-sidecar-injector \
--namespace istio-system \
--secret sidecar-injector-certs
```
Install the sidecar injection configmap:
```bash
kubectl apply -f install/kubernetes/istio-sidecar-injector-configmap-release.yaml
```
Set the caBundle in the webhook install YAML that the Kubernetes api-server uses to invoke the webhook:
```bash
cat install/kubernetes/istio-sidecar-injector.yaml | \
./install/kubernetes/webhook-patch-ca-bundle.sh > \
install/kubernetes/istio-sidecar-injector-with-ca-bundle.yaml
```
Install the sidecar injector webhook:
```bash
kubectl apply -f install/kubernetes/istio-sidecar-injector-with-ca-bundle.yaml
```
Label the default namespace with istio-injection=enabled:
```bash
kubectl label namespace default istio-injection=enabled
```