Quickest way how to install your own instance of the plgd hub is to use the Mock OAuth2.0 Server. With this option enabled, no authentication is available. The JWT token is automatically issued for the default user.
Important
The Mock OAuth Server should only be utilized for testing and development purposes. Exercise additional caution when using it! For production environments, please follow the deployment instructions provided in the Advanced Configuration section to ensure proper setup.
To use microk8s or a similar kubernetes system, ensure that the ingress, dns, and storage add-ons are enabled. Additionally, configure your Kubernetes cluster to resolve the private domain *.example.com through the designated DNS server. For microk8s, use microk8s enable dns:{DNS_SERVER} to set up the DNS server.
Deployment of the plgd hub to the Kubernetes cluster is then initiated. Status of the deployment can be verified by calling kubectl -n plgd get all. When all pods are up and running, the plgd Dashboard will become available on your configured domain (e.g. https://example.com).
If you install the plgd hub into microk8s.io/, it is also required to enable nodePort for the CoAP Gateway Service and extend the port range of the K8S API Server. To extend the port range, add --service-node-port-range=5683-32767 to /var/snap/microk8s/current/args/kube-apiserver. For the CoAP Gateway Service, apply following values:
In order to deploy the Device Provisioning Service to a production environment, please refer to the Advanced Configuration section for detailed instructions.