Skip to content

Instantly share code, notes, and snippets.

@LightSystem
Created May 13, 2021 14:32
Show Gist options
  • Save LightSystem/91addf51a02f1b2c453becd74b9b9697 to your computer and use it in GitHub Desktop.
Save LightSystem/91addf51a02f1b2c453becd74b9b9697 to your computer and use it in GitHub Desktop.
selenium/standalone-chrome kubernetes deploy
apiVersion: v1
kind: Service
metadata:
name: selenium-chrome-service
annotations:
service.beta.kubernetes.io/azure-load-balancer-internal: "true"
spec:
type: LoadBalancer
loadBalancerIP: 180.44.235.83
selector:
app: selenium-chrome
ports:
- protocol: TCP
port: 4444
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: selenium-chrome
spec:
selector:
matchLabels:
app: selenium-chrome
replicas: 1
template:
metadata:
labels:
app: selenium-chrome
spec:
volumes:
- name: shared-memory
emptyDir:
sizeLimit: "2G"
medium: Memory
containers:
- name: selenium-chrome
image: selenium/standalone-chrome:89.0
resources:
requests:
memory: "1G"
limits:
memory: "2G"
volumeMounts:
- mountPath: /dev/shm
name: shared-memory
ports:
- containerPort: 4444
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment