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

Updated values.local.yaml to include default mongodb passwords #68

Merged
merged 1 commit into from
Nov 14, 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
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@

A versatile notification API server. See **[full documentation](https://bcgov.github.io/NotifyBC/)**.

## Docker Desktop Kubernetes deployment
To build and run in Kubernetes via Docker Desktop:
Note: Kubernetes must be enabled in Docker Desktop.
```sh
kubectl config use-context docker-desktop
helm install dev helm -f helm/values.yaml -f helm/values.local.yaml
```

## License

Copyright 2016-present Province of British Columbia
Expand All @@ -19,3 +27,4 @@ A versatile notification API server. See **[full documentation](https://bcgov.gi
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

14 changes: 14 additions & 0 deletions helm/values.local.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
environment: prod

image:
repository: ghcr.io/bcgov/des-notify-bc
pullPolicy: Always
Expand All @@ -10,3 +12,15 @@ fluentbit:
cronJob:
# Overrides netapp-file-backup which is only valid in OpenShift.
storageClassName: hostpath

ingress:
enabled: false

mongodb:
auth:
rootPassword: 'rootpassword'
replicaSetKey: 'replicasetpassword'
password: 'password'
extraEnvVars:
- name: EXPERIMENTAL_DOCKER_DESKTOP_FORCE_QEMU

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this what made the pods come up without errors?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's right. The mongodb pods were failing to start up because mongodb doesn't release images for arm64 architecture. This env variable seems to make it so Docker Desktop uses the QEMU emulator instead of Rosetta which for whatever reason makes it possible to run the image built for amd64 on arm64. I got this information from here: docker/for-mac#7137

value: '1'