mirror of
https://github.com/stefanprodan/podinfo.git
synced 2026-08-19 04:06:27 +00:00
Istio install steps
This commit is contained in:
@@ -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
|
||||
```
|
||||
Reference in New Issue
Block a user