Skip to content

Commit

Permalink
Update pixel-master.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
mattvestal authored May 1, 2024
1 parent 766d1b4 commit 84b3c01
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions kubernetes/pixel-master.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,56 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: streamlit-deployment
labels:
app: streamlit
spec:
replicas: 1
selector:
matchLabels:
app: streamlit
template:
metadata:
labels:
app: streamlit
spec:
containers:
- name: streamlit
image: ghcr.io/airesearchlab/pixel-master:main
imagePullPolicy: Always
ports:
- containerPort: 8501
livenessProbe:
httpGet:
path: /_stcore/health
port: 8501
scheme: HTTP
timeoutSeconds: 1
readinessProbe:
httpGet:
path: /_stcore/health
port: 8501
scheme: HTTP
timeoutSeconds: 1
resources:
limits:
cpu: 1
memory: 2Gi
requests:
cpu: 100m
memory: 745Mi

---
apiVersion: v1
kind: Service
metadata:
name: streamlit-service
spec:
type: LoadBalancer
selector:
app: streamlit
ports:
- name: streamlit-port
protocol: TCP
port: 80
targetPort: 8501

0 comments on commit 84b3c01

Please sign in to comment.