54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: ml-pipeline-visualizationserver
|
|
name: ml-pipeline-visualizationserver
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: ml-pipeline-visualizationserver
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: ml-pipeline-visualizationserver
|
|
annotations:
|
|
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
|
|
spec:
|
|
containers:
|
|
- image: gcr.io/ml-pipeline/visualization-server:dummy
|
|
imagePullPolicy: IfNotPresent
|
|
name: ml-pipeline-visualizationserver
|
|
ports:
|
|
- name: http
|
|
containerPort: 8888
|
|
readinessProbe:
|
|
exec:
|
|
command:
|
|
- wget
|
|
- -q # quiet
|
|
- -S # show server response
|
|
- -O
|
|
- "-" # Redirect output to stdout
|
|
- http://localhost:8888/
|
|
initialDelaySeconds: 3
|
|
periodSeconds: 5
|
|
timeoutSeconds: 2
|
|
livenessProbe:
|
|
exec:
|
|
command:
|
|
- wget
|
|
- -q # quiet
|
|
- -S # show server response
|
|
- -O
|
|
- "-" # Redirect output to stdout
|
|
- http://localhost:8888/
|
|
initialDelaySeconds: 3
|
|
periodSeconds: 5
|
|
timeoutSeconds: 2
|
|
resources:
|
|
requests:
|
|
cpu: 30m
|
|
memory: 500Mi
|
|
serviceAccountName: ml-pipeline-visualizationserver
|