From 82b17ebc8ebd3b1770b0f22586b2f0bc2312fda9 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Sun, 24 Dec 2023 19:22:54 +0000 Subject: [PATCH] Fix capitalization in file paths and update helm install commands --- Devops/docs/helm-ops.md | 24 +++++++++---------- .../Public/oneuptime/templates/volumes.yaml | 12 ++++++++++ 2 files changed, 24 insertions(+), 12 deletions(-) create mode 100644 HelmChart/Public/oneuptime/templates/volumes.yaml diff --git a/Devops/docs/helm-ops.md b/Devops/docs/helm-ops.md index 4f16a67a9c..0be7d522b5 100644 --- a/Devops/docs/helm-ops.md +++ b/Devops/docs/helm-ops.md @@ -14,25 +14,25 @@ kubectl config use-context NAME ### Lint chart ``` -helm lint ./HelmChart/public/oneuptime +helm lint ./HelmChart/Public/oneuptime ``` ### Install as an Enterprise Cluster with default values ``` -helm install fi ./HelmChart/public/oneuptime --namespace default +helm install oneuptime-release./HelmChart/Public/oneuptime --namespace default ``` ### Install on staging ``` -helm install -f ./HelmChart/public/oneuptime/values.yaml -f ./kubernetes/values-saas-staging.yaml fi ./HelmChart/public/oneuptime --namespace default +helm install -f ./HelmChart/Public/oneuptime/values.yaml -f ./kubernetes/values-saas-staging.yaml oneuptime-release./HelmChart/Public/oneuptime --namespace default ``` ### Install on production ``` -helm install -f ./HelmChart/public/oneuptime/values.yaml -f ./Kubernetes/values-saas-production.yaml fi ./HelmChart/public/oneuptime --namespace default +helm install -f ./HelmChart/Public/oneuptime/values.yaml -f ./Kubernetes/values-saas-production.yaml oneuptime-release./HelmChart/Public/oneuptime --namespace default ``` ### Update Cluster @@ -41,7 +41,7 @@ Staging: ``` kubectl config use-context arn:aws:eks:us-east-2:972164494713:cluster/oneuptime-staging -helm upgrade -f ./HelmChart/public/oneuptime/values.yaml -f ./kubernetes/values-saas-staging.yaml fi ./HelmChart/public/oneuptime +helm upgrade -f ./HelmChart/Public/oneuptime/values.yaml -f ./kubernetes/values-saas-staging.yaml oneuptime-release./HelmChart/Public/oneuptime ``` Use default values first and then use staging values. @@ -50,7 +50,7 @@ Production: ``` kubectl config use-context arn:aws:eks:us-east-2:972164494713:cluster/oneuptime-production -helm upgrade -f ./HelmChart/public/oneuptime/values.yaml -f ./Kubernetes/values-saas-production.yaml fi ./HelmChart/public/oneuptime +helm upgrade -f ./HelmChart/Public/oneuptime/values.yaml -f ./Kubernetes/values-saas-production.yaml oneuptime-release./HelmChart/Public/oneuptime ``` Use default values first and then use production values. @@ -58,13 +58,13 @@ Use default values first and then use production values. If you introduce values, you can set ``` -helm upgrade --reuse-values --set key=value fi ./HelmChart/public/oneuptime +helm upgrade --reuse-values --set key=value oneuptime-release./HelmChart/Public/oneuptime ``` ### Uninstall ``` -helm uninstall fi --namespace=default +helm uninstall oneuptime-release--namespace=default ``` ### Docker build and push to docker repo with `:test` tag @@ -86,7 +86,7 @@ sudo ./ci/scripts/docker-build-and-push.sh $repo $tag ### Package and deploy helm chart ``` -cd ./HelmChart/public +cd ./HelmChart/Public helm repo index ./oneuptime helm package ./oneuptime helm repo index . @@ -97,8 +97,8 @@ cd .. ### Update a chart dependency ``` -cd ./HelmChart/public -#IMPORTANT: change the version of the dependent chart at `/HelmChart/public/oneuptime/Chart.yaml`. This should be the version field (and NOT appVersion) in Chart.yaml of the dependency. +cd ./HelmChart/Public +#IMPORTANT: change the version of the dependent chart at `/HelmChart/Public/oneuptime/Chart.yaml`. This should be the version field (and NOT appVersion) in Chart.yaml of the dependency. # Run this command. helm dependency update oneuptime @@ -114,4 +114,4 @@ Docker Images are hosted at: https://hub.docker.com/orgs/oneuptime/repositories ### More info -Read readme at [./public/oneuptime/Readme.md](./public/oneuptime/Readme.md) +Read readme at [./Public/oneuptime/Readme.md](./Public/oneuptime/Readme.md) diff --git a/HelmChart/Public/oneuptime/templates/volumes.yaml b/HelmChart/Public/oneuptime/templates/volumes.yaml new file mode 100644 index 0000000000..e547196ddd --- /dev/null +++ b/HelmChart/Public/oneuptime/templates/volumes.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: {{ printf "%s-%s" $.Release.Name "certs" }} +spec: + accessModes: + - ReadWriteMany + resources: + requests: + storage: 10Gi + storageClassName: {{ $.Values.global.storageClass }} +--- \ No newline at end of file