Added Kubernetes deployment files (#2719)

This commit is contained in:
Cristian Branet
2025-06-22 10:00:24 +03:00
committed by GitHub
parent 10785812e8
commit 681dab864c
14 changed files with 385 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: skyvern-frontend
namespace: skyvern
spec:
replicas: 1
selector:
matchLabels:
app: skyvern-frontend
template:
metadata:
labels:
app: skyvern-frontend
spec:
containers:
- name: skyvern-frontend
image: public.ecr.aws/skyvern/skyvern-ui:latest
ports:
- containerPort: 8080
- containerPort: 9090
envFrom:
- secretRef:
name: skyvern-frontend-env
volumeMounts:
- name: artifacts
mountPath: /data/artifacts
- name: videos
mountPath: /data/videos
- name: har
mountPath: /data/har
- name: streamlit
mountPath: /app/.streamlit
volumes:
- name: artifacts
hostPath:
path: /data/artifacts
type: DirectoryOrCreate
- name: videos
hostPath:
path: /data/videos
type: DirectoryOrCreate
- name: har
hostPath:
path: /data/har
type: DirectoryOrCreate
- name: streamlit
hostPath:
path: /app/.streamlit
type: DirectoryOrCreate

View File

@@ -0,0 +1,14 @@
apiVersion: v1
kind: Secret
metadata:
name: skyvern-frontend-env
namespace: skyvern
type: Opaque
stringData:
# You need to change the values below to match your environment
VITE_API_BASE_URL: http://skyvern.example.com/api/v1
VITE_ARTIFACT_API_BASE_URL: http://skyvern.example.com/artifacts
VITE_WSS_BASE_URL: ws://skyvern.example.com/api/v1
VITE_SKYVERN_API_KEY: ""
VITE_ENABLE_LOG_ARTIFACTS: "false"
VITE_ENABLE_CODE_BLOCK: "false"

View File

@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: skyvern-frontend
namespace: skyvern
spec:
type: ClusterIP # Or LoadBalancer
ports:
- name: http
port: 8080
targetPort: 8080
- name: artifact
port: 9090
targetPort: 9090
selector:
app: skyvern-frontend