Skip to content

Commit 16a210a

Browse files
author
PJEstrada
authored
Update README.md
1 parent e64dc99 commit 16a210a

File tree

1 file changed

+40
-6
lines changed

1 file changed

+40
-6
lines changed

README.md

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
# diffgram-helm
22
Helm Chart for DIffgram
33

4-
# Pre-requisites
4+
# A. Pre-requisites
5+
6+
### Ingress Controller
7+
If you are using minikube make sure you've done:
8+
9+
`minikube addons enable ingress`
10+
11+
To have the ingress enabled, otherwise you won't be able to acess your diffgram services from outside the cluster.
12+
13+
If you are not on minikube, you can use the Nginx K8s Ingress Controller. Check how to install on your cloud provider here: https://kubernetes.github.io/ingress-nginx/deploy/
14+
515
### Opencore or Enterprise
616

717
Make sure you set the value of `diffgramEdition` in the `values.yaml` to either `opencore`
@@ -29,6 +39,11 @@ imagePullCredentials:
2939

3040

3141
### TLS Ceritificates
42+
For Minikube, follow this guide:
43+
44+
https://minikube.sigs.k8s.io/docs/tutorials/custom_cert_ingress/
45+
46+
3247
1. If you want to have TLS connections, please make sure you have a domain available and access to the name servers so you can modify the records to point to the IP addresses of the ingress.
3348

3449
`helm repo add jetstack https://charts.jetstack.io`
@@ -47,16 +62,23 @@ imagePullCredentials:
4762
4. After a few minutes you should be able to see the issuer and the certificate generated. You can confirm this by running:
4863
`kubectl describe issuer letsencrypt-prod`
4964

50-
# Installation
65+
# B. Installation
5166
`git clone https://github.com/diffgram/diffgram-helm/`
5267

53-
`helm install diffgram ./diffgram-helm`
68+
`helm install diffgram ./diffgram-helm --create-namespace`
69+
70+
If you don't change anything on `values.yaml`. You will have the namespace `default` created on your cluster
5471

55-
You can substitute `./diffgram` with whatever the path to this repo is on your local machine. Also feel free to install on any other namespace.
72+
### Values to Change in `values.yaml`
73+
Check section D. to see required values.
74+
75+
76+
77+
You can substitute `./diffgram-helm` with whatever the path to this repo is on your local machine. Also feel free to install on any other namespace.
5678

5779
Future versions will provide a repo to download the chart without cloning from github.
5880

59-
# Main Structure
81+
# C. Main Structure
6082
When deploying this chart there are 5 main components to be aware of:
6183

6284
**1. default-service:** This is the service in charge for most of the API calls and data management. Both for the SDK and for the Frontend UI.
@@ -70,7 +92,7 @@ When deploying this chart there are 5 main components to be aware of:
7092
**5. ingress:** A Nginx ingress controller for accessing all the services. This is the entry point and router to all the above services.
7193

7294

73-
# Configurations:
95+
# D. Configurations:
7496
The following are some of the most important configurations of the values.yaml in the helm chart. Please feel free to contact us if you have any questions on any of the configurations.
7597
## 4.1 Database Settings
7698
**1. dbSettings.dbProvider:** Set this to “rds”, "azure", or "local" depending on your DB managed service.
@@ -86,6 +108,7 @@ The following are some of the most important configurations of the values.yaml i
86108
**6. dbSettings.dbPassword:** Set this to RDS instance’s password
87109

88110
## 4.2 Diffgram Configuration Settings
111+
**1. diffgramSecrets.DIFFGRAM_STATIC_STORAGE_PROVIDER:** Set this to “aws”, "azure", or "gcp" depending on your DB managed service. Default is `aws`
89112
**1. diffgramSecrets.DIFFGRAM_AWS_ACCESS_KEY_ID:** Set this to your AWS credentials access key. Make sure the account has permissions to the S3 bucket you’ll use as static storage.
90113

91114
**2. diffgramSecrets.DIFFGRAM_AWS_ACCESS_KEY_SECRET:** Set this to your AWS credentials secret. Make sure the account has permissions to the S3 bucket you’ll use as static storage.
@@ -94,5 +117,16 @@ The following are some of the most important configurations of the values.yaml i
94117

95118
**4. diffgramSettings.ML__DIFFGRAM_S3_BUCKET_NAME:** Set this to your S3’s bucket name for static file storage.
96119

120+
# E. Common Issues:
121+
122+
1. My Helm Chart gets stuck during install and the timesout with
123+
124+
Try doing `kubectl get pods` and find a pod named `diffgram-pre-install-{SOME-ID}`.
125+
126+
Now do `kubectl logs diffgram-pre-install-{SOME-ID} -c pre-upgrade-alembic-hook`
127+
128+
This will show the logs of the POD to further debug the issue. Most common causes for this error are:
129+
130+
- Missing Blob Storage Provider Credentials (Either AWS Access Keys, GCP Service Account or Azure Conn String)
97131

98132

0 commit comments

Comments
 (0)