promote Jinquan ni as MSB commiter and ptl
[msb/service-mesh.git] / install / README.md
1 # Scripts to Install Docker, Kubernetes, Helm and Istio on Ubuntu
2
3 ## Create k8s master node via kubeadmin
4 `1_install_k8s_master.sh`
5
6 ## Create k8s work node via kubeadmin
7 `2_install_k8s_minion.sh`
8
9 ## Install Istio via helm
10 `3_install_istio.sh`
11
12 ## Lable the namespaces in which you want to enable auto sidecar injection
13 `kubectl label namespace default istio-injection=enabled`
14   
15 ## Notice
16 Sidecar auto injection is disabled, so the sidecar injector will not inject the sidecar into pods by default. Add the sidecar.istio.io/inject annotation with value true to the pod template spec to enable injection.
17
18 The following example uses the sidecar.istio.io/inject annotation to enable sidecar injection.
19 ```
20 apiVersion: extensions/v1beta1
21 kind: Deployment
22 metadata:
23   name: ignored
24 spec:
25   template:
26     metadata:
27       annotations:
28         sidecar.istio.io/inject: "true"
29     spec:
30       containers:
31       - name: ignored
32         image: tutum/curl
33         command: ["/bin/sleep","infinity"]
34 ```
35
36 You can enable sidecar auto injection by setting the injection policy to 'enabled' at line 835 of istio.yaml.
37 ```
38  822 apiVersion: v1
39  823 kind: ConfigMap
40  824 metadata:
41  825   name: istio-sidecar-injector
42  826   namespace: istio-system
43  827   labels:
44  828     app: istio
45  829     chart: istio-0.8.0
46  830     release: RELEASE-NAME
47  831     heritage: Tiller
48  832     istio: sidecar-injector
49  833 data:
50  834   config: |-
51  835     policy: disabled
52  836     template: |-
53  837       initContainers:
54  838       - name: istio-init
55  839         image: docker.io/istio/proxy_init:0.8.0
56 ```
57
58 For more information on Istio integration, refer to:
59
60  -  [Manage ONAP Microservices with Istio Service Mesh](https://wiki.onap.org/display/DW/Manage+ONAP+Microservices+with+Istio+Service+Mesh)