Network check for MCC/MOS
- Network info gathering using DaemonSet with 'hostNetwork=True'
- DaemonSet handling routines
- Mapper and Checker refactoring for Kube
Fixes
- SSH timeouts handling using env vars
MCP_SSH_TIMEOUT when connecting
MCP_SCRIPT_RUN_TIMEOUT when running command
- Progress class supports 0 as an index
Related-PROD: PROD-36575
Change-Id: Ie03a9051007eeb788901acae3696ea2bfdfe33e2
diff --git a/templates/daemonset_template.yaml b/templates/daemonset_template.yaml
new file mode 100644
index 0000000..d555ed7
--- /dev/null
+++ b/templates/daemonset_template.yaml
@@ -0,0 +1,29 @@
+apiVersion: apps/v1
+kind: DaemonSet
+metadata:
+ name: nodeinfo
+ namespace: qa-space
+spec:
+ selector:
+ matchLabels:
+ name: nodeinfo
+ template:
+ metadata:
+ labels:
+ name: nodeinfo
+ spec:
+ tolerations:
+ # this toleration is to have the daemonset runnable on master nodes
+ # remove it if your masters can't run pods
+ - key: node-role.kubernetes.io/master
+ operator: Exists
+ effect: NoSchedule
+ containers:
+ - command:
+ - /bin/sleep
+ - infinity
+ name: nodeinfo-pod
+ imagePullPolicy: IfNotPresent
+ image: savex13/toolset-min:0.2
+ hostNetwork: true
+ terminationGracePeriodSeconds: 2