Configure and deploy the Netmaker Server using netmaker-server.yaml.
- Subdomain: Set your wildcard subdomain (e.g.,
nm.mydomain.com). - Ingress: If using Nginx, uncomment the Nginx section at the bottom.
- Database: Provide the PostgreSQL deployment name and the password retrieved in the database step.
- Master Key: Set a secure password for the Netmaker API.
- API Ingress: Ensure an Ingress object is created to route traffic to the
netmaker-rest service on port 8081.
Deployment commands:
sed -i 's/NETMAKER_SUBDOMAIN/<your subdomain>/g' netmaker-server.yaml
sed -i 's/DB_NAME/<postgres helm name>/g' netmaker-server.yaml
sed -i 's/DB_PASS/<postgres helm password>/g' netmaker-server.yaml
sed -i 's/REPLACE_MASTER_KEY/<super secret password>/g' netmaker-server.yaml
kubectl apply -f netmaker-server.yaml
# Restart MQ to ensure connection
kubectl delete pod mosquitto-<pod name>
Success is indicated when Netmaker pods log: [netmaker] ... successfully connected to mq broker.