This project is a small demo to run a containerized webservice in a kubernetes cluster.
please set up these beforehand:
nginx.conf :11nginx.conf :18k8s/web/ingress-http.yaml:11k8s/web/ingress-https.yaml:13k8s/web/deployment.yaml:22certbot certonly --standalone -d "my.domain" --agree-tos -m "[[email protected]](<mailto:[email protected]>)" --non-interactivemkdir certs/certs/ folderdocker build -t web:1.0 .minikube image load web:1.0make life easier with
alias kubectl='minikube kubectl --'
now, apply the kubectl configs provided by traefik:
kubectl apply -f [<https://raw.githubusercontent.com/traefik/traefik/v3.5/docs/content/reference/dynamic-configuration/kubernetes-crd-definition-v1.yml>](<https://raw.githubusercontent.com/traefik/traefik/v3.5/docs/content/reference/dynamic-configuration/kubernetes-crd-definition-v1.yml>)
kubectl apply -f [<https://raw.githubusercontent.com/traefik/traefik/v3.5/docs/content/reference/dynamic-configuration/kubernetes-crd-rbac.yml>](<https://raw.githubusercontent.com/traefik/traefik/v3.5/docs/content/reference/dynamic-configuration/kubernetes-crd-rbac.yml>)
apply the configs in the repo:
kubectl apply -f k8s/traefik/namespace.yamlkubectl apply -f k8s/web/namespace.yamlkubectl apply -R -f k8s/