mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
Fix capitalization in file paths and update helm install commands
This commit is contained in:
@@ -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)
|
||||
|
||||
12
HelmChart/Public/oneuptime/templates/volumes.yaml
Normal file
12
HelmChart/Public/oneuptime/templates/volumes.yaml
Normal file
@@ -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 }}
|
||||
---
|
||||
Reference in New Issue
Block a user