From 9b130c3b65cc1ecb067645bbbb18a68117b9dbb7 Mon Sep 17 00:00:00 2001 From: marcel-dempers Date: Mon, 7 Nov 2022 21:21:40 +1100 Subject: [PATCH] nginx wip --- kubernetes/ingress/controller/nginx/README.md | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 kubernetes/ingress/controller/nginx/README.md diff --git a/kubernetes/ingress/controller/nginx/README.md b/kubernetes/ingress/controller/nginx/README.md new file mode 100644 index 0000000..026c29a --- /dev/null +++ b/kubernetes/ingress/controller/nginx/README.md @@ -0,0 +1,46 @@ +# Introduction to NGINX Ingress Controller + +## Create a kubernetes cluster + +In this guide we we''ll need a Kubernetes cluster for testing. Let's create one using [kind](https://kind.sigs.k8s.io/)
+ +``` +kind create cluster --name nginx-ingress --image kindest/node:v1.23.5 +``` + +See cluster up and running: + +``` +kubectl get nodes +NAME STATUS ROLES AGE VERSION +nginx-ingress-control-plane Ready control-plane,master 2m12s v1.23.5 +``` + +## Run a container to work in + +### run Alpine Linux: +``` +docker run -it --rm -v ${HOME}:/root/ -v ${PWD}:/work -w /work --net host alpine sh +``` + +### install some tools + +``` +# install curl +apk add --no-cache curl + +# install kubectl +curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl +chmod +x ./kubectl +mv ./kubectl /usr/local/bin/kubectl + +# install helm + +``` + +### test cluster access: +``` +/work # kubectl get nodes +NAME STATUS ROLES AGE VERSION +nginx-ingress-control-plane Ready control-plane,master 3m26s v1.23.5 +```