1.0.14 • Published 7 months ago
harness-lighthouse v1.0.14
To deploy lighthouse in minikube
Step 1 : Build docker image and push image to docker hub
docker build -t rohanmaharjan100/lighthouse .
docker image push rohanmaharjan100/lighthouse:latest
docker run -dt --name test rohanmaharjan100/lighthouse
docker exec -it name-of-container bash
docker exec test --url https://facebook.com
Step 2: Start minikube with command :
minikube start
Step 3: Create deployment using deployment command :
kubectl apply -f Deployment.yaml
check deployments using commands
kubectl get deployments
minikube dashboard
Step 4:Expose the pods running within the cluster to the outside world to be accessible:
kubectl expose deployment lighthouse-deployment --port=4000
kubectl port-forward service/lighthouse-deployment 4000:4000
kubectl apply -f deploy.yml kubectl get pods kubectl logs lighthouse-deployment-6dccb9bb55-gm829