Skip to content

Commit ded0f20

Browse files
committed
ci: add DIAL chart to CI deployment
1 parent 0efcbb1 commit ded0f20

File tree

4 files changed

+71
-9
lines changed

4 files changed

+71
-9
lines changed

.github/workflows/deploy-linode.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
mkdir -p ~/.kube
2222
echo ${{ secrets.LINODE_B64_KUBECONFIG }} | base64 --decode > ~/.kube/config
2323
echo ${{ secrets.LINODE_B64_SECRET_VALUES }} | base64 --decode > ~/.kube/secret-values.yaml
24+
echo ${{ secrets.LINODE_B64_DIAL_VALUES }} | base64 --decode > ~/.kube/dial-values.yaml
2425
chmod -R g-r ~/.kube/
2526
2627
- name: Install Helm
@@ -30,9 +31,12 @@ jobs:
3031
- name: Add Helm repo dependencies
3132
run: |
3233
helm dependency update deployment/chart
34+
helm dependency update deployment/dial
3335
3436
- name: Deploy on Linode
35-
run: helm upgrade -n intersect nsdf-intersect deployment/chart --install --force --wait -f ~/.kube/secret-values.yaml
37+
run: |
38+
helm upgrade -n intersect nsdf-intersect deployment/chart --install --force --wait -f ~/.kube/secret-values.yaml
39+
helm upgrade -n dial dial deployment/dial --install --force --wait -f ~/.kube/dial-values.yaml
3640
3741
- name: Cleanup
3842
run: rm -rf ~/.kube

deployment/README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,17 @@ 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-
15+
- `LINODE_B64_DIAL_VALUES` - base64-encoded secret values to apply to the Dial chart deployment
1616

1717
### Secrets values yaml file
1818

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!
19+
To update `LINODE_B64_SECRET_VALUES` or `LINODE_B64_DIAL_VALUES`, use `examples.secrets-values.yaml` or `dial-example.secret-values.yaml` respectively, as a template for new yaml (say `new-secrets.yaml`) and...
20+
21+
1. Update the passwords secrets where `CHANGEME` occurs
22+
- To create random, you can use: `python -c "import secrets; print(secrets.token_urlsafe())"`
23+
24+
2. Base64 encode the yaml file: `base64 new-secret.yaml`
25+
3. Update the GitHub Actions `LINODE_B64_SECRET_VALUES`/`LINODE_B64_DIAL_VALUES` with this encoded string from step (2):
26+
- link: https://github.com/nsdf-fabric/NSDF-INTERSECT/settings/secrets/actions
27+
28+
4. Save changes!
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
dial:
2+
dial:
3+
image:
4+
registry: ghcr.io
5+
repository: "intersect-dial/dial"
6+
tag: "main"
7+
8+
configFile: |
9+
{
10+
"intersect": {
11+
"brokers": [
12+
{
13+
"username": "",
14+
"password": "",
15+
"host": "",
16+
"port": 123,
17+
"protocol": "mqtt3.1.1"
18+
}
19+
]
20+
},
21+
"intersect-hierarchy": {
22+
"organization": "",
23+
"facility": "",
24+
"system": "",
25+
"subsystem": "",
26+
"service": ""
27+
},
28+
"dial": {
29+
"mongo": {
30+
"username": "",
31+
"password": "",
32+
"host": "",
33+
"port": 123
34+
}
35+
}
36+
}
37+
38+
mongodb:
39+
enabled: true
40+
auth:
41+
enabled: true
42+
username: user
43+
password: ""
44+
rootPassword: ""
45+
database: mydb

deployment/dial/Chart.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v2
2+
name: dial-intersect-linode
3+
description: Deployment of Dial for our Linode instance
4+
type: application
5+
version: 0.0.1
6+
dependencies:
7+
# Dial service
8+
- name: dial
9+
repository: https://intersect-dial.github.io/dial/
10+
version: 0.1.0

0 commit comments

Comments
 (0)