Skip to content

Commit

Permalink
Update to v1.0.0 of Kubernetes NGINX ingress controller
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrogen18 committed Sep 17, 2021
1 parent 0b22c91 commit 29fd415
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 79 deletions.
2 changes: 2 additions & 0 deletions _run/common-kind.mk
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ PROVIDER_HOST ?= $(PROVIDER_HOSTNAME):$(KIND_HTTP_PORT)
PROVIDER_ENDPOINT ?= http://$(PROVIDER_HOST)

INGRESS_CONFIG_PATH ?= ../ingress-nginx.yaml
INGRESS_CLASS_CONFIG_PATH ?= ../ingress-nginx-class.yaml
CALICO_MANIFEST ?= https://docs.projectcalico.org/v3.8/manifests/calico.yaml

.PHONY: app-http-port
Expand Down Expand Up @@ -65,6 +66,7 @@ kind-cluster-create: $(KIND)
--image "$(KIND_IMG)"
kubectl label nodes $(KIND_NAME)-control-plane akash.network/role=ingress
kubectl apply -f "$(INGRESS_CONFIG_PATH)"
kubectl apply -f "$(INGRESS_CLASS_CONFIG_PATH)"
"$(AKASH_ROOT)/script/setup-kind.sh"

.PHONY: kind-cluster-calico-create
Expand Down
8 changes: 8 additions & 0 deletions _run/ingress-nginx-class.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: "networking.k8s.io/v1"
kind: "IngressClass"
metadata:
name: "akash-ingress-class"
labels:
akash.network: "true"
spec:
controller: "k8s.io/ingress-nginx"
Loading

0 comments on commit 29fd415

Please sign in to comment.