helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add stable https://charts.helm.sh/stable
helm repo update
helm install prometheus prometheus-community/kube-prometheus-stack -n default -f values.yaml
kubectl apply -f servicemonitor.yaml
kc port-forward prometheus-prometheus-kube-prometheus-prometheus-0 9090
-or- kc port-forward -n default svc/prometheus-operated 9090
kc port-forward deployment/prometheus-grafana 3000
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update
helm install ingress-nginx ingress-nginx/ingress-nginx
important - Configure location in ingress.yaml. Can read more info at https://kubernetes.io/docs/concepts/services-networking/ingress/#tls
kc apply -f ingress.yaml
can also follow https://getbetterdevops.io/k8s-ingress-with-letsencrypt/
helm repo add jetstack https://charts.jetstack.io helm repo update
helm install cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace --set installCRDs=true
kc create -f letsencrypt-production.yaml
apply ingress.yaml and restart ingress pod Important - Some times challenges are not created. use "kubectl rollout restart deployment -n cert-manager cert-manager".