Thomas La Piana
03/31/2020, 5:27 PMJoe Schmid
03/31/2020, 5:38 PMScott Zelenka
03/31/2020, 5:51 PMjosh
03/31/2020, 5:54 PMScott Zelenka
03/31/2020, 7:17 PMui
to behave in K8 (along with getting my dev machine to register with the instance), but the Helm Chart is here:
https://github.com/szelenka/prefect-ui
This will setup the same servers (with autoscalers) in K8. The default resources likely need to be adjusted depending on traffic, but it works in the small use cases I've tested so far.
This Helm Chart will also register a Prefect Kubernetes Agent in the same namespace, so it'd be a one-stop plugin to get up and running with Prefect UI with scale.josh
03/31/2020, 7:21 PMapiVersion: apps/v1
kind: Deployment
metadata:
labels:
service: ui
name: ui
spec:
replicas: 1
selector:
matchLabels:
service: ui
strategy: {}
template:
metadata:
labels:
service: ui
spec:
containers:
- args:
- ./intercept.sh
image: prefecthq/ui:latest
imagePullPolicy: "Always"
name: ui
ports:
- containerPort: 8080
resources: {}
restartPolicy: Always
serviceAccountName: ""
volumes: null
status: {}
---
apiVersion: v1
kind: Service
metadata:
labels:
service: ui
name: ui
spec:
ports:
- name: "8080"
port: 8080
targetPort: 8080
selector:
service: ui
status:
loadBalancer: {}
Note: this may be a bit different compared to how it’s set up to run via the docker-compose.yml now because this is a few days old and I know there were some changes in there prior to the 0.10.0 releaseScott Zelenka
03/31/2020, 7:44 PMThomas La Piana
04/01/2020, 4:15 AMjosh
04/01/2020, 3:59 PMThomas La Piana
04/01/2020, 4:04 PMjosh
04/01/2020, 4:08 PMThomas La Piana
04/01/2020, 4:17 PM