Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIFI-13821: Change pinning targets for cgw hosts, set grpc endpoint n… #287

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions cgw/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,9 @@ certs:
websocket-cert.pem: 5c0lvd0RRWUpLb1pJa...
websocket-key.pem: V6WEFqWEhNVFk3RGda...
```
To generate (with the two websocket pem files available):
To generate this file manually (with the two websocket pem files available):
```
echo "certs:" > values/certs.device.yaml
kubectl create secret generic certs --dry-run=client -o yaml \
--from-file=websocket-key.pem --from-file=websocket-cert.pem \
| grep websocket- >> values/certs.device.yaml
./mkcertconfig websocket-cert.pem websocket-key.pem > values/certs.device.yaml
```

## Installation
Expand Down
4 changes: 4 additions & 0 deletions cgw/helmfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ releases:
- public_env_variables:
CGW_ID: 0
CGW_DB_USERNAME: "{{ .Environment.Values.postgres.cgwUser.name }}"
CGW_GRPC_PUBLIC_HOST: cgw-cgw
CGW_GRPC_PUBLIC_PORT: 50051
- secret_env_variables:
CGW_DB_PASSWORD: "{{ .Environment.Values.postgres.cgwUser.password }}"
- services:
Expand Down Expand Up @@ -233,6 +235,8 @@ releases:
- public_env_variables:
CGW_ID: 1
CGW_DB_USERNAME: "{{ .Environment.Values.postgres.cgwUser.name }}"
CGW_GRPC_PUBLIC_HOST: cgw2-cgw2
CGW_GRPC_PUBLIC_PORT: 50051
- secret_env_variables:
CGW_DB_PASSWORD: "{{ .Environment.Values.postgres.cgwUser.password }}"
- services:
Expand Down
1 change: 1 addition & 0 deletions cgw/values/cgw-cgw01-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# set the node affinity and tolerations here
1 change: 1 addition & 0 deletions cgw/values/cgw-cgw01-2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# set the node affinity and tolerations here
5 changes: 3 additions & 2 deletions cgw/values/cgw-devcgw-1.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# set the node affinity and tolerations here
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
Expand All @@ -6,10 +7,10 @@ affinity:
- key: alpha.eksctl.io/nodegroup-name
operator: In
values:
- gwmed
- gwm5lrg

tolerations:
- effect: NoSchedule
key: type
operator: Equal
value: onlygwmed
value: onlygwm5lrg
6 changes: 3 additions & 3 deletions cgw/values/cgw-devcgw-2.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# set the node affinity and tolerations here
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
Expand All @@ -6,11 +7,10 @@ affinity:
- key: alpha.eksctl.io/nodegroup-name
operator: In
values:
- gwm5lrg
- gwmed

tolerations:
- effect: NoSchedule
key: type
operator: Equal
value: onlygwm5lrg

value: onlygwmed
Loading