Just Published! Threat Report: Exposing Malware in Linux-Based Multi-Cloud Environments | Download Now

Container: The CBContainers Images Fail to Deploy With Error "Not Supported By Windows"

Container: The CBContainers Images Fail to Deploy With Error "Not Supported By Windows"

Environment

  • VMware Carbon Black Container: All Supported Versions

Symptoms

Deploying the CBContainers components fails and the error can be seen "not supported by windows"

Cause

This happens because the cbcontainers components don't support Kubernetes Windows nodes and can't successfully deploy to them

Resolution

  • nodeAffinity can be setup on the components to avoid Windows nodes or only deploy to Linux nodes
  • To avoid Windows nodes 
    affinity:
      nodeAffinity:
        requiredDuringSchedulingIgnoredDuringExecution:
          nodeSelectorTerms:
          - matchExpressions:
            - key: kubernetes.io/os
              operator: NotIn
              values:
              - windows
  • To only deploy to Linux nodes
    affinity:
      nodeAffinity:
        requiredDuringSchedulingIgnoredDuringExecution:
          nodeSelectorTerms:
          - matchExpressions:
            - key: kubernetes.io/os
              operator: In
              values:
              - linux

Additional Notes

Adding nodeAffinity by default is being looked into

Related Content


Labels (2)
Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎06-15-2022
Views:
74
Contributors