alcounit / selenosis

Scalable, stateless selenium hub for Kubernetes cluster
Apache License 2.0
81 stars 24 forks source link

Add pod toleration to config #16

Closed alcounit closed 3 years ago

alcounit commented 3 years ago

Hello, @alcounit !

I'm currently using selenosis nodeselector, but I need to make baremetal k8s node avaliable only for selenosis ui tests. I need pod toleration similar to https://aerokube.com/moon/latest/#tolerations - is it possible to implement?

Originally posted by @SVronskiy in https://github.com/alcounit/selenosis/issues/14#issuecomment-783837915

alcounit commented 3 years ago

Hi @SVronskiy Please check fresh build: alcounit/selenosis:v0.0.8-develop Update you browser config like:

---
    chrome:
        defaultVersion: "68.0"
        path: /
        meta: 
          labels:
          environment: production
          app: projectx
        spec:
          tolerations:
          - key: key1
            operator: Exists
            value: value1
            effect: NoExecute
            tolerationSeconds: 3600
...
SVronskiy commented 3 years ago

Hello, @alcounit !

Tolerations in combination with nodeselector works exactly as expected. Thank you very much for promt help!

alcounit commented 3 years ago

@SVronskiy thanks for feedback. updated deployment: https://github.com/alcounit/selenosis-deploy