Skip to content

Commit 8c8e097

Browse files
committed
deploy helm
1 parent 6d11936 commit 8c8e097

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

README-cn.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,14 @@ kubectl apply -f addon/efk/
143143

144144
**注意**:运行EFK的每个节点需要消耗很大的CPU和内存,请保证每台虚拟机至少分配了4G内存。
145145

146+
**Helm**
147+
148+
用来部署helm。
149+
150+
```bash
151+
hack/deploy-helm.sh
152+
```
153+
146154
### Service Mesh
147155

148156
我们使用 [istio](https://istio.io) 作为 service mesh。

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ The container network range is `170.33.0.0/16` owned by flanneld with `host-gw`
4848
- Heapster + InfluxDB + Grafana
4949
- ElasticSearch + Fluentd + Kibana
5050
- Istio service mesh
51+
- Helm
5152

5253
#### Setup
5354
```bash
@@ -134,6 +135,14 @@ kubectl apply -f addon/heapster/
134135

135136
**Note**: Powerful CPU and memory allocation required. At least 4G per virtual machine.
136137

138+
**Helm**
139+
140+
Run this command on your local machine.
141+
142+
```bash
143+
hack/deploy-helm.sh
144+
```
145+
137146
### Service Mesh
138147

139148
We use [istio](https://istio.io) as the default service mesh.

hack/deploy-helm.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
#!/bin/bash
22
# Install helm CLI
3-
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get > get_helm.sh
4-
chmod 700 get_helm.sh
5-
./get_helm.sh
6-
# Deploy helm to kubernetes
3+
if command -v helm>/dev/null 2>&1; then
4+
echo 'Helm has been installed already'
5+
else
6+
echo 'Install helm on your local machine...'
7+
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get > get_helm.sh
8+
chmod 700 get_helm.sh
9+
./get_helm.sh
10+
fi
711
kubectl create serviceaccount --namespace kube-system tiller
812
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
913
helm init -i jimmysong/kubernetes-helm-tiller:v2.3.1

0 commit comments

Comments
 (0)