Skip to content

Instantly share code, notes, and snippets.

@prashanth-sams
Created November 21, 2018 06:37
Show Gist options
  • Select an option

  • Save prashanth-sams/7fe7bc1be573c4bb49c75b2f5e646dcf to your computer and use it in GitHub Desktop.

Select an option

Save prashanth-sams/7fe7bc1be573c4bb49c75b2f5e646dcf to your computer and use it in GitHub Desktop.
Kubernetes Selenium Grid
{
"kind": "Deployment",
"apiVersion": "extensions/v1beta1",
"metadata": {
"name": "selenium-node-chrome",
"namespace": "default",
"selfLink": "/apis/extensions/v1beta1/namespaces/default/deployments/selenium-node-chrome",
"generation": 1,
"labels": {
"run": "selenium-node-chrome"
},
"annotations": {
"deployment.kubernetes.io/revision": "1"
}
},
"spec": {
"replicas": 1,
"selector": {
"matchLabels": {
"run": "selenium-node-chrome"
}
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"run": "selenium-node-chrome"
}
},
"spec": {
"containers": [
{
"name": "selenium-node-chrome",
"image": "selenium/node-chrome-debug:3.14.0",
"env": [
{
"name": "HUB_PORT_4444_TCP_ADDR",
"value": "selenium-hub"
},
{
"name": "HUB_PORT_4444_TCP_PORT",
"value": "4444"
}
],
"resources": {},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "IfNotPresent"
}
],
"restartPolicy": "Always",
"terminationGracePeriodSeconds": 30,
"dnsPolicy": "ClusterFirst",
"securityContext": {},
"schedulerName": "default-scheduler"
}
},
"strategy": {
"type": "RollingUpdate",
"rollingUpdate": {
"maxUnavailable": "25%",
"maxSurge": "25%"
}
},
"revisionHistoryLimit": 2,
"progressDeadlineSeconds": 600
},
"status": {
"observedGeneration": 1,
"replicas": 1,
"updatedReplicas": 1,
"readyReplicas": 1,
"availableReplicas": 1,
"conditions": [
{
"type": "Available",
"status": "True",
"reason": "MinimumReplicasAvailable",
"message": "Deployment has minimum availability."
},
{
"type": "Progressing",
"status": "True",
"reason": "NewReplicaSetAvailable",
"message": "ReplicaSet \"selenium-node-chrome-845d54599b\" has successfully progressed."
}
]
}
}
{
"kind": "Service",
"apiVersion": "v1",
"metadata": {
"name": "selenium-hub",
"namespace": "default",
"selfLink": "/api/v1/namespaces/default/services/selenium-hub",
"labels": {
"run": "selenium-hub"
}
},
"spec": {
"ports": [
{
"protocol": "TCP",
"port": 4444,
"targetPort": 4444,
"nodePort": 30742
}
],
"selector": {
"run": "selenium-hub"
},
"type": "NodePort",
"sessionAffinity": "None",
"externalTrafficPolicy": "Cluster"
},
"status": {
"loadBalancer": {}
}
}
{
"kind": "Deployment",
"apiVersion": "extensions/v1beta1",
"metadata": {
"name": "selenium-hub",
"namespace": "default",
"selfLink": "/apis/extensions/v1beta1/namespaces/default/deployments/selenium-hub",
"generation": 1,
"labels": {
"run": "selenium-hub"
},
"annotations": {
"deployment.kubernetes.io/revision": "1"
}
},
"spec": {
"replicas": 1,
"selector": {
"matchLabels": {
"run": "selenium-hub"
}
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"run": "selenium-hub"
}
},
"spec": {
"containers": [
{
"name": "selenium-hub",
"image": "selenium/hub:3.14.0",
"ports": [
{
"containerPort": 4444,
"protocol": "TCP"
}
],
"resources": {},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"imagePullPolicy": "IfNotPresent"
}
],
"restartPolicy": "Always",
"terminationGracePeriodSeconds": 30,
"dnsPolicy": "ClusterFirst",
"securityContext": {},
"schedulerName": "default-scheduler"
}
},
"strategy": {
"type": "RollingUpdate",
"rollingUpdate": {
"maxUnavailable": "25%",
"maxSurge": "25%"
}
},
"revisionHistoryLimit": 2,
"progressDeadlineSeconds": 600
},
"status": {
"observedGeneration": 1,
"replicas": 1,
"updatedReplicas": 1,
"readyReplicas": 1,
"availableReplicas": 1,
"conditions": [
{
"type": "Available",
"status": "True",
"reason": "MinimumReplicasAvailable",
"message": "Deployment has minimum availability."
},
{
"type": "Progressing",
"status": "True",
"reason": "NewReplicaSetAvailable",
"message": "ReplicaSet \"selenium-hub-7568f86f96\" has successfully progressed."
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment