Skip to content

Instantly share code, notes, and snippets.

@Vinay08sharma
Last active August 15, 2023 08:19
Show Gist options
  • Save Vinay08sharma/845f87b0dc9c1280ba993ea5319905bb to your computer and use it in GitHub Desktop.
Save Vinay08sharma/845f87b0dc9c1280ba993ea5319905bb to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
name: selenosis
namespace: selenosis
spec:
type: LoadBalancer
ports:
- name: selenium
port: 4444
protocol: TCP
targetPort: 4444
nodePort: 31000
selector:
app: selenosis
sessionAffinity: None
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: selenoid
namespace: selenosis
annotations:
nginx.ingress.kubernetes.io/proxy-connect-timeout: "3600"
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
spec:
rules:
- host: selenosis.test.in
http:
paths:
- backend:
service:
name: selenosis
port:
number: 4444
path: /
pathType: Prefix
---
apiVersion: v1
kind: Service
metadata:
name: seleniferous
namespace: selenosis
spec:
selector:
type: browser
clusterIP: None
publishNotReadyAddresses: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment