Riley Hun
04/14/2021, 10:51 PMMichael Adkins
04/14/2021, 10:57 PMRiley Hun
04/14/2021, 10:57 PMservice:
# type defines the service type and defaults to LoadBalancer
# to expose the ui service to users and the UI.
type: ClusterIP
port: 8080
helm repo add ingress-nginx <https://kubernetes.github.io/ingress-nginx>
helm repo update
kubectl create ns nginx
helm install nginx ingress-nginx/ingress-nginx --namespace nginx --set rbac.create=true --set controller.publishService.enabled=true
kubectl apply -f prefect-ui-ingress.yaml
Michael Adkins
04/14/2021, 11:00 PMRiley Hun
04/14/2021, 11:02 PMsite.webmanifest:1 Failed to load resource: the server responded with a status of 404 (Not Found)
Michael Adkins
04/14/2021, 11:02 PMRiley Hun
04/14/2021, 11:04 PMTyler Wanner
04/16/2021, 10:04 PMui:
service:
# type defines the service type and defaults to LoadBalancer
# to expose the ui service to users and the UI.
type: ClusterIP
port: 8080
ingress:
enabled: true
path: /
hosts:
- <http://YOURDOMAIN.com|YOURDOMAIN.com>
port: 8080
annotations:
<http://kubernetes.io/ingress.class|kubernetes.io/ingress.class>: nginx
<http://nginx.ingress.kubernetes.io/auth-type|nginx.ingress.kubernetes.io/auth-type>: basic
<http://nginx.ingress.kubernetes.io/auth-secret|nginx.ingress.kubernetes.io/auth-secret>: basic-auth
<http://nginx.ingress.kubernetes.io/auth-realm|nginx.ingress.kubernetes.io/auth-realm>: 'Authentication Required - admin'
I can confirm that this works at YOURDOMAIN.com/ as long as there is a secret called basic-auth (followed instructions here)Eric C
04/19/2021, 4:09 PM