.techneeks
08/08/2023, 10:34 PMFerdinand
08/09/2023, 8:58 AMcd $HOME
mkdir .kube
cd .kube
microk8s config > config
4) Checked if not is ready (sudo kubectl get nodes --kubeconfig .kube/config)
5) Followed the "Install the UMH stack" instructions (https://umh.docs.umh.app/docs/production-guide/installation/local-k3d-installation/#install-the-umh-stack)
6) Enable the dns and hostpath-storage addon:
microk8s enable dns
microk8s enable hostpath-storage
7) Wait a couple minutes, while you can see the pod getting ready in lens
8) Everything should be running after ~5-10 minutesFerdinand
08/09/2023, 9:04 AM{
"log.level": "fatal",
"@timestamp": "2023-08-09T09:00:09.336Z",
"log.origin": {
"file.name": "factoryinsight/main.go",
"file.line": 376
},
"message": "Error starting the server: listen tcp :80: bind: permission denied",
"ecs.version": "1.6.0"
}
You can fix this by setting the securityContext of the factoryinsight deployment to:
yaml
securityContext:
sysctls:
- name: net.ipv4.ip_unprivileged_port_start
value: "80"
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
add:
- NET_BIND_SERVICEFerdinand
08/09/2023, 9:05 AM.techneeks
08/09/2023, 2:34 PM.techneeks
08/10/2023, 9:22 PMError: Command failed: /opt/Lens/resources/x64/helm install united-manufacturing-hub/united-manufacturing-hub --version 0.9.14 --values /tmp/a04b63c33386ce727c7592532290cca7/values.yaml --namespace united-manufacturing-hub --kubeconfig /tmp/kubeconfig-4b03168440f110452d30e949da3a8cc0 --generate-name
Error: INSTALLATION FAILED: Deployment.apps "united-manufacturing-hub-1691702439-mqttkafkabridge" is invalid: [spec.template.spec.volumes[1].name: Invalid value: "united-manufacturing-hub-1691702439-mqttkafkabridge-mqtt-certificates": must be no more than 63 characters, spec.template.spec.containers[0].volumeMounts[1].name: Not found: "united-manufacturing-hub-1691702439-mqttkafkabridge-mqtt-certificates", spec.template.spec.initContainers[0].name: Invalid value: "united-manufacturing-hub-1691702439-mqttkafkabridge-init-newtopic": must be no more than 63 characters].techneeks
08/10/2023, 9:25 PM.techneeks
08/10/2023, 9:26 PMFerdinand
08/11/2023, 2:13 PM.techneeks
08/14/2023, 8:28 PM.techneeks
08/14/2023, 8:42 PMError: Command failed: /opt/Lens/resources/x64/helm install umh united-manufacturing-hub/united-manufacturing-hub --version 0.9.14 --values /tmp/2a0ec5f733864760e6c6ec9e6c3868d4/values.yaml --namespace united-manufacturing-hub --kubeconfig /tmp/kubeconfig-4b03168440f110452d30e949da3a8cc0
Error: INSTALLATION FAILED: failed post-install: timed out waiting for the condition
i am gonna see if it finishes as the deployment still states progressing.techneeks
08/14/2023, 8:43 PM.techneeks
08/15/2023, 9:51 PM.techneeks
08/15/2023, 9:56 PM.techneeks
08/15/2023, 9:56 PM.techneeks
08/15/2023, 10:45 PM.techneeks
08/15/2023, 10:45 PM{
"log.level": "fatal",
"@timestamp": "2023-08-15T22:42:47.773Z",
"log.origin": {
"file.name": "mqtt-bridge/main.go",
"file.line": 72
},
"message": "environment variable REMOTE_BROKER_PASSWORD is required but not set",
"ecs.version": "1.6.0"
}.techneeks
08/15/2023, 11:08 PM.techneeks
08/15/2023, 11:08 PM.techneeks
08/15/2023, 11:10 PM{
"log.level": "fatal",
"@timestamp": "2023-08-15T23:06:59.219Z",
"log.origin": {
"file.name": "factoryinsight/main.go",
"file.line": 376
},
"message": "Error starting the server: listen tcp :80: bind: permission denied",
"ecs.version": "1.6.0"
}
however i am not sure where to set the security context.techneeks
08/15/2023, 11:17 PM{"log.level":"error","@timestamp":"2023-08-15T23:11:50.626Z","log.origin":{"file.name":"factoryinsight/main.go","file.line":79},"message":"environment variable POSTGRES_PORT is not an integer. using fallback value","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2023-08-15T23:11:50.626Z","log.origin":{"file.name":"internal/fgtrace.go","file.line":32},"message":"DEBUG_ENABLE_FGTRACE not set. Not enabling debug tracing","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2023-08-15T23:11:50.626Z","log.origin":{"file.name":"factoryinsight/main.go","file.line":264},"message":"Starting API version 1","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2023-08-15T23:11:50.626Z","log.origin":{"file.name":"factoryinsight/main.go","file.line":279},"message":"Starting API version 2","ecs.version":"1.6.0"}
{"log.level":"fatal","@timestamp":"2023-08-15T23:11:50.626Z","log.origin":{"file.name":"factoryinsight/main.go","file.line":376},"message":"Error starting the server: listen tcp :80: bind: permission denied","ecs.version":"1.6.0"}.techneeks
08/15/2023, 11:37 PMFerdinand
08/16/2023, 12:42 PM.techneeks
08/17/2023, 11:00 PMFerdinand
08/18/2023, 7:18 AMFerdinand
08/18/2023, 7:18 AMFerdinand
08/18/2023, 7:18 AM.techneeks
08/18/2023, 7:34 PM.techneeks
08/23/2023, 2:36 PMDanielH
08/23/2023, 7:44 PM.techneeks
08/23/2023, 10:35 PM.techneeks
08/23/2023, 10:44 PM.techneeks
08/28/2023, 2:05 PMFerdinand
08/29/2023, 7:43 AMFerdinand
08/29/2023, 7:45 AM.techneeks
09/05/2023, 12:35 AM.techneeks
09/06/2023, 7:26 PM.techneeks
09/06/2023, 8:06 PM.techneeks
09/06/2023, 8:06 PM