Skip to content

Commit 42727e8

Browse files
Merge pull request #24 from nsdf-fabric/add-proxy
Update Chart.yaml w/ proxy deployment
2 parents f74127d + 4ff9910 commit 42727e8

File tree

4 files changed

+48
-1
lines changed

4 files changed

+48
-1
lines changed

deployment/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,14 @@ These are stored as Github secrets.
1212

1313
- `LINODE_B64_KUBECONFIG` - base64-encoded Kubeconfig for the Kubernetes cluster
1414
- `LINODE_B64_SECRET_VALUES` - base64-encoded secret values we apply additionally to the deployment
15+
16+
17+
### Secrets values yaml file
18+
19+
To update `LINODE_B64_SECRET_VALUES`, use `examples.secrets-values.yaml` as a template for new yaml (say `new-secrets.yaml`) and...
20+
1. Update the passwords secrets where `CHANGEME` occurs
21+
- To create random, you can use: `python -c "import secrets; print(secrets.token_urlsafe())"`
22+
2. Base64 encode the yaml file: `base64 new-secret.yaml`
23+
3. Update the GitHub Actions `LINODE_B64_SECRET_VALUES` with this encoded string from step (2):
24+
- link: https://github.com/nsdf-fabric/NSDF-INTERSECT/settings/secrets/actions
25+
4. Save changes!

deployment/chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ dependencies:
77
# core INTERSECT
88
- name: intersect
99
repository: https://intersect-sdk.github.io/helm-charts/
10-
version: "0.0.3"
10+
version: "0.0.4"

deployment/chart/values.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,24 @@
33
######################
44
# anchors are just a useful feature so you don't repeat yourself in the config file
55

6+
67
.anchors:
8+
# proxy
9+
proxy:
10+
systemName: &proxy-systemName "nsdf.cloud.diffraction."
11+
log_level: &proxy-loglevel "info" # set to "debug" if you want extremely verbose output, including of the messages themselves
12+
13+
server:
14+
serverUsername: &proxy-serverUsername "proxy_username"
15+
serverContainerPort: &proxy-serverPort 9071 # you do not have to set this value, it will be 8080 if you don't. This is mostly to avoid conflicts with other applications.
16+
nodePort: &proxy-serverNodePort 30030
17+
718
# message plane
819
messageBroker:
920
username: &messageBroker-username "controller"
1021
# based off of templates/rabbitmq-secret.yaml, this is a hardcoded secret name we can reference across numerous applications
1122
brokerSecretName: &messageBroker-password "nsdf-intersect-broker-secret"
23+
brokerSecretKey: &messageBroker-passwordKey "rabbitmq-password"
1224
amqpNodePort: &messageBroker-amqpNodePort 30010
1325
mqttNodePort: &messageBroker-mqttNodePort 30011
1426
#stompNodePort: &messageBroker-stompNodePort 30012
@@ -24,6 +36,25 @@ commonAnnotations: {}
2436
brokerPassword: ""
2537

2638
intersect:
39+
proxy-http-server:
40+
enabled: true
41+
service:
42+
type: NodePort
43+
port: *proxy-serverPort
44+
nodePort: *proxy-serverNodePort
45+
# you do not have to set this value, it will be 8080 if you don't.
46+
containerPort: *proxy-serverPort
47+
app:
48+
username: *proxy-serverUsername
49+
topic_prefix: *proxy-systemName
50+
log_level: *proxy-loglevel
51+
broker:
52+
username: *messageBroker-username
53+
password:
54+
isSecret: true
55+
secretName: *messageBroker-password
56+
secretKey: *messageBroker-passwordKey
57+
2758
intersect-message-broker-1:
2859
image:
2960
debug: true
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
brokerPassword: "CHANGEME"
2+
intersect:
3+
proxy-http-server:
4+
app:
5+
password: "CHANGEME"

0 commit comments

Comments
 (0)