mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-24 00:40:21 +00:00
.. | ||
deployment.yaml | ||
ingress.yaml | ||
init-mongo.js | ||
namespaceAndSecret.yaml | ||
README.md |
Deployment
You can't just deploy the whole folder. You have to apply the files in the following order:
- Create the namespace and the secrets using ´kubectl apply -f namespaceAndSecret.yaml ´
- Apply the init-script using ´kubectl create configmap create-db-configmap --from-file=init-mongo.js --namespace unifi-controller´
- Create two persistent volumes and two persistent volume claims in Longhorn
- unifi-db
- unifi-config
- Deploy the pod and the service using ´kubectl apply -f deployment.yaml ´
- If you want to access the GUI via Traefik you can add an ingress using ´kubectl apply -f ingress.yaml ´
- Check if the MongoDB Container is running and delete the configmap ´create-db-configmap´ for security reasons