Skip to content

Commit 102783c

Browse files
authored
Merge branch 'main' into fix/dynamic-by-bank-tab
2 parents e35f5cb + f9df6c7 commit 102783c

File tree

6 files changed

+50
-2
lines changed

6 files changed

+50
-2
lines changed

.github/workflows/deploy-linode.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
helm dependency update deployment/chart
3333
3434
- name: Deploy on Linode
35-
run: helm upgrade nsdf-intersect deployment/chart --install --force --wait -f ~/.kube/secret-values.yaml
35+
run: helm upgrade -n intersect nsdf-intersect deployment/chart --install --force --wait -f ~/.kube/secret-values.yaml
3636

3737
- name: Cleanup
3838
run: rm -rf ~/.kube

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- "**"
77
workflow_dispatch:
88

9+
910
jobs:
1011
publish:
1112
runs-on: ubuntu-latest

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.5"

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+
717
# message plane
818
messageBroker:
919
username: &messageBroker-username "controller"
20+
internalHost: &messageBroker-internalHost "nsdf-intersect-intersect-message-broker-1"
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: ClusterIP
43+
port: *proxy-serverPort
44+
# you do not have to set this value, it will be 8080 if you don't.
45+
containerPort: *proxy-serverPort
46+
app:
47+
username: *proxy-serverUsername
48+
topic_prefix: *proxy-systemName
49+
log_level: *proxy-loglevel
50+
broker:
51+
username: *messageBroker-username
52+
host: *messageBroker-internalHost
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)