Running as services and pods
voting-app-pod.yaml
result-app-pod.yaml
redis-pod.yaml
postgres-pod.yaml
workerapp-pod.yaml
redis-service.yaml
postgres-service.yml
voting-app-service.yml
result-app-service.yaml
kubectl create -f voting-app-pod.yml
kubectl create -f voting-app-service.yml
kubectl get pods,svc
get url of service
minikube service voting-service --url
kubectl create -f redis-pod.yml
kubectl create -f redis-service.yml
kubectl create -f postgres-pod.yml
kubectl create -f postgres-service.yml
kubectl create -f worker-pod.yml
kubectl create -f result-app-pod.yml
kubectl create -f redis-app-service.yml
Using deployments
voting-app-deploy.yml
redis-deploy.yml
postgres-deploy.yml
worker-app-deploy.yml
result-app-deploy.yml
clean and stopped everything
kubectl create -f voting-app-deploy.yml
kubectl create -f voting-app-service.yml
kubectl get deployments
kubectl create -f redis-deploy.yml
kubectl create -f redis-service.yml
kubectl create -f postgres-deploy.yml
kubectl create -f postgres-service.yml
kubectl create -f worker-app-deploy.yml
kubectl create -f result-deploy.yml
kubectl create -f result-service.yml
minikube service voting-service --url
minikube service result-service --url
scale deployment
kubectl scale deployment voting-app-deploy --replicas=3
kubectl get deployments voting-app-deploy