mirror of
https://github.com/wardviaene/kubernetes-course.git
synced 2026-07-11 06:39:16 +00:00
update helm install
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# install jenkins
|
||||
```
|
||||
kubectl create -f serviceaccount.yaml
|
||||
helm install --name jenkins --set rbac.install=true,Master.RunAsUser=1000,Master.FsGroup=1000 stable/jenkins
|
||||
helm install --name jenkins --set rbac.create=true,master.runAsUser=1000,master.fsGroup=1000 stable/jenkins
|
||||
```
|
||||
|
||||
@@ -21,21 +21,21 @@ Add:
|
||||
- Priority
|
||||
```
|
||||
|
||||
## download (1.0.2):
|
||||
## download (1.0.3):
|
||||
```
|
||||
cd ~
|
||||
wget https://github.com/istio/istio/releases/download/1.0.2/istio-1.0.2-linux.tar.gz
|
||||
tar -xzvf istio-1.0.2-linux.tar.gz
|
||||
cd istio-1.0.2
|
||||
echo 'export PATH="$PATH:/home/ubuntu/istio-1.0.2/bin"' >> ~/.profile
|
||||
wget https://github.com/istio/istio/releases/download/1.0.3/istio-1.0.3-linux.tar.gz
|
||||
tar -xzvf istio-1.0.3-linux.tar.gz
|
||||
cd istio-1.0.3
|
||||
echo 'export PATH="$PATH:/home/ubuntu/istio-1.0.3/bin"' >> ~/.profile
|
||||
```
|
||||
|
||||
## Download (latest):
|
||||
```
|
||||
cd ~
|
||||
curl -L https://git.io/getLatestIstio | sh -
|
||||
echo 'export PATH="$PATH:/home/ubuntu/istio-1.0.2/bin"' >> ~/.profile # change 1.0.2 in your version
|
||||
cd istio-1.0.2 # change 1.0.2 in your version
|
||||
echo 'export PATH="$PATH:/home/ubuntu/istio-1.0.3/bin"' >> ~/.profile # change 1.0.3 in your version
|
||||
cd istio-1.0.3 # change 1.0.3 in your version
|
||||
```
|
||||
|
||||
## Istio install
|
||||
@@ -43,7 +43,7 @@ cd istio-1.0.2 # change 1.0.2 in your version
|
||||
Apply CRDs:
|
||||
|
||||
```
|
||||
kubectl apply -f ~/istio-1.0.2/install/kubernetes/helm/istio/templates/crds.yaml
|
||||
kubectl apply -f ~/istio-1.0.3/install/kubernetes/helm/istio/templates/crds.yaml
|
||||
```
|
||||
|
||||
Wait a few seconds.
|
||||
@@ -51,25 +51,25 @@ Wait a few seconds.
|
||||
|
||||
Option 1: with no mutual TLS authentication
|
||||
```
|
||||
kubectl apply -f ~/istio-1.0.2/install/kubernetes/istio-demo.yaml
|
||||
kubectl apply -f ~/istio-1.0.3/install/kubernetes/istio-demo.yaml
|
||||
```
|
||||
|
||||
Option 2: or with mutual TLS authentication
|
||||
```
|
||||
kubectl apply -f ~/istio-1.0.2/install/kubernetes/istio-demo-auth.yaml
|
||||
kubectl apply -f ~/istio-1.0.3/install/kubernetes/istio-demo-auth.yaml
|
||||
```
|
||||
|
||||
## Example app
|
||||
|
||||
### Example app (from istio)
|
||||
```
|
||||
export PATH="$PATH:/home/ubuntu/istio-1.0.2/bin"
|
||||
export PATH="$PATH:/home/ubuntu/istio-1.0.3/bin"
|
||||
kubectl apply -f <(istioctl kube-inject -f samples/bookinfo/platform/kube/bookinfo.yaml)
|
||||
```
|
||||
|
||||
### Hello world app
|
||||
```
|
||||
export PATH="$PATH:/home/ubuntu/istio-1.0.2/bin"
|
||||
export PATH="$PATH:/home/ubuntu/istio-1.0.3/bin"
|
||||
kubectl apply -f <(istioctl kube-inject -f helloworld.yaml)
|
||||
kubectl apply -f helloworld-gw.yaml
|
||||
```
|
||||
|
||||
@@ -188,9 +188,9 @@ metadata:
|
||||
spec:
|
||||
host: hello.ns1.svc.cluster.local
|
||||
# uncomment to enable mutual TLS
|
||||
#trafficPolicy:
|
||||
# tls:
|
||||
# mode: ISTIO_MUTUAL
|
||||
trafficPolicy:
|
||||
tls:
|
||||
mode: ISTIO_MUTUAL
|
||||
subsets:
|
||||
- name: v1-tls
|
||||
labels:
|
||||
@@ -203,9 +203,9 @@ metadata:
|
||||
spec:
|
||||
host: hello-reverse.legacy.svc.cluster.local
|
||||
# uncomment to enable mutual TLS
|
||||
#trafficPolicy:
|
||||
# tls:
|
||||
# mode: ISTIO_MUTUAL
|
||||
trafficPolicy:
|
||||
tls:
|
||||
mode: ISTIO_MUTUAL
|
||||
subsets:
|
||||
- name: v1-tls
|
||||
labels:
|
||||
|
||||
Reference in New Issue
Block a user