Zebra Printer Configuration
Prerequisites
1. Ensure that a separate DNS is available for the Zebra printer configuration.
2. Allow the following ports:
- Port 8443
- Port 1883
- Port 80 (if the system admins want to use the alert message feature)
3. Contact the 42Gears support team to obtain the required package and image files.
Configuration Steps:
Follow these steps to configure support for Zebra printers:
1. Place the package inside the Master node and Zebra printer images inside all Ubuntu nodes.
2. Import the Zebra printer image into all Ubuntu nodes using the following command:
sudo k3s ctr images import \image_name\
Replace image_name in the above command with the actual name of the image file.
3. Inside the Master node, navigate to the Zebra printer package and run the following command to edit the zebraprinter.conf file:
sudo vi zebraprinter.conf
4. Provide the following information in the zebraprinter.conf file:
- DNS (without https://) for the Zebra printer connector as the broker URL
- MongoDB connection string
- auth_username and auth_password (SureMDM console username and password)
5. Once done, create the secrets by running the following command:
sudo kubectl create secret generic zebraprinterconnector-secret --from-file="${PWD}/zebraprinter.conf" -n suremd
6. Apply the configuration files by running the following commands:
- kubectl apply -f thingservice.yaml
- kubectl apply -f zebraprinterconnector.yaml
- kubectl apply -f ingress4.yaml
7. Once changes are done, run below mentioned command to restart the services:
kubectl rollout restart deployment -n suremdm