2 minute read
During the Helm chart upgrade from v0.9.6 to 0.9.7/8 the following steps need to executed additionally to the following guide:
Open UMHLens
Select Workloads → Pods
Click on one of the factoryinsight pods
Check that “VERSION” is set to 2
If this is not the case:
Select Workloads → Deployments
Click on the factoryinsight deployment and select “edit”
Search for the “Version” tag and set it to 2
Click “Save & Close”
Go back to Workloads → Pods
Click on the Grafana pod
Check that the Init Container’s image is unitedmanufacturinghub/grafana-plugin-extrator:0.1.3
If this is not the case:
Remove the Stateful & Deployments, listed in the normal upgrade guid
Goto Helm → Releases and click on the 3 dots left to united-manufacturing-hub
Select “upgrade”
Replace the extraInitContainers from grafana with:
extraInitContainers:
- name: init-umh-datasource
image: unitedmanufacturinghub/grafana-plugin-extractor:0.1.3
volumeMounts:
- name: storage
mountPath: /var/lib/grafana
imagePullPolicy: IfNotPresent
Replace
GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS: umh-datasource,umh-factoryinput-panel
with
GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS: umh-datasource,umh-factoryinput-panel,umh-v2-datasource
Replace
datasources:
datasources.yaml:
apiVersion: 1
datasources:
- access: proxy
editable: false
isDefault: true
jsonData:
apiKey: $FACTORYINSIGHT_PASSWORD
apiKeyConfigured: true
customerId: $FACTORYINSIGHT_CUSTOMERID
serverURL: http://united-manufacturing-hub-factoryinsight-service/
name: umh-datasource
orgId: 1
type: umh-datasource
url: http://united-manufacturing-hub-factoryinsight-service/
version: 1
With
datasources:
datasources.yaml:
apiVersion: 1
datasources:
- access: proxy
editable: false
isDefault: true
jsonData:
apiKey: $FACTORYINSIGHT_PASSWORD
apiKeyConfigured: true
customerId: $FACTORYINSIGHT_CUSTOMERID
serverURL: http://united-manufacturing-hub-factoryinsight-service/
name: umh-datasource
orgId: 1
type: umh-datasource
url: http://united-manufacturing-hub-factoryinsight-service/
version: 1
- access: proxy
editable: false
isDefault: false
jsonData:
apiKey: $FACTORYINSIGHT_PASSWORD
apiKeyConfigured: true
baseURL: http://united-manufacturing-hub-factoryinsight-service/
customerID: $FACTORYINSIGHT_CUSTOMERID
name: umh-v2-datasource
orgId: 1
type: umh-v2-datasource
url: http://united-manufacturing-hub-factoryinsight-service/
version: 1
Press “Upgrade”
Go to Workloads → Pods
Check in UMHLens if your timescaledb version is pg13.8-ts2.8.0-p1
image:
repository: timescale/timescaledb-ha
tag: pg13.8-ts2.8.0-p1
pullPolicy: Always
Open a pod shell inside timescaledb
Execute
psql -X
ALTER EXTENSION timescaledb UPDATE;
\dx timescaledb
It should show 2.8.0 as timescaledb version
Kill the timescaledb & factoryinsight pods
UMH-datasource-v2 is included and enabled by default.