File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -13,3 +13,17 @@ sudo mv linux-amd64/helm /usr/local/bin/helm
13
13
kubect create -f helm-rbac.yaml
14
14
helm init --service-account tiller
15
15
```
16
+
17
+ ## Setup S3 helm repository
18
+ Make sure to set the default region in setup-s3-helm-repo.sh
19
+ ```
20
+ ./setup-s3-helm-repo.sh
21
+ ```
22
+
23
+ ## Package and push demo-chart
24
+
25
+ ```
26
+ export AWS_REGION=yourregion # if not set in ~/.aws
27
+ helm package demo-chart
28
+ helm s3 push ./demo-chart-0.0.1.tgz my-charts
29
+ ```
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ RANDOM_STRING=$( cat /dev/urandom | tr -dc ' a-zA-Z0-9' | fold -w 8 | tr ' [:upper:]' ' [:lower:]' | head -n 1)
6
+
7
+ # it's important to set the AWS_REGION if not set. Change the default
8
+ DEFAULT_REGION=" eu-west-1"
9
+ AWS_REGION=" ${AWS_REGION:- ${DEFAULT_REGION} } "
10
+
11
+ if [ " $AWS_REGION " == " us-east-1" ] ; then
12
+ aws s3api create-bucket --bucket helm-${RANDOM_STRING}
13
+ else
14
+ aws s3api create-bucket --bucket helm-${RANDOM_STRING} --region $AWS_REGION --create-bucket-configuration LocationConstraint=${AWS_REGION}
15
+ fi
16
+
17
+ helm plugin install https://github.com/hypnoglow/helm-s3.git
18
+ helm s3 init s3://helm-${RANDOM_STRING} /charts
19
+ helm repo add my-charts s3://helm-lcxqoc24/charts
You can’t perform that action at this time.
0 commit comments