Throwing this into dev since the PR I am testing a...
# dev
j
Throwing this into dev since the PR I am testing against has not been merged (https://github.com/medplum/medplum/pull/6943) I have been trying to test deployment of a local Medplum (server and app) in kubernetes (using microk8s). I have been using MetalLB to provide a LoadBalancer type. I have set the following vars such as those in this PR (https://github.com/medplum/medplum/blob/ianplunkett/local-k8s/charts/values-local.yaml)
Copy code
- name: MEDPLUM_PORT
          value: "8103"
        - name: MEDPLUM_BASE_URL
          value: http://localhost:8103/
        - name: MEDPLUM_APP_BASE_URL
          value: http://localhost:3000/
        - name: MEDPLUM_STORAGE_BASE_URL
          value: http://localhost:8103/storage/
The healthcheck functions as expected
{"ok":true,"version":"4.3.3-de44a5d93","platform":"linux","runtime":"v20.19.3","postgres":true,"redis":true}
when hitting from the local kubernetes host
curl -vv http://10.103.173.160:8103/healthcheck
or my laptop
curl -v http://10.103.173.160:8103/healthcheck
I also deployed the medplum-app setting the env
Copy code
- name: MEDPLUM_BASE_URL
          value: http://localhost:8103/
I can get the UI to load from my laptop, but trying to login as the
admin@example.com
or trying to register a new project, gives an error
Cannot read properties of undefined (reading 'digest')
. There are no browser console errors, or errors in either the server or app containers. If i change the vars from
localhost
to use the IP that is servicing the IP related to the LoadBalancer
10.103.173.160
- I get the same error
Cannot read properties of undefined (reading 'digest')
for either registering a new project or attempting to login with the default Super Admin account
154 Views