diff --git a/kubernetes/pixel-master.yaml b/kubernetes/pixel-master.yaml index 8b13789..aaa90c7 100644 --- a/kubernetes/pixel-master.yaml +++ b/kubernetes/pixel-master.yaml @@ -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