DEP Configuration
Prerequisite
- Linux server is required for DEP configurationnote
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 here to 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 > api > 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/",
Navigate to K8sopinstaller \ appsettings \ pluto \ appsettings.json and provide the below-mentioned details:
"SSHFolderPath": "/home/administrator/Suremdm/",
"SSHHost": "Linux_machine_ip",
"SSHPrivateKey": "App_Data/privatekey.pem",
"SSHUserName": "linux_machine_username",
Delete pluto secrets and create them again by using following commands:
- Delete secrets: sudo kubectl delete secret pluto-secret -n suremdm
- Create secrets: sudo kubectl create secret generic pluto-secret --from-file="${PWD}/appsettings/pluto/appsettings.json" -n suremdmnoteThe system admins should execute these commands from the k8sopinstaller directory.
Delete api secrets and create them using the following commands:
- Delete secrets: sudo kubectl delete secret api-secret -n suremdm
- Create secrets: sudo kubectl create secret generic api-secret --from-file="${PWD}/appsettings/api/appsettings.json" -n suremdm\noteThe 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