Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Commit 485b708

Browse files
nicknezisjoshfischer1108
authored andcommitted
Updated Helm to 3.0.2 (#3430)
1 parent e51f265 commit 485b708

File tree

3 files changed

+43
-47
lines changed

3 files changed

+43
-47
lines changed

WORKSPACE

+4-4
Original file line numberDiff line numberDiff line change
@@ -937,18 +937,18 @@ http_archive(
937937
# for helm
938938
http_archive(
939939
name = "helm_mac",
940-
urls = ["https://storage.googleapis.com/kubernetes-helm/helm-v2.7.2-darwin-amd64.tar.gz"],
940+
urls = ["https://get.helm.sh/helm-v3.0.2-darwin-amd64.tar.gz"],
941941
strip_prefix = "darwin-amd64",
942942
build_file = "@//:third_party/helm/helm.BUILD",
943-
sha256 = "5058142bcd6e16b7e01695a8f258d27ae0b6469caf227ddf6aa2181405e6aa8e",
943+
sha256 = "05c7748da0ea8d5f85576491cd3c615f94063f20986fd82a0f5658ddc286cdb1",
944944
)
945945

946946
http_archive(
947947
name = "helm_linux",
948-
urls = ["https://storage.googleapis.com/kubernetes-helm/helm-v2.7.2-linux-amd64.tar.gz"],
948+
urls = ["https://get.helm.sh/helm-v3.0.2-linux-amd64.tar.gz"],
949949
strip_prefix = "linux-amd64",
950950
build_file = "@//:third_party/helm/helm.BUILD",
951-
sha256 = "9f04c4824fc751d6c932ae5b93f7336eae06e78315352aa80241066aa1d66c49",
951+
sha256 = "c6b7aa7e4ffc66e8abb4be328f71d48c643cb8f398d95c74d075cfb348710e1d",
952952
)
953953
# end helm
954954

scripts/packages/BUILD

-1
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,6 @@ genrule(
693693
'mv $$HELM_DIR/*.txt $$HELM_DIR/*.tpl $$HELM_DIR/templates',
694694
'rm $$HELM_DIR/Chart.yaml.template $$HELM_DIR/values.yaml.template $$HELM_DIR/release.yaml',
695695
'tree $$HELM_DIR',
696-
'$(location //third_party/helm:helm) init --client-only',
697696
'$(location //third_party/helm:helm) package $$HELM_DIR',
698697
'mv *.tgz heron-charts',
699698
'$(location //third_party/helm:helm) repo index heron-charts --url https://storage.googleapis.com/heron-charts',

website2/docs/schedulers-k8s-with-helm.md

+39-42
Original file line numberDiff line numberDiff line change
@@ -50,55 +50,52 @@ $ brew install kubernetes-helm
5050
You can install Helm on Linux using a simple installation script:
5151

5252
```bash
53-
$ curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get > install-helm.sh
54-
$ chmod 700 install-helm.sh
55-
$ ./install-helm.sh
53+
$ curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3
54+
$ chmod 700 get_helm.sh
55+
$ ./get_helm.sh
5656
```
5757

58-
## Installing Helm in your Kubernetes cluster
58+
## Installing Heron on Kubernetes
5959

60-
To run Helm on Kubernetes, you need to first make sure that [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl) is using the right configuration context for your cluster. To check which context is being used:
60+
To use Helm with Kubernetes, you need to first make sure that [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl) is using the right configuration context for your cluster. To check which context is being used:
6161

6262
```bash
6363
$ kubectl config current-context
6464
```
6565

66-
If the context is correct, then you can get Helm running using just one command:
66+
Once you've installed the Helm client on your machine and gotten Helm pointing to your Kubernetes cluster, you need to make your client aware of the `heron-charts` Helm repository, which houses the chart for Heron:
6767

6868
```bash
69-
$ helm init
69+
$ helm repo add heron-charts https://storage.googleapis.com/heron-charts
70+
"heron-charts" has been added to your repositories
7071
```
7172

72-
If the output of that command includes `Happy Helming!` then Helm is ready to go.
73-
74-
## Installing Heron on Kubernetes
75-
76-
Once you've installed the Helm client on your machine and gotten Helm running in your Kubernetes cluster, you need to make your client aware of the `heron-charts` Helm repository, which houses the chart for Heron:
73+
Create a namespace to install into:
7774

7875
```bash
79-
$ helm repo add heron-charts https://storage.googleapis.com/heron-charts
80-
"heron-charts" has been added to your repositories
76+
$ kubectl create namespace heron
8177
```
8278

8379
Now you can install the Heron package:
8480

8581
```bash
86-
$ helm install heron-charts/heron
82+
$ helm install heron-charts/heron -g -n heron
8783
```
8884

89-
This will install Heron and provide the installation with a random name like `jazzy-anaconda`. To provide the installation with a name, such as `heron-kubernetes`:
85+
This will install Heron and provide the installation in the `heron` namespace (`-n`) with a random name (`-g`) like `jazzy-anaconda`. To provide the installation with a name, such as `heron-kube`:
9086

9187
```bash
92-
$ helm install heron-charts/heron \
93-
--name heron-kubernetes
88+
$ helm install heron-kube heron-charts/heron \
89+
--namespace heron
9490
```
9591

9692
### Specifying a platform
9793

9894
The default platform for running Heron on Kubernetes is [Minikube](#minikube). To specify a different platform, you can use the `--set platform=PLATFORM` flag. Here's an example:
9995

10096
```bash
101-
$ helm install heron-charts/heron \
97+
$ helm install heron-kube heron-charts/heron \
98+
--namespace heron \
10299
--set platform=gke
103100
```
104101

@@ -130,12 +127,20 @@ $ minikube start \
130127

131128
Once Minikube is running, you can then install Heron in one of two ways:
132129

130+
Create a namespace to install into:
131+
132+
```bash
133+
$ kubectl create namespace heron
134+
```
135+
133136
```bash
134137
# Use the Minikube default
135-
$ helm install heron-charts/heron
138+
$ helm install heron-kube heron-charts/heron \
139+
--namespace heron
136140

137141
# Explicitly select Minikube
138-
$ helm install heron-charts/heron \
142+
$ helm install heron-kube heron-charts/heron \
143+
--namespace heron \
139144
--set platform=minikube
140145
```
141146

@@ -173,29 +178,17 @@ Once the cluster has been successfully created, you'll need to install that clus
173178
$ gcloud container clusters get-credentials heron-gke-dev-cluster # or heron-gke-prod-cluster
174179
```
175180

176-
Once, the cluster is running (that could take a few minutes), you can initialize Helm on the cluster:
177-
178-
```bash
179-
$ helm init
180-
```
181-
182-
Then, you'll need to adjust some RBAC permissions for your cluster:
181+
Create a namespace to install into:
183182

184183
```bash
185-
$ kubectl create serviceaccount tiller \
186-
--namespace kube-system \
187-
$ kubectl create clusterrolebinding tiller-cluster-rule \
188-
--clusterrole cluster-admin \
189-
--serviceaccount kube-system:tiller
190-
$ kubectl patch deploy tiller-deploy \
191-
--namespace kube-system \
192-
--patch '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'
184+
$ kubectl create namespace heron
193185
```
194186

195-
Finally, you can install Heron:
187+
Now you can install Heron:
196188

197189
```bash
198-
$ helm install heron-charts/heron \
190+
$ helm install heron-kube heron-charts/heron \
191+
--namespace heron \
199192
--set platform=gke
200193
```
201194

@@ -211,7 +204,8 @@ Configuration | Description
211204
To apply the `small` configuration, for example:
212205

213206
```bash
214-
$ helm install heron-charts/heron \
207+
$ helm install heron-kube heron-charts/heron \
208+
--namespace heron \
215209
--set platform=gke \
216210
--values https://raw.githubusercontent.com/apache/incubator-heron/master/deploy/kubernetes/gcp/small.yaml
217211
```
@@ -221,7 +215,8 @@ $ helm install heron-charts/heron \
221215
To run Heron on Kubernetes on Amazon Web Services (AWS), you'll need to
222216

223217
```bash
224-
$ helm install heron-charts/heron \
218+
$ helm install heron-kube heron-charts/heron \
219+
--namespace heron \
225220
--set platform=aws
226221
```
227222

@@ -230,7 +225,8 @@ $ helm install heron-charts/heron \
230225
You can make Heron to use S3 to distribute the user topologies. First you need to set up a S3 bucket and configure an IAM user with enough permissions over it. Get access keys for the user. Then you can deploy Heron like this:
231226

232227
```bash
233-
$ helm install heron-charts/heron \
228+
$ helm install heron-kube heron-charts/heron \
229+
--namespace heron \
234230
--set platform=aws \
235231
--set uploader.class=s3 \
236232
--set uploader.s3Bucket=heron \
@@ -245,7 +241,8 @@ $ helm install heron-charts/heron \
245241
To run Heron on a bare metal Kubernetes cluster:
246242

247243
```bash
248-
$ helm install heron-charts/heron \
244+
$ helm install heron-kube heron-charts/heron \
245+
--namespace heron \
249246
--set platform=baremetal
250247
```
251248

0 commit comments

Comments
 (0)