Create a backup
Run “sudo helm repo update”
Edit your values.yaml
add this line under “global”, if it is not there yet:
smartfactsVersionOverride: "2023.08.2"
Here is an example:Code Block language yaml global: smartfactsVersionOverride: "YYYY.MM.Version"
...
Add Web Origin to Keycloak
Note |
---|
For Smartfacts to function, it is necessary to corret a value in the Keycloak configuration. |
Get the Keycloak administrator password:
Code Block |
---|
sudo kubectl get secret smartfacts-keycloak-admin-secret -o 'go-template={{index .data "KEYCLOAK_PASSWORD"}}' -n smartfacts | base64 -d; echo "" |
Get the URL of keycloak:
Code Block |
---|
sudo kubectl get ingress -n smartfacts | grep identity | tr -s ' ' | cut -d ' ' -f3 |
Call this URL in a browser. Klick on “Administration Console” and log in with Username “keycloak-admin” and the password returned in the step above.
Select “Clients” and the client ID “smartfacts”.
...
Scroll down until you see the property “Web Origins”. Insert a plus sign “+” into the value field.
...
Scroll to the bottom of the page and klick on the “save” button
Update Smartfacts
Create a backup
Run “sudo helm repo update”
Run upgrade command:
Code Block language bash sudo helm upgrade --install --timeout 20m0s smartfacts mid-smartfacts/smartfacts -f values.yaml --version 4.
...
7.5-genoslcv2 -n smartfacts
Once the command has finished, run “sudo kubectl get pods -n smartfacts” to verify that your containers are up and running.
Find the pods named “smartfacts-sfit-platform-<id>” and “smartfacts-sfit-spa-<id>”.
Delete those pods with
Code Block sudo kubectl -n smartfacts delete pod smartfacts-sfit-platform-<id>
Code Block language bash sudo kubectl -n smartfacts delete pod smartfacts-sfit-spa-<id>
Repeat the “sudo kubectl get pods -n smartfacts” command and verify that the pods named “smartfacts-sfit-platform-<id>” and “smartfacts-sfit-spa-<id>” have been restarted (column “AGE”).