From 83843a42d6b3072fc2a8e6e62d5f02e86457bb3b Mon Sep 17 00:00:00 2001 From: James Blair Date: Thu, 14 Mar 2024 11:22:12 +1300 Subject: [PATCH] Selenium grid template completed. --- .../README.org | 25 +++++++------------ .../selenium-grid/template.yaml | 6 ++--- 2 files changed, 12 insertions(+), 19 deletions(-) diff --git a/2024-03-14-scalable-selenium-pipelines/README.org b/2024-03-14-scalable-selenium-pipelines/README.org index 5db3e07..1303fce 100644 --- a/2024-03-14-scalable-selenium-pipelines/README.org +++ b/2024-03-14-scalable-selenium-pipelines/README.org @@ -89,23 +89,16 @@ Once OpenShift Pipelines is installed we can create an example pipeline to demon # Create namespace for application test environment oc new-project parksmap-tst +oc --namespace "parksmap-tst" create -f selenium-grid/template.yaml +oc --namespace "parksmap-tst" process selenium-hub-parksmap | oc --namespace "parksmap-tst" create -f - # Create pipeline -cat << EOF | oc apply --filename - - - -EOF +#cat << EOF | oc apply --filename - +# +# +#EOF #+end_src #+RESULTS: -#+begin_example -Now using project "parksmap-tst" on server "https://api.cluster-272j9.dynamic.redhatworkshops.io:6443". - -You can add applications to this project with the 'new-app' command. For example, try: - - oc new-app rails-postgresql-example - -to build a new example application in Ruby. Or use kubectl to deploy a simple Kubernetes application: - - kubectl create deployment hello-node --image=k8s.gcr.io/e2e-test-images/agnhost:2.33 -- /agnhost serve-hostname - -#+end_example +: service/selenium-hub-parksmap created +: deploymentconfig.apps.openshift.io/selenium-hub-parksmap created +: route.route.openshift.io/selenium-hub-parksmap created diff --git a/2024-03-14-scalable-selenium-pipelines/selenium-grid/template.yaml b/2024-03-14-scalable-selenium-pipelines/selenium-grid/template.yaml index c4acf66..d8fb159 100644 --- a/2024-03-14-scalable-selenium-pipelines/selenium-grid/template.yaml +++ b/2024-03-14-scalable-selenium-pipelines/selenium-grid/template.yaml @@ -1,5 +1,5 @@ --- -apiVersion: v1 +apiVersion: template.openshift.io/v1 kind: Template metadata: name: selenium-hub-parksmap @@ -88,5 +88,5 @@ objects: kind: Service name: selenium-hub-parksmap weight: 100 - labels: - selenium-hub: master +labels: + selenium-hub: master