code: def validate_max_pods(namespace):
      
      # kube-proxy and kube-svc reside each nodes,
      # 2 kube-proxy pods, 1 azureproxy/heapster/dashboard/tunnelfront are in kube-system
      minimum_pods_required = ceil((namespace.node_count * 2 + 6 + 1) / namespace.node_count)
      if namespace.max_pods != 0 and namespace.max_pods < minimum_pods_required:
          raise CLIError('--max-pods must be at least {} for a managed Kubernetes cluster to function.'
                         .format(minimum_pods_required))
docs: Validates that max_pods is set to a reasonable minimum number.