Added Kubernetes deployment files (#2719)
This commit is contained in:
50
kubernetes-deployment/frontend/frontend-deployment.yaml
Normal file
50
kubernetes-deployment/frontend/frontend-deployment.yaml
Normal 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
|
||||
14
kubernetes-deployment/frontend/frontend-secrets.yaml
Normal file
14
kubernetes-deployment/frontend/frontend-secrets.yaml
Normal 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"
|
||||
16
kubernetes-deployment/frontend/frontend-service.yaml
Normal file
16
kubernetes-deployment/frontend/frontend-service.yaml
Normal 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
|
||||
Reference in New Issue
Block a user