k8s-testproject/chrome-deployment.yaml
2021-10-26 08:41:01 +07:00

32 lines
681 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: selenium-tp-chrome
labels:
app: selenium-tp-chrome
spec:
replicas: 1
selector:
matchLabels:
app: selenium-tp-chrome
template:
metadata:
labels:
app: selenium-tp-chrome
spec:
restartPolicy: Always
volumes:
- name: dshm
emptyDir: { "medium" : "Memory" }
containers:
- name: selenium-tp-chrome
image: selenium/standalone-chrome
ports:
- containerPort: 4444
volumeMounts:
- mountPath: /dev/shm
name: dshm
resources:
limits:
memory: "1000Mi"
cpu: ".5"