diff --git a/controllers/nginx/Makefile b/controllers/nginx/Makefile index 3293c1be9..5f5f6fbba 100644 --- a/controllers/nginx/Makefile +++ b/controllers/nginx/Makefile @@ -54,7 +54,9 @@ endif # QEMUARCH=s390x #endif -TEMP_DIR := $(shell mktemp -d) +ifndef TEMP_DIR + TEMP_DIR := $(shell mktemp -d) +endif DOCKERFILE := $(TEMP_DIR)/rootfs/Dockerfile diff --git a/controllers/nginx/README.md b/controllers/nginx/README.md index 8eb52a696..c8069966c 100644 --- a/controllers/nginx/README.md +++ b/controllers/nginx/README.md @@ -102,9 +102,10 @@ Usage of : Before deploying the controller to production you might want to run it outside the cluster and observe it. ```console -$ make build +$ tmpdir=$(mktemp -d) +$ TEMP_DIR=${tmpdir} make build $ mkdir /etc/nginx-ssl -$ ./rootfs/nginx-ingress-controller --running-in-cluster=false --default-backend-service=kube-system/default-http-backend +$ ${tmpdir}/rootfs/nginx-ingress-controller --running-in-cluster=false --default-backend-service=kube-system/default-http-backend ``` ## Deployment @@ -115,7 +116,6 @@ $ kubectl create -f examples/default-backend.yaml ``` Follow the [example-deployment](../../examples/deployment/nginx/README.md) steps to deploy nginx-ingress-controller in Kubernetes cluster (you may prefer other type of workloads, like Daemonset, in production environment). -Loadbalancers are created via a ReplicationController or Daemonset: ## HTTP