diff --git a/modules/python/clusterloader2/swiftv2-slo/config/pni_readiness_checker_unified_template.yaml b/modules/python/clusterloader2/swiftv2-slo/config/pni_readiness_checker_unified_template.yaml index 5475ede789..aa460e4a88 100644 --- a/modules/python/clusterloader2/swiftv2-slo/config/pni_readiness_checker_unified_template.yaml +++ b/modules/python/clusterloader2/swiftv2-slo/config/pni_readiness_checker_unified_template.yaml @@ -40,6 +40,9 @@ spec: if [ "$READY_COUNT" -ge "$NUM_PNIS" ]; then echo "All PNIs are ready!" + touch /tmp/ready + # Keep pod running so CL2 can detect readiness via probe + sleep 60 exit 0 fi @@ -49,6 +52,13 @@ spec: echo "Timeout reached after ${TIMEOUT}s - $READY_COUNT/$NUM_PNIS PNIs ready" exit 1 + readinessProbe: + exec: + command: + - cat + - /tmp/ready + initialDelaySeconds: 5 + periodSeconds: 5 resources: requests: cpu: 10m diff --git a/modules/python/clusterloader2/swiftv2-slo/config/reporter_role_template.yaml b/modules/python/clusterloader2/swiftv2-slo/config/reporter_role_template.yaml index 2ccf5f6e9f..538f805304 100644 --- a/modules/python/clusterloader2/swiftv2-slo/config/reporter_role_template.yaml +++ b/modules/python/clusterloader2/swiftv2-slo/config/reporter_role_template.yaml @@ -7,3 +7,6 @@ rules: - apiGroups: [""] resources: ["pods"] verbs: ["get", "patch"] +- apiGroups: ["multitenancy.acn.azure.com"] + resources: ["podnetworkinstances"] + verbs: ["get", "list"] diff --git a/modules/python/clusterloader2/swiftv2-slo/config/swiftv2_deployment_dynamicres_scale_config.yaml b/modules/python/clusterloader2/swiftv2-slo/config/swiftv2_deployment_dynamicres_scale_config.yaml index adf7bb5b39..20a90641e6 100644 --- a/modules/python/clusterloader2/swiftv2-slo/config/swiftv2_deployment_dynamicres_scale_config.yaml +++ b/modules/python/clusterloader2/swiftv2-slo/config/swiftv2_deployment_dynamicres_scale_config.yaml @@ -87,7 +87,7 @@ steps: Params: desiredPodCount: 1 labelSelector: app=pni-readiness-checker - timeout: 11m + timeout: 5m - name: Delete PNI Readiness Checker phases: - namespaceRange: diff --git a/modules/python/clusterloader2/swiftv2-slo/config/swiftv2_deployment_staticres_scale_config.yaml b/modules/python/clusterloader2/swiftv2-slo/config/swiftv2_deployment_staticres_scale_config.yaml index 910e5b3446..fb74f5d53f 100644 --- a/modules/python/clusterloader2/swiftv2-slo/config/swiftv2_deployment_staticres_scale_config.yaml +++ b/modules/python/clusterloader2/swiftv2-slo/config/swiftv2_deployment_staticres_scale_config.yaml @@ -100,7 +100,7 @@ steps: Params: desiredPodCount: 1 labelSelector: app=pni-readiness-checker - timeout: 11m + timeout: 5m - name: Delete PNI Readiness Checker -{{$j}} phases: - namespaceRange: