Skip to content

Commit

Permalink
feat: ➕ Ingress: Install Nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
kevencript committed Mar 21, 2023
1 parent c63b8e8 commit 96097d4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Kubernetes Shortcuts
deploy-from-scratch:
$(MAKE) create-kind-cluster
$(MAKE) apply-k8s
Expand All @@ -6,6 +7,7 @@ create-kind-cluster:
kind create cluster --config ./k8s/kind/kind-config.yaml --name k8s-concepts
kind export kubeconfig --name k8s-concepts
$(MAKE) install-metrics-components
$(MAKE) install-ingress-controller

deploy:
kubectl apply -f k8s
Expand All @@ -23,12 +25,18 @@ port-forward:
sleep 4
kubectl port-forward svc/go-http-app-service 8000:80

# Dependecies Installing
install-metrics-components:
kubectl apply -f k8s/metrics-server.yaml
kubectl wait --namespace kube-system \
--for=condition=available deployment/metrics-server \
--timeout=60s

install-ingress-controller:
helm install ingress-nginx ingress-nginx/ingress-nginx --namespace nginx --create-namespace


# Stress Tests
stress-test-fortio:
kubectl run -it fortio --rm --image=fortio/fortio -- load \
-qps 800 \
Expand Down

0 comments on commit 96097d4

Please # to comment.