Created
May 13, 2021 14:32
-
-
Save LightSystem/91addf51a02f1b2c453becd74b9b9697 to your computer and use it in GitHub Desktop.
selenium/standalone-chrome kubernetes deploy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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