Kind runs a k8s cluster in docker.
Please install and configure Kind as described here:
Optional:
- mkcert for TLS
Create a k8s cluster (v1.20.15) with 3 nodes and nginx-ingress (v1.2.1):
./createCluster.sh [clusterName]
If mkcert
is available, cert-manager with a CA Cluster Issuer named ca-cluster-issuer
for mkcert CA will also be installed.
Tear down the cluster with
./deleteCluster.sh [clusterName]
There is a small configuration script to test the cluster, which will create
- a namespace
kind-test
- a deployment/service/ingress for docker.io/mendhak/http-https-echo
- a deployment/service/ingress for docker.io/tomcat:9-jre17
kubectl apply -f test.yaml
The reachability of the echo deployment can be tested with
curl localhost/foo
which should return bar
.
The tomcat is deployed without any webapps, so
curl localhost/tomcat
should return a 404
To test the ca-cluster-issuer
you can use this configuration:
kubectl apply -f test-ca.yaml
Afterwards the above curl
commands have to be executed with https://<url>