oneuptime/helm-chart
2020-10-28 21:21:59 +09:00
..
public Fix twilio settings. 2020-09-14 17:25:49 +09:00
.dockerignore Add helm chart to gitlab ci 2020-03-22 12:39:12 +01:00
.env Add helm chart to gitlab ci 2020-03-22 12:39:12 +01:00
.gitattributes Add helm chart to gitlab ci 2020-03-22 12:39:12 +01:00
.gitignore Add helm chart to gitlab ci 2020-03-22 12:39:12 +01:00
Dockerfile update nodejs in docker file. 2020-10-28 21:21:59 +09:00
LICENSE Add helm chart to gitlab ci 2020-03-22 12:39:12 +01:00
package-lock.json Fix audits 2020-08-07 17:53:30 +01:00
package.json Remove version update from build. 2020-05-19 22:02:11 +02:00
README.md Remove slack project because its deprecated. 2020-06-24 14:23:56 +02:00
server.js Refactor env files. 2020-03-22 15:22:56 +01:00

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 ./kubernetes/values-saas-staging.yaml fi ./helm-chart/public/fyipe --namespace default

Install on production

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

Update Cluster

Staging:

kubectl delete job fi-init-script
helm upgrade --reuse-values -f ./kubernetes/values-saas-staging.yaml fi ./helm-chart/public/fyipe

Production:

sudo kubectl delete job fi-init-script
sudo helm upgrade --reuse-values -f ./kubernetes/values-saas-production.yaml fi ./helm-chart/public/fyipe

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 ..

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