DEP Configuration
Prerequisite
- Linux server is required for DEP configuration.note
Please contact to 42gears support team for DEP server specification.
Step to configure the DEP, follow the below steps:
Take a Linux server for DEP configuration, proceed with installing OpenSSL, and generate a privatekey.pem file.
noteThe system admins can utilize the agent node for DEP configuration. Click hereto generate the keys.*
Put the privatekey.pem file in the following directories: k8sopinstaller > appdata > api > App_Data and k8sopinstaller > appdata > pluto.
Navigate to K8sopinstaller > appsettings > suremdm > appsettings.json and provide the below-mentioned details:
"SSHHost": "Linux_machine_ip",
"SSHPort": "22",
"SSHUserName": "linux_machine_username",
"SSHPrivateKey": "App_Data/privatekey.pem",
"SSHFolderPath": "/home/administrator/Suremdm/",Delete suremdm secrets and create them again by using following commands:
- Delete secrets: sudo kubectl delete secret suremdm-secret -n suremdm
- Create secrets: sudo kubectl create secret generic suremdm-secret --from-file="${PWD}/appsettings/suremdm/appsettings.json" -n suremdm note
The system admins should execute these commands from the k8sopinstaller directory.
Delete api configmap and create them again by using the following command:
- Delete configmap: sudo kubectl delete configmap api-app-data -n suremdm
- Create configmap: sudo kubectl create configmap api-app-data --from-file="${PWD}/appdata/api/App_Data" -n suremdm
- Delete pluto configmap and create them again by using the following command:
Delete configmap: sudo kubectl delete configmap pluto-appdata -n suremdm
Create configmap: sudo kubectl create configmap pluto-appdata --from-file="${PWD}/appdata/pluto" -n suremdm
- Once changes are done, run below mentioned command to restart the services:
kubectl rollout restart deployment -n suremdm