Skip to content

Commit 08b7e5d

Browse files
committed
feat: add rabbitmq to ingress and improve values.yaml
1 parent fcf5159 commit 08b7e5d

File tree

4 files changed

+29
-33
lines changed

4 files changed

+29
-33
lines changed

templates/diffgram_settings.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
CLOUD_STORAGE_BUCKET: {{ .Values.diffgramSettings.CLOUD_STORAGE_BUCKET }}
99
ML__CLOUD_STORAGE_BUCKET: {{ .Values.diffgramSettings.ML__CLOUD_STORAGE_BUCKET }}
1010
URL_BASE: {{ .Values.diffgramDomain }}
11-
WALRUS_SERVICE_URL_BASE: {{ .Values.diffgramSettings.WALRUS_SERVICE_URL_BASE }}
11+
WALRUS_SERVICE_URL_BASE: https://{{ .Values.diffgramDomain }}
1212
SERVICE_ACCOUNT_FULL_PATH: {{ .Values.diffgramSettings.SERVICE_ACCOUNT_FULL_PATH }}
1313
DIFFGRAM_AZURE_CONTAINER_NAME: {{ .Values.diffgramSettings.DIFFGRAM_AZURE_CONTAINER_NAME }}
1414
ML__DIFFGRAM_AZURE_CONTAINER_NAME: {{ .Values.diffgramSettings.ML__DIFFGRAM_AZURE_CONTAINER_NAME }}

templates/ingress.yaml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ metadata:
77
kubernetes.io/ingress.class: "nginx"
88
ingressclass.kubernetes.io/is-default-class: "true"
99
nginx.ingress.kubernetes.io/use-regex: "true"
10-
{{ if eq .Values.useTls false}}
1110
nginx.ingress.kubernetes.io/enable-cors: "true"
11+
{{ if eq .Values.useTls false}}
1212
nginx.ingress.kubernetes.io/hsts: "false"
1313
hsts: "false"
14-
1514
nginx.ingress.kubernetes.io/configuration-snippet: |
1615
add_header Access-Control-Allow-Methods "POST, GET, PUT, PATCH, DELETE, OPTIONS";
1716
add_header Access-Control-Allow-Credentials true;
@@ -24,15 +23,11 @@ metadata:
2423
}
2524
{{ end }}
2625
{{ if eq .Values.useTls true}}
27-
nginx.ingress.kubernetes.io/enable-cors: "true"
26+
cert-manager.io/issuer: {{ .Values.tlsIssuer }}
2827
nginx.ingress.kubernetes.io/configuration-snippet: |
2928
proxy_pass_header directory_id;
3029
{{ end }}
31-
3230
nginx.org/proxy-pass-headers: directory_id
33-
{{ if eq .Values.useTls true}}
34-
cert-manager.io/issuer: {{ .Values.tlsIssuer }}
35-
{{ end }}
3631
watch-namespace: {{ .Release.Namespace }}
3732
# Limit uploads to 8TB
3833
nginx.ingress.kubernetes.io/proxy-body-size: 800000m
@@ -46,6 +41,16 @@ spec:
4641
secretName: diffgram-cert-tls-{{ .Values.diffgramDomain }}
4742
{{ end }}
4843
rules:
44+
- host: rabbitmq.{{ .Values.diffgramDomain}}
45+
http:
46+
paths:
47+
- path: /
48+
pathType: ImplementationSpecific
49+
backend:
50+
service:
51+
name: diffgram-rabbitmq
52+
port:
53+
number: 15672
4954
- host: {{ .Values.diffgramDomain }}
5055
http:
5156
paths:

templates/ingress_configmap.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

values.yaml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Declare variables to be passed into your templates.
44

55
# The Diffgram Version. Whenever a new update arrives, this will be changed.
6-
diffgramVersion: DAD-244-actions-builder-v-2
6+
diffgramVersion: 0.16.0
77

88
# Either 'opencore' or 'enterprise'. Please note that selecting 'enterprise'
99
# requires that you also set imagePullCredentials.gcrCredentials.
@@ -12,7 +12,7 @@ diffgramEdition: opencore
1212
# Set this to your public domain where you want diffgram to be.
1313
# This must be a domain name and not a public IP address.
1414
# The chart will generate TLS certificates for the provided domain if useCertManager is 'true'
15-
diffgramDomain: mydiffgram1.com
15+
diffgramDomain: example.com
1616

1717
# Set this to true if you want to use cert manager for TLS certificates generation.
1818
useCertManager: true
@@ -42,14 +42,14 @@ dbSettings:
4242
# All the Secrets Used in Diffgram.
4343
diffgramSecrets:
4444
STRIPE_API_KEY: none
45-
DIFFGRAM_AWS_ACCESS_KEY_ID: write_your_aws_access_key
46-
DIFFGRAM_AWS_ACCESS_KEY_SECRET: write_your_aws_access_key_secret
45+
DIFFGRAM_AWS_ACCESS_KEY_ID: none
46+
DIFFGRAM_AWS_ACCESS_KEY_SECRET: none
4747
_ANALYTICS_WRITE_KEY: provided_by_diffgram_team
4848
MAILGUN_KEY: provided_by_diffgram_team
4949
HUB_SPOT_KEY: provided_by_diffgram_team
5050
SECRET_KEY: provided_by_diffgram_team
5151
FERNET_KEY: NeL_RED6zZ1XF3XT7Yd1hzFPYyebrg6UdkECTOLHEdI= # Please change this for production usage
52-
INTER_SERVICE_SECRET: provided_by_diffgram_team
52+
INTER_SERVICE_SECRET: interservicesecret_please_replace_with_secure_value
5353
# Use diffgram-postgres, postgres-rds-service depending on which DB service you set on dbSettings
5454
USER_PASSWORDS_SECRET: provided_by_diffgram_team
5555
# The service account JSON for GCP Static Storage Encoded in Base64.
@@ -60,12 +60,11 @@ diffgramSecrets:
6060

6161
diffgramSettings:
6262
USERDOMAIN: kubernetes
63-
WALRUS_SERVICE_URL_BASE: example.com
6463
DIFFGRAM_SYSTEM_MODE: production
6564
DIFFGRAM_STATIC_STORAGE_PROVIDER: aws
66-
DIFFGRAM_S3_BUCKET_NAME: none
67-
DIFFGRAM_AZURE_CONTAINER_NAME: none
68-
ML__DIFFGRAM_AZURE_CONTAINER_NAME: none
65+
DIFFGRAM_S3_BUCKET_NAME: diffgram-testing
66+
DIFFGRAM_AZURE_CONTAINER_NAME: diffgram-testing
67+
ML__DIFFGRAM_AZURE_CONTAINER_NAME: diffgram-testing
6968
ML__DIFFGRAM_S3_BUCKET_NAME: diffgram-testing
7069
CLOUD_STORAGE_BUCKET: diffgram-testing
7170
ML__CLOUD_STORAGE_BUCKET: diffgram-testing
@@ -107,12 +106,18 @@ imagePullCredentials:
107106
useRabbitMq: true
108107
rabbitmq:
109108
auth:
110-
rabbitmq: "diffgram"
109+
username: "diffgram"
111110
password: "diffgram"
112111
tls:
113112
enabled: true
114113
autoGenerated: true
115-
114+
resources:
115+
requests:
116+
cpu: "1.0"
117+
memory: "1G"
118+
limits:
119+
cpu: "2.0"
120+
memory: "2G"
116121
####### End Dependencies
117122

118123
nodeGroupLabel: null

0 commit comments

Comments
 (0)