oneuptime/helm-chart
2021-04-21 22:24:05 +01:00
..
api
middlewares
public backup and restore complete 2021-04-21 22:24:05 +01:00
test
.dockerignore
.env
.gitattributes
.gitignore
Dockerfile
LICENSE
package-lock.json update all 2021-03-06 13:24:28 +00:00
package.json update all 2021-03-06 13:24:28 +00:00
README.md update readme. 2021-04-15 19:25:37 +01:00
server.js

Important helm commands.

Please run these commands from root

Lint chart

helm lint ./helm-chart/public/fyipe

Install as an Enterprise Cluster with default values

helm install fi ./helm-chart/public/fyipe --namespace default

Install on staging

helm install -f ./helm-chart/public/fyipe/values.yaml -f ./kubernetes/values-saas-staging.yaml fi ./helm-chart/public/fyipe --namespace default

Install on production

helm install -f ./helm-chart/public/fyipe/values.yaml -f ./kubernetes/values-saas-production.yaml fi ./helm-chart/public/fyipe --namespace default

Update Cluster

Staging:

kubectl config set-context do-nyc1-fyipe-staging
helm upgrade -f ./helm-chart/public/fyipe/values.yaml -f ./kubernetes/values-saas-staging.yaml fi ./helm-chart/public/fyipe

Use default values first and then use staging values.

Production:

kubectl config set-context do-nyc3-fyipe-production
helm upgrade -f ./helm-chart/public/fyipe/values.yaml -f ./kubernetes/values-saas-production.yaml fi ./helm-chart/public/fyipe

Use default values first and then use production values.

If you introduce values, you can set

helm upgrade --reuse-values --set key=value fi ./helm-chart/public/fyipe

Uninstall

helm uninstall fi --namespace=default

Docker build and push to docker repo with :test tag

Build and deploy all (with master tag, you can use any other tag):

chmod +x ./ci/scripts/docker-build-all.sh
sudo ./ci/scripts/docker-build-all.sh latest

Build and deploy one:

chmod +x ./ci/scripts/docker-build.sh
sudo ./ci/scripts/docker-build.sh $repo $tag

Package and deploy helm chart

cd ./helm-chart/public
helm repo index ./fyipe
helm package ./fyipe
helm repo index .
cd ..
cd ..

Update a chart dependency

cd ./helm-chart/public
#IMPORTANT: change the version of the dependent chart at `/helm-chart/public/fyipe/Chart.yaml`. This should be the version field (and NOT appVersion) in Chart.yaml of the dependency.

# Run this command.
helm dependency update fyipe

# Go back to root.
cd ..
cd..

Docker Images

Docker Images are hosted at: https://hub.docker.com/orgs/fyipeproject/repositories and are public.

More info

Read readme at ./public/fyipe/Readme.md