Overview
TheNetwork custom resource defines network infrastructure for your workloads. Networks provide isolated layer-3 connectivity for resources within a project.
Network resources are part of the Milo networking API group (
networking.miloapis.com/v1alpha1).Resource Definition
API Group
networking.miloapis.com/v1alpha1NetworkMetadata
The name of the network. Must be unique within the namespace.
The project namespace where this network is created. Format:
project-<project-name>Optional labels to organize and select networks.Common labels:
app.kubernetes.io/name: Application nameapp.kubernetes.io/component: Component typeenvironment: Environment (dev, staging, prod)
Optional annotations for additional metadata.Standard annotations:
kubernetes.io/description: Human-readable descriptionkubernetes.io/display-name: Display name for UIs
Spec Fields
The Network spec defines the desired network configuration:The IPv4 CIDR block for this network.Example:
10.0.0.0/16The IPv6 CIDR block for this network (optional).Example:
fd00::/64Provider-specific configuration for the network backend.
Status Fields
The Network status reflects the current state of the network:The current phase of the network.Values:
Pending: Network creation is pendingProvisioning: Network is being createdReady: Network is ready for useFailed: Network creation failedDeleting: Network is being deleted
Detailed conditions about the network state.Each condition includes:
type: Condition type (e.g., “Ready”)status: True, False, or Unknownreason: Machine-readable reason codemessage: Human-readable messagelastTransitionTime: When the condition last changed
Provider-specific status information (e.g., VPC ID, subnet IDs).
Examples
Basic Network
GCP VPC Network
Dual-stack Network
kubectl Commands
Create a Network
List Networks
Get Network Details
Update a Network
Delete a Network
Watch Network Status
Related Resources
- Workload - Deploy workloads to networks
- Gateway - Expose services via gateways
- Project - Networks are scoped to projects
Troubleshooting
Network stuck in Provisioning
Network stuck in Provisioning
Check:
- View network status:
kubectl describe network <name> -n <namespace> - Check for error conditions in status.conditions
- Verify provider credentials are configured
- Check quota limits in your cloud provider
Cannot create workload in network
Cannot create workload in network
Check:
- Verify network is in
Readyphase - Ensure workload namespace matches network namespace
- Check network RBAC permissions