- An up and running Kubernetes cluster
- OpenSSL for certificate generation
git clone https://github.com/k8s-school/demo-nginx-controller
cd demo-nginx-controller
./setup.shThis demo includes automatic generation of self-signed certificates for HTTPS ingress. The setup script:
- Generates self-signed certificates using
generate-certs.sh - Creates a Kubernetes TLS secret with the certificates
- Configures the ingress to use TLS
You can also generate certificates manually:
./generate-certs.sh [domain-name]Default domain is hello-world.info. Certificates are stored in ./certs/ directory.
After running ./setup.sh -s, you can access the application via:
- HTTP:
curl hello-world.info:<node-port> - HTTPS:
curl -k https://hello-world.info:<https-node-port>
The -k flag ignores the self-signed certificate warnings.