diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-01-10 09:51:18 +0100 |
---|---|---|
committer | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-01-10 09:51:18 +0100 |
commit | 593d936bfe90f2a23a56a95e189f042c594c135c (patch) | |
tree | 39a9587514336915241ee787cab9b43a3ee6542f /ansible | |
parent | 04d95d44b43222b6dcef5a3750bea8ab906aad48 (diff) |
Limit resource footprint of rke role tests
Number of kubernetes nodes created by rke role tests
was limited to 1 - higher number caused resource exhaustion
in CI worker (8gb memory limit).
Verifier timeout was increased in routine where pod
readiness is checked.
Change-Id: I2c30aa999b92c4ceddccf682c4f918e953da2621
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Issue-ID: OOM-2257
Diffstat (limited to 'ansible')
-rw-r--r-- | ansible/roles/rke/molecule/default/molecule.yml | 18 | ||||
-rw-r--r-- | ansible/roles/rke/molecule/default/tests/test_infrastructure.py | 2 |
2 files changed, 1 insertions, 19 deletions
diff --git a/ansible/roles/rke/molecule/default/molecule.yml b/ansible/roles/rke/molecule/default/molecule.yml index 6ae613a9..3cc85360 100644 --- a/ansible/roles/rke/molecule/default/molecule.yml +++ b/ansible/roles/rke/molecule/default/molecule.yml @@ -44,24 +44,6 @@ platforms: - name: rke purge_networks: true - - name: kubernetes-node-2 - image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6} - pre_build_image: true - privileged: true - override_command: false - restart_policy: unless-stopped - env: - container: docker - volumes: - - /var/lib/kubelet - - /var/lib/docker - groups: - - kubernetes - - kubernetes-node - networks: - - name: rke - purge_networks: true - provisioner: name: ansible env: diff --git a/ansible/roles/rke/molecule/default/tests/test_infrastructure.py b/ansible/roles/rke/molecule/default/tests/test_infrastructure.py index 9ba11d6e..731f38bf 100644 --- a/ansible/roles/rke/molecule/default/tests/test_infrastructure.py +++ b/ansible/roles/rke/molecule/default/tests/test_infrastructure.py @@ -52,5 +52,5 @@ def test_pods_ready(host): 'metadata']['ownerReferences'][0]['kind'] == 'Job': continue assert host.run( - 'kubectl wait --timeout=120s --for=condition=' + condition + ' -n ' + + 'kubectl wait --timeout=240s --for=condition=' + condition + ' -n ' + namespace + ' pods/' + podname).rc == 0 |