Documentation
Introduction
- Overview
- Getting Started
- Support for K8s Installers
- Deploying on Kind
- Deploying on Minikube
- Configuration
- Installing with Helm
Cloud Deployment
Reference
- Antrea Network Policy
- Antctl
- Architecture
- Traffic Encryption (Ipsec / WireGuard)
- Securing Control Plane
- Security considerations
- Troubleshooting
- OS-specific Known Issues
- OVS Pipeline
- Feature Gates
- Antrea Proxy
- Network Flow Visibility
- Traceflow Guide
- NoEncap and Hybrid Traffic Modes
- Egress Guide
- NodePortLocal Guide
- Antrea IPAM Guide
- Exposing Services of type LoadBalancer
- Traffic Control
- BGP Support
- Versioning
- Antrea API Groups
- Antrea API Reference
Windows
Integrations
Cookbooks
Multicluster
Developer Guide
Project Information
Packages:
- controlplane.antrea.io/v1beta2
- crd.antrea.io/v1alpha1
- crd.antrea.io/v1alpha2
- crd.antrea.io/v1beta1
- stats.antrea.io/v1alpha1
- system.antrea.io/v1beta1
controlplane.antrea.io/v1beta2
Package v1beta2 is the v1beta2 version of the Antrea NetworkPolicy API messages.
Resource Types:- AddressGroup
- AppliedToGroup
- ClusterGroupMembers
- EgressGroup
- GroupAssociation
- GroupMembers
- IPGroupAssociation
- NetworkPolicy
- NetworkPolicyEvaluation
- NodeStatsSummary
- SupportBundleCollection
AddressGroup
AddressGroup is the message format of antrea/pkg/controller/types.AddressGroup in an API response.
| Field | Description | 
|---|---|
| apiVersionstring | 
controlplane.antrea.io/v1beta2
 | 
| kindstring | AddressGroup | 
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | 
| groupMembers[]GroupMember | 
AppliedToGroup
AppliedToGroup is the message format of antrea/pkg/controller/types.AppliedToGroup in an API response.
| Field | Description | 
|---|---|
| apiVersionstring | 
controlplane.antrea.io/v1beta2
 | 
| kindstring | AppliedToGroup | 
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | 
| groupMembers[]GroupMember | GroupMembers is list of resources selected by this group. | 
ClusterGroupMembers
ClusterGroupMembers is a list of GroupMember objects or IPBlocks that are currently selected by a ClusterGroup.
| Field | Description | 
|---|---|
| apiVersionstring | 
controlplane.antrea.io/v1beta2
 | 
| kindstring | ClusterGroupMembers | 
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | 
| effectiveMembers[]GroupMember | |
| effectiveIPBlocks[]IPNet | |
| totalMembersint64 | |
| totalPagesint64 | |
| currentPageint64 | 
EgressGroup
| Field | Description | 
|---|---|
| apiVersionstring | 
controlplane.antrea.io/v1beta2
 | 
| kindstring | EgressGroup | 
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | 
| groupMembers[]GroupMember | GroupMembers is list of resources selected by this group. | 
GroupAssociation
GroupAssociation is the message format in an API response for groupassociation queries.
| Field | Description | 
|---|---|
| apiVersionstring | 
controlplane.antrea.io/v1beta2
 | 
| kindstring | GroupAssociation | 
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | 
| associatedGroups[]GroupReference | AssociatedGroups is a list of GroupReferences that is associated with the Pod/ExternalEntity being queried. | 
GroupMembers
GroupMembers is a list of GroupMember objects or IPBlocks that are currently selected by a Group.
| Field | Description | 
|---|---|
| apiVersionstring | 
controlplane.antrea.io/v1beta2
 | 
| kindstring | GroupMembers | 
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | 
| effectiveMembers[]GroupMember | |
| effectiveIPBlocks[]IPNet | |
| totalMembersint64 | |
| totalPagesint64 | |
| currentPageint64 | 
IPGroupAssociation
| Field | Description | 
|---|---|
| apiVersionstring | 
controlplane.antrea.io/v1beta2
 | 
| kindstring | IPGroupAssociation | 
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | 
| associatedGroups[]GroupReference | AssociatedGroups is a list of GroupReferences that is associated with the IP address being queried. | 
NetworkPolicy
NetworkPolicy is the message format of antrea/pkg/controller/types.NetworkPolicy in an API response.
| Field | Description | 
|---|---|
| apiVersionstring | 
controlplane.antrea.io/v1beta2
 | 
| kindstring | NetworkPolicy | 
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | 
| rules[]NetworkPolicyRule | Rules is a list of rules to be applied to the selected GroupMembers. | 
| appliedToGroups[]string | AppliedToGroups is a list of names of AppliedToGroups to which this policy applies. Cannot be set in conjunction with any NetworkPolicyRule.AppliedToGroups in Rules. | 
| priorityfloat64 | Priority represents the relative priority of this Network Policy as compared to other Network Policies. Priority will be unset (nil) for K8s NetworkPolicy. | 
| tierPriorityint32 | TierPriority represents the priority of the Tier associated with this Network Policy. The TierPriority will remain nil for K8s NetworkPolicy. | 
| sourceRefNetworkPolicyReference | Reference to the original NetworkPolicy that the internal NetworkPolicy is created for. | 
NetworkPolicyEvaluation
NetworkPolicyEvaluation contains the request and response for a NetworkPolicy evaluation.
| Field | Description | 
|---|---|
| apiVersionstring | 
controlplane.antrea.io/v1beta2
 | 
| kindstring | NetworkPolicyEvaluation | 
| requestNetworkPolicyEvaluationRequest | |
| responseNetworkPolicyEvaluationResponse | 
NodeStatsSummary
NodeStatsSummary contains stats produced on a Node. It’s used by the antrea-agents to report stats to the antrea-controller.
| Field | Description | 
|---|---|
| apiVersionstring | 
controlplane.antrea.io/v1beta2
 | 
| kindstring | NodeStatsSummary | 
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | 
| networkPolicies[]NetworkPolicyStats | The TrafficStats of K8s NetworkPolicies collected from the Node. | 
| antreaClusterNetworkPolicies[]NetworkPolicyStats | The TrafficStats of Antrea ClusterNetworkPolicies collected from the Node. | 
| antreaNetworkPolicies[]NetworkPolicyStats | The TrafficStats of Antrea NetworkPolicies collected from the Node. | 
| multicast[]MulticastGroupInfo | Multicast group information collected from the Node. | 
SupportBundleCollection
SupportBundleCollection is the message format of antrea/pkg/controller/types.SupportBundleCollection in an API response.
| Field | Description | 
|---|---|
| apiVersionstring | 
controlplane.antrea.io/v1beta2
 | 
| kindstring | SupportBundleCollection | 
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | 
| expiredAtKubernetes meta/v1.Time | |
| sinceTimestring | |
| fileServerBundleFileServer | |
| authenticationBundleServerAuthConfiguration | 
AddressGroupPatch
AddressGroupPatch describes the incremental update of an AddressGroup.
| Field | Description | 
|---|---|
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | 
| addedGroupMembers[]GroupMember | |
| removedGroupMembers[]GroupMember | 
AppliedToGroupPatch
AppliedToGroupPatch describes the incremental update of an AppliedToGroup.
| Field | Description | 
|---|---|
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | 
| addedGroupMembers[]GroupMember | |
| removedGroupMembers[]GroupMember | 
BasicAuthentication
(Appears on: BundleServerAuthConfiguration)
| Field | Description | 
|---|---|
| usernamestring | |
| passwordstring | 
BundleFileServer
(Appears on: SupportBundleCollection)
| Field | Description | 
|---|---|
| urlstring | 
BundleServerAuthConfiguration
(Appears on: SupportBundleCollection)
| Field | Description | 
|---|---|
| bearerTokenstring | |
| apiKeystring | |
| basicAuthenticationBasicAuthentication | 
Direction
(string alias)
(Appears on: NetworkPolicyRule, RuleRef)
Direction defines traffic direction of NetworkPolicyRule.
EgressGroupPatch
EgressGroupPatch describes the incremental update of an EgressGroup.
| Field | Description | 
|---|---|
| ObjectMetaKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | 
| AddedGroupMembers[]GroupMember | |
| RemovedGroupMembers[]GroupMember | 
Entity
(Appears on: NetworkPolicyEvaluationRequest)
Entity contains Namespace and Pod name as a request parameter.
| Field | Description | 
|---|---|
| podPodReference | 
ExternalEntityReference
(Appears on: GroupMember)
ExternalEntityReference represents a ExternalEntity Reference.
| Field | Description | 
|---|---|
| namestring | The name of this ExternalEntity. | 
| namespacestring | The Namespace of this ExternalEntity. | 
GroupMember
(Appears on: AddressGroup, AppliedToGroup, ClusterGroupMembers, EgressGroup, GroupMembers, AddressGroupPatch, AppliedToGroupPatch, EgressGroupPatch)
GroupMember represents resource member to be populated in Groups.
| Field | Description | 
|---|---|
| podPodReference | Pod maintains the reference to the Pod. | 
| externalEntityExternalEntityReference | ExternalEntity maintains the reference to the ExternalEntity. | 
| ips[]IPAddress | IP is the IP address of the Endpoints associated with the GroupMember. | 
| ports[]NamedPort | Ports is the list NamedPort of the GroupMember. | 
| nodeNodeReference | Node maintains the reference to the Node. | 
| serviceServiceReference | Service is the reference to the Service. It can only be used in an AppliedTo Group and only a NodePort type Service can be referred by this field. | 
GroupMemberSet
(map[antrea.io/antrea/pkg/apis/controlplane/v1beta2.groupMemberKey]*antrea.io/antrea/pkg/apis/controlplane/v1beta2.GroupMember alias)
GroupMemberSet is a set of GroupMembers.
GroupReference
(Appears on: GroupAssociation, IPGroupAssociation)
| Field | Description | 
|---|---|
| namespacestring | Namespace of the Group. Empty for ClusterGroup. | 
| namestring | Name of the Group. | 
| uidk8s.io/apimachinery/pkg/types.UID | UID of the Group. | 
HTTPProtocol
(Appears on: L7Protocol)
HTTPProtocol matches HTTP requests with specific host, method, and path. All fields could be used alone or together. If all fields are not provided, it matches all HTTP requests.
| Field | Description | 
|---|---|
| hoststring | Host represents the hostname present in the URI or the HTTP Host header to match. It does not contain the port associated with the host. | 
| methodstring | Method represents the HTTP method to match. It could be GET, POST, PUT, HEAD, DELETE, TRACE, OPTIONS, CONNECT and PATCH. | 
| pathstring | Path represents the URI path to match (Ex. “/index.html”, “/admin”). | 
IPAddress
([]byte alias)
(Appears on: GroupMember, IPNet)
IPAddress describes a single IP address. Either an IPv4 or IPv6 address must be set.
IPBlock
(Appears on: NetworkPolicyPeer)
IPBlock describes a particular CIDR (Ex. “192.168.1.1⁄24”). The except entry describes CIDRs that should not be included within this rule.
| Field | Description | 
|---|---|
| cidrIPNet | CIDR is an IPNet represents the IP Block. | 
| except[]IPNet | (Optional) Except is a slice of IPNets that should not be included within an IP Block. Except values will be rejected if they are outside the CIDR range. | 
IPNet
(Appears on: ClusterGroupMembers, GroupMembers, IPBlock)
IPNet describes an IP network.
| Field | Description | 
|---|---|
| ipIPAddress | |
| prefixLengthint32 | 
L7Protocol
(Appears on: NetworkPolicyRule)
L7Protocol defines application layer protocol to match.
| Field | Description | 
|---|---|
| httpHTTPProtocol | |
| tlsTLSProtocol | 
MulticastGroupInfo
(Appears on: NodeStatsSummary)
MulticastGroupInfo contains the list of Pods that have joined a multicast group, for a given Node.
| Field | Description | 
|---|---|
| groupstring | Group is the IP of the multicast group. | 
| pods[]PodReference | Pods is the list of Pods that have joined the multicast group. | 
NamedPort
(Appears on: GroupMember)
NamedPort represents a Port with a name on Pod.
| Field | Description | 
|---|---|
| portint32 | Port represents the Port number. | 
| namestring | Name represents the associated name with this Port number. | 
| protocolProtocol | Protocol for port. Must be UDP, TCP, or SCTP. | 
NetworkPolicyEvaluationRequest
(Appears on: NetworkPolicyEvaluation)
NetworkPolicyEvaluationRequest is the request body of NetworkPolicy evaluation.
| Field | Description | 
|---|---|
| sourceEntity | |
| destinationEntity | 
NetworkPolicyEvaluationResponse
(Appears on: NetworkPolicyEvaluation)
NetworkPolicyEvaluationResponse is the response of NetworkPolicy evaluation.
| Field | Description | 
|---|---|
| networkPolicyNetworkPolicyReference | The reference of the effective NetworkPolicy. | 
| ruleIndexint32 | |
| ruleRuleRef | The content of the effective rule. | 
NetworkPolicyNodeStatus
(Appears on: NetworkPolicyStatus)
NetworkPolicyNodeStatus is the status of a NetworkPolicy on a Node.
| Field | Description | 
|---|---|
| nodeNamestring | The name of the Node that produces the status. | 
| generationint64 | The generation realized by the Node. | 
| realizationFailurebool | The flag to mark the NetworkPolicy realization is failed on the Node or not. | 
| messagestring | The error message to describe why the NetworkPolicy realization is failed on the Node. | 
NetworkPolicyPeer
(Appears on: NetworkPolicyRule)
NetworkPolicyPeer describes a peer of NetworkPolicyRules. It could be a list of names of AddressGroups and/or a list of IPBlock.
| Field | Description | 
|---|---|
| addressGroups[]string | A list of names of AddressGroups. | 
| ipBlocks[]IPBlock | A list of IPBlock. | 
| fqdns[]string | A list of exact FQDN names or FQDN wildcard expressions. This field can only be possibly set for NetworkPolicyPeer of egress rules. | 
| toServices[]ServiceReference | A list of ServiceReference. This field can only be possibly set for NetworkPolicyPeer of egress rules. | 
| labelIdentities[]uint32 | A list of labelIdentities selected as ingress peers for stretched policy. This field can only be possibly set for NetworkPolicyPeer of ingress rules. | 
NetworkPolicyReference
(Appears on: NetworkPolicy, NetworkPolicyEvaluationResponse, NetworkPolicyStats)
| Field | Description | 
|---|---|
| typeNetworkPolicyType | Type of the NetworkPolicy. | 
| namespacestring | Namespace of the NetworkPolicy. It’s empty for Antrea ClusterNetworkPolicy. | 
| namestring | Name of the NetworkPolicy. | 
| uidk8s.io/apimachinery/pkg/types.UID | UID of the NetworkPolicy. | 
NetworkPolicyRule
(Appears on: NetworkPolicy)
NetworkPolicyRule describes a particular set of traffic that is allowed.
| Field | Description | 
|---|---|
| directionDirection | The direction of this rule. If it’s set to In, From must be set and To must not be set. If it’s set to Out, To must be set and From must not be set. | 
| fromNetworkPolicyPeer | From represents sources which should be able to access the GroupMembers selected by the policy. | 
| toNetworkPolicyPeer | To represents destinations which should be able to be accessed by the GroupMembers selected by the policy. | 
| services[]Service | Services is a list of services which should be matched. | 
| priorityint32 | Priority defines the priority of the Rule as compared to other rules in the NetworkPolicy. | 
| actionRuleAction | Action specifies the action to be applied on the rule. i.e. Allow/Drop. An empty action “nil” defaults to Allow action, which would be the case for rules created for K8s Network Policy. | 
| enableLoggingbool | EnableLogging indicates whether or not to generate logs when rules are matched. Default to false. | 
| appliedToGroups[]string | AppliedToGroups is a list of names of AppliedToGroups to which this rule applies. Cannot be set in conjunction with NetworkPolicy.AppliedToGroups of the NetworkPolicy that this Rule is referred to. | 
| namestring | Name describes the intention of this rule. Name should be unique within the policy. | 
| l7Protocols[]L7Protocol | L7Protocols is a list of application layer protocols which should be matched. | 
| logLabelstring | LogLabel is a user-defined arbitrary string which will be printed in the NetworkPolicy logs. | 
NetworkPolicyStats
(Appears on: NodeStatsSummary)
NetworkPolicyStats contains the information and traffic stats of a NetworkPolicy.
| Field | Description | 
|---|---|
| networkPolicyNetworkPolicyReference | The reference of the NetworkPolicy. | 
| trafficStatsTrafficStats | The stats of the NetworkPolicy. | 
| ruleTrafficStats[]RuleTrafficStats | The stats of the NetworkPolicy rules. It’s empty for K8s NetworkPolicies as they don’t have rule name to identify a rule. | 
NetworkPolicyStatus
NetworkPolicyStatus is the status of a NetworkPolicy.
| Field | Description | 
|---|---|
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | 
| nodes[]NetworkPolicyNodeStatus | Nodes contains statuses produced on a list of Nodes. | 
NetworkPolicyType
(string alias)
(Appears on: NetworkPolicyReference)
NodeReference
(Appears on: GroupMember)
NodeReference represents a Node Reference.
| Field | Description | 
|---|---|
| namestring | The name of this Node. | 
PaginationGetOptions
| Field | Description | 
|---|---|
| pageint64 | |
| limitint64 | 
PodReference
(Appears on: Entity, GroupMember, MulticastGroupInfo)
PodReference represents a Pod Reference.
| Field | Description | 
|---|---|
| namestring | The name of this Pod. | 
| namespacestring | The Namespace of this Pod. | 
Protocol
(string alias)
(Appears on: NamedPort, Service)
Protocol defines network protocols supported for things like container ports.
RuleRef
(Appears on: NetworkPolicyEvaluationResponse)
RuleRef contains basic information for the rule.
| Field | Description | 
|---|---|
| directionDirection | |
| namestring | |
| actionRuleAction | 
Service
(Appears on: NetworkPolicyRule)
Service describes a port to allow traffic on.
| Field | Description | 
|---|---|
| protocolProtocol | (Optional) The protocol (TCP, UDP, SCTP, or ICMP) which traffic must match. If not specified, this field defaults to TCP. | 
| portk8s.io/apimachinery/pkg/util/intstr.IntOrString | (Optional) Port and EndPort can only be specified, when the Protocol is TCP, UDP, or SCTP. Port defines the port name or number on the given protocol. If not specified and the Protocol is TCP, UDP, or SCTP, this matches all port numbers. | 
| endPortint32 | (Optional) EndPort defines the end of the port range, being the end included within the range.
It can only be specified when a numerical  | 
| icmpTypeint32 | (Optional) ICMPType and ICMPCode can only be specified, when the Protocol is ICMP. If they both are not specified and the Protocol is ICMP, this matches all ICMP traffic. | 
| icmpCodeint32 | |
| igmpTypeint32 | (Optional) IGMPType and GroupAddress can only be specified when the Protocol is IGMP. | 
| groupAddressstring | |
| srcPortint32 | (Optional) SrcPort and SrcEndPort can only be specified, when the Protocol is TCP, UDP, or SCTP. It restricts the source port of the traffic. | 
| srcEndPortint32 | 
ServiceReference
(Appears on: GroupMember, NetworkPolicyPeer)
ServiceReference represents reference to a v1.Service.
| Field | Description | 
|---|---|
| namestring | The name of this Service. | 
| namespacestring | The Namespace of this Service. | 
SupportBundleCollectionNodeStatus
(Appears on: SupportBundleCollectionStatus)
SupportBundleCollectionNodeStatus is the status of a SupportBundleCollection on a Node.
| Field | Description | 
|---|---|
| nodeNamestring | The name of the Node that produces the status. | 
| nodeNamespacestring | The namespace of the Node that produces the status. It is set only when NodeType is ExternalNode. | 
| nodeTypestring | The type of the Node that produces the status. The values include Node and ExternalNode. | 
| completedbool | The phase in which a SupportBundleCollection is on the Node. | 
| errorstring | 
SupportBundleCollectionStatus
SupportBundleCollectionStatus is the status of a SupportBundleCollection.
| Field | Description | 
|---|---|
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | 
| nodes[]SupportBundleCollectionNodeStatus | Nodes contains statuses produced on a list of Nodes. | 
TLSProtocol
(Appears on: L7Protocol)
TLSProtocol matches TLS handshake packets with specific SNI. If the field is not provided, this matches all TLS handshake packets.
| Field | Description | 
|---|---|
| snistring | SNI (Server Name Indication) indicates the server domain name in the TLS/SSL hello message. | 
crd.antrea.io/v1alpha1
Resource Types:BGPPolicy
BGPPolicy defines BGP configuration applied to Nodes.
| Field | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| apiVersionstring | 
crd.antrea.io/v1alpha1
 | ||||||||||
| kindstring | BGPPolicy | ||||||||||
| metadataKubernetes meta/v1.ObjectMeta | Standard metadata of the object.Refer to the Kubernetes API documentation for the fields of the metadatafield. | ||||||||||
| specBGPPolicySpec | 
 | 
ExternalNode
ExternalNode refers to a virtual machine or a bare-metal server which is not a K8s node, but has Antrea agent running on it.
| Field | Description | ||
|---|---|---|---|
| apiVersionstring | 
crd.antrea.io/v1alpha1
 | ||
| kindstring | ExternalNode | ||
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | ||
| specExternalNodeSpec | 
 | 
NodeLatencyMonitor
NodeLatencyMonitor is used to monitor the latency between nodes in a Kubernetes cluster. It is a singleton resource, meaning only one instance of it can exist in the cluster.
| Field | Description | ||
|---|---|---|---|
| apiVersionstring | 
crd.antrea.io/v1alpha1
 | ||
| kindstring | NodeLatencyMonitor | ||
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | ||
| specNodeLatencyMonitorSpec | 
 | 
SupportBundleCollection
| Field | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| apiVersionstring | 
crd.antrea.io/v1alpha1
 | ||||||||||||
| kindstring | SupportBundleCollection | ||||||||||||
| metadataKubernetes meta/v1.ObjectMeta | Standard metadata of the object.Refer to the Kubernetes API documentation for the fields of the metadatafield. | ||||||||||||
| specSupportBundleCollectionSpec | Specification of the desired behavior of SupportBundleCollection. 
 | ||||||||||||
| statusSupportBundleCollectionStatus | Most recently observed status of the SupportBundleCollection. | 
Advertisements
(Appears on: BGPPolicySpec)
| Field | Description | 
|---|---|
| serviceServiceAdvertisement | Service specifies how to advertise Service IPs. | 
| podPodAdvertisement | Pod specifies how to advertise Pod IPs. Currently, if this is set, NodeIPAM Pod CIDR instead of specific Pods IPs will be advertised since pod selector is not added yet. | 
| egressEgressAdvertisement | Egress specifies how to advertise Egress IPs. Currently, if this is set, all Egress IPs will be advertised since Egress selector is not added yet. | 
BGPPeer
(Appears on: BGPPolicySpec)
| Field | Description | 
|---|---|
| addressstring | The IP address on which the BGP peer listens. | 
| portint32 | The port number on which the BGP peer listens. The default value is 179, the well-known port of BGP protocol. | 
| asnint32 | The AS number of the BGP peer. | 
| multihopTTLint32 | The Time To Live (TTL) value used in BGP packets sent to the BGP peer. The range of the value is from 1 to 255, and the default value is 1. | 
| gracefulRestartTimeSecondsint32 | GracefulRestartTimeSeconds specifies how long the BGP peer would wait for the BGP session to re-establish after a restart before deleting stale routes. The range of the value is from 1 to 3600, and the default value is 120. | 
BGPPolicySpec
(Appears on: BGPPolicy)
BGPPolicySpec defines the specification for a BGPPolicy.
| Field | Description | 
|---|---|
| nodeSelectorKubernetes meta/v1.LabelSelector | NodeSelector selects Nodes to which the BGPPolicy is applied. If multiple BGPPolicies select a Node, only one will be effective and enforced; others serve as alternatives. | 
| localASNint32 | LocalASN is the AS number used by the BGP process. The available private AS number range is 64512-65535. | 
| listenPortint32 | ListenPort is the port on which the BGP process listens, and the default value is 179. | 
| advertisementsAdvertisements | Advertisements configures IPs or CIDRs to be advertised to BGP peers. | 
| bgpPeers[]BGPPeer | BGPPeers is the list of BGP peers. | 
BundleExternalNodes
(Appears on: SupportBundleCollectionSpec)
| Field | Description | 
|---|---|
| namespacestring | |
| nodeNames[]string | (Optional) List the names of certain ExternalNodes which are expected to collect and upload bundle files. | 
| nodeSelectorKubernetes meta/v1.LabelSelector | (Optional) Select certain ExternalNodes which match the label selector. | 
BundleFileServer
(Appears on: SupportBundleCollectionSpec)
BundleFileServer specifies the bundle file server information.
| Field | Description | 
|---|---|
| urlstring | The URL of the bundle file server. It is set with format: scheme://host[:port][/path], e.g, https://api.example.com:8443/v1/supportbundles/. If scheme is not set, https is used by default. | 
BundleNodes
(Appears on: SupportBundleCollectionSpec)
| Field | Description | 
|---|---|
| nodeNames[]string | (Optional) List the names of certain Nodes which are expected to collect and upload bundle files. | 
| nodeSelectorKubernetes meta/v1.LabelSelector | (Optional) Select certain Nodes which match the label selector. | 
BundleServerAuthConfiguration
(Appears on: SupportBundleCollectionSpec)
BundleServerAuthConfiguration defines the authentication parameters that Antrea uses to access the BundleFileServer.
| Field | Description | 
|---|---|
| authTypeBundleServerAuthType | |
| authSecretKubernetes core/v1.SecretReference | AuthSecret is a Secret reference which stores the authentication value. | 
BundleServerAuthType
(string alias)
(Appears on: BundleServerAuthConfiguration)
BundleServerAuthType defines the authentication type to access the BundleFileServer.
EgressAdvertisement
(Appears on: Advertisements)
ExternalNodeSpec
(Appears on: ExternalNode)
ExternalNodeSpec defines the desired state for ExternalNode.
| Field | Description | 
|---|---|
| interfaces[]NetworkInterface | Only one network interface is supported now. Other interfaces except interfaces[0] will be ignored if there are more than one interfaces. | 
HTTPProtocol
(Appears on: L7Protocol)
HTTPProtocol matches HTTP requests with specific host, method, and path. All fields could be used alone or together. If all fields are not provided, it matches all HTTP requests.
| Field | Description | 
|---|---|
| hoststring | Host represents the hostname present in the URI or the HTTP Host header to match. It does not contain the port associated with the host. | 
| methodstring | Method represents the HTTP method to match. It could be GET, POST, PUT, HEAD, DELETE, TRACE, OPTIONS, CONNECT and PATCH. | 
| pathstring | Path represents the URI path to match (Ex. “/index.html”, “/admin”). | 
IPBlock
IPBlock describes a particular CIDR (Ex. “192.168.1.1⁄24”) that is allowed or denied to/from the workloads matched by a Spec.AppliedTo.
| Field | Description | 
|---|---|
| cidrstring | CIDR is a string representing the IP Block Valid examples are “192.168.1.1⁄24”. | 
L7Protocol
| Field | Description | 
|---|---|
| httpHTTPProtocol | |
| tlsTLSProtocol | 
NamespacedName
NamespacedName refers to a Namespace scoped resource. All fields must be used together.
| Field | Description | 
|---|---|
| namestring | |
| namespacestring | 
NetworkInterface
(Appears on: ExternalNodeSpec)
| Field | Description | 
|---|---|
| namestring | |
| ips[]string | 
NodeLatencyMonitorSpec
(Appears on: NodeLatencyMonitor)
| Field | Description | 
|---|---|
| pingIntervalSecondsint32 | PingInterval specifies the interval in seconds between ping requests. Ping interval should be greater than or equal to 1s. | 
PodAdvertisement
(Appears on: Advertisements)
ServiceAdvertisement
(Appears on: Advertisements)
| Field | Description | 
|---|---|
| ipTypes[]ServiceIPType | IPTypes specifies the types of Service IPs from the selected Services to be advertised. Currently, all Services will be selected since Service selector is not added yet. | 
ServiceIPType
(string alias)
(Appears on: ServiceAdvertisement)
SupportBundleCollectionCondition
(Appears on: SupportBundleCollectionStatus)
SupportBundleCollectionCondition describes the state of a SupportBundleCollection at a certain point.
| Field | Description | 
|---|---|
| typeSupportBundleCollectionConditionType | Type of StatefulSet condition. | 
| statusKubernetes meta/v1.ConditionStatus | Status of the condition, one of True, False, Unknown. | 
| lastTransitionTimeKubernetes meta/v1.Time | (Optional) Last time the condition transitioned from one status to another. | 
| reasonstring | (Optional) The reason for the condition’s last transition. | 
| messagestring | (Optional) A human-readable message indicating details about the transition. | 
SupportBundleCollectionConditionType
(string alias)
(Appears on: SupportBundleCollectionCondition)
SupportBundleCollectionSpec
(Appears on: SupportBundleCollection)
| Field | Description | 
|---|---|
| nodesBundleNodes | |
| externalNodesBundleExternalNodes | |
| expirationMinutesint32 | ExpirationMinutes is the requested duration of validity of the SupportBundleCollection. A SupportBundleCollection will be marked as Failed if it does not finish before expiration. Default is 60. | 
| sinceTimestring | SinceTime specifies a relative time before the current time from which to collect logs A valid value is like: 1d, 2h, 30m. | 
| fileServerBundleFileServer | |
| authenticationBundleServerAuthConfiguration | 
SupportBundleCollectionStatus
(Appears on: SupportBundleCollection)
| Field | Description | 
|---|---|
| collectedNodesint32 | The number of Nodes and ExternalNodes that have completed the SupportBundleCollection. | 
| desiredNodesint32 | The total number of Nodes and ExternalNodes that should process the SupportBundleCollection. | 
| conditions[]SupportBundleCollectionCondition | Represents the latest available observations of a SupportBundleCollection current state. | 
TLSProtocol
(Appears on: L7Protocol)
TLSProtocol matches TLS handshake packets with specific SNI. If the field is not provided, this matches all TLS handshake packets.
| Field | Description | 
|---|---|
| snistring | SNI (Server Name Indication) indicates the server domain name in the TLS/SSL hello message. | 
TraceflowAction
(string alias)
TraceflowComponent
(string alias)
TraceflowPhase
(string alias)
crd.antrea.io/v1alpha2
Resource Types:ExternalEntity
| Field | Description | ||||||
|---|---|---|---|---|---|---|---|
| apiVersionstring | 
crd.antrea.io/v1alpha2
 | ||||||
| kindstring | ExternalEntity | ||||||
| metadataKubernetes meta/v1.ObjectMeta | Standard metadata of the object.Refer to the Kubernetes API documentation for the fields of the metadatafield. | ||||||
| specExternalEntitySpec | Desired state of the external entity. 
 | 
IPPool
IPPool defines one or multiple IP sets that can be used for flexible IPAM feature. For instance, the IPs can be allocated to Pods according to IP pool specified in Deployment annotation.
| Field | Description | ||||
|---|---|---|---|---|---|
| apiVersionstring | 
crd.antrea.io/v1alpha2
 | ||||
| kindstring | IPPool | ||||
| metadataKubernetes meta/v1.ObjectMeta | Standard metadata of the object.Refer to the Kubernetes API documentation for the fields of the metadatafield. | ||||
| specIPPoolSpec | Specification of the IPPool. 
 | ||||
| statusIPPoolStatus | Most recently observed status of the pool. | 
TrafficControl
TrafficControl allows mirroring or redirecting the traffic Pods send or receive. It enables users to monitor and analyze Pod traffic, and to enforce custom network protections for Pods with fine-grained control over network traffic.
| Field | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| apiVersionstring | 
crd.antrea.io/v1alpha2
 | ||||||||||
| kindstring | TrafficControl | ||||||||||
| metadataKubernetes meta/v1.ObjectMeta | Standard metadata of the object.Refer to the Kubernetes API documentation for the fields of the metadatafield. | ||||||||||
| specTrafficControlSpec | Specification of the desired behavior of TrafficControl. 
 | 
AppliedTo
(Appears on: TrafficControlSpec)
AppliedTo selects the entities to which a policy is applied.
| Field | Description | 
|---|---|
| podSelectorKubernetes meta/v1.LabelSelector | (Optional) Select Pods matched by this selector. If set with NamespaceSelector, Pods are matched from Namespaces matched by the NamespaceSelector; otherwise, Pods are matched from all Namespaces. | 
| namespaceSelectorKubernetes meta/v1.LabelSelector | (Optional) Select all Pods from Namespaces matched by this selector. If set with PodSelector, Pods are matched from Namespaces matched by the NamespaceSelector. | 
| groups[]string | (Optional) Groups is the set of ClusterGroup names. | 
Direction
(string alias)
(Appears on: TrafficControlSpec)
ERSPANTunnel
(Appears on: TrafficControlPort)
ERSPANTunnel represents an ERSPAN tunnel. Antrea will create a port on the OVS bridge for the tunnel.
| Field | Description | 
|---|---|
| remoteIPstring | The remote IP of the tunnel. | 
| sessionIDint32 | ERSPAN session ID. | 
| versionint32 | ERSPAN version. | 
| indexint32 | ERSPAN Index. | 
| dirint32 | ERSPAN v2 mirrored traffic’s direction. | 
| hardwareIDint32 | ERSPAN hardware ID. | 
Endpoint
(Appears on: ExternalEntitySpec)
Endpoint refers to an endpoint associated with the ExternalEntity.
| Field | Description | 
|---|---|
| ipstring | IP associated with this endpoint. | 
| namestring | (Optional) Name identifies this endpoint. Could be the network interface name in case of VMs. | 
ExternalEntitySpec
(Appears on: ExternalEntity)
ExternalEntitySpec defines the desired state for ExternalEntity.
| Field | Description | 
|---|---|
| endpoints[]Endpoint | Endpoints is a list of external endpoints associated with this entity. | 
| ports[]NamedPort | Ports maintain the list of named ports. | 
| externalNodestring | ExternalNode is the opaque identifier of the agent/controller responsible for additional processing or handling of this external entity. | 
GRETunnel
(Appears on: TrafficControlPort)
GRETunnel represents a GRE tunnel. Antrea will create a port on the OVS bridge for the tunnel.
| Field | Description | 
|---|---|
| remoteIPstring | The remote IP of the tunnel. | 
| keyint32 | GRE key. | 
IPAddressOwner
(Appears on: IPAddressState)
| Field | Description | 
|---|---|
| podPodOwner | |
| statefulSetStatefulSetOwner | 
IPAddressPhase
(string alias)
(Appears on: IPAddressState)
IPAddressState
(Appears on: IPPoolStatus)
| Field | Description | 
|---|---|
| ipAddressstring | IP Address this entry is tracking | 
| phaseIPAddressPhase | Allocation state - either Allocated or Preallocated | 
| ownerIPAddressOwner | Owner this IP Address is allocated to | 
IPPoolSpec
(Appears on: IPPool)
| Field | Description | 
|---|---|
| ipVersionIPVersion | IP Version for this IP pool - either 4 or 6 | 
| ipRanges[]SubnetIPRange | List IP ranges, along with subnet definition. | 
IPPoolStatus
(Appears on: IPPool)
| Field | Description | 
|---|---|
| ipAddresses[]IPAddressState | |
| usageIPPoolUsage | 
IPPoolUsage
(Appears on: IPPoolStatus)
| Field | Description | 
|---|---|
| totalint | Total number of IPs. | 
| usedint | Number of allocated IPs. | 
IPRange
(Appears on: SubnetIPRange)
IPRange is a set of contiguous IP addresses, represented by a CIDR or a pair of start and end IPs.
| Field | Description | 
|---|---|
| cidrstring | The CIDR of this range, e.g. 10.10.10.0/24. | 
| startstring | The start IP of the range, e.g. 10.10.20.5, inclusive. | 
| endstring | The end IP of the range, e.g. 10.10.20.20, inclusive. | 
IPVersion
(int alias)
(Appears on: IPPoolSpec)
NamedPort
(Appears on: ExternalEntitySpec)
NamedPort describes the port and protocol to match in a rule.
| Field | Description | 
|---|---|
| protocolKubernetes core/v1.Protocol | (Optional) The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. | 
| portint32 | (Optional) The port on the given protocol. | 
| namestring | (Optional) Name associated with the Port. | 
NetworkDevice
(Appears on: TrafficControlPort)
NetworkDevice represents a network device. It must exist on all Nodes. Antrea will attach it to the OVS bridge if it is not attached.
| Field | Description | 
|---|---|
| namestring | The name of the network device. | 
OVSInternalPort
(Appears on: TrafficControlPort)
OVSInternalPort represents an OVS internal port. Antrea will create the port if it doesn’t exist.
| Field | Description | 
|---|---|
| namestring | The name of the OVS internal port. | 
PodOwner
(Appears on: IPAddressOwner)
Pod owner
| Field | Description | 
|---|---|
| namestring | |
| namespacestring | |
| containerIDstring | |
| ifNamestring | Network interface name. Used when the IP is allocated for a secondary network interface of the Pod. | 
StatefulSetOwner
(Appears on: IPAddressOwner)
StatefulSet owner
| Field | Description | 
|---|---|
| namestring | |
| namespacestring | |
| indexint | 
SubnetIPRange
(Appears on: IPPoolSpec)
SubnetIPRange is a set of contiguous IP addresses, represented by a CIDR or a pair of start and end IPs, along with subnet definition.
| Field | Description | 
|---|---|
| IPRangeIPRange | 
(Members of  | 
| SubnetInfoSubnetInfo | 
(Members of  | 
SubnetInfo
(Appears on: SubnetIPRange)
SubnetInfo specifies subnet attributes for IP Range
| Field | Description | 
|---|---|
| gatewaystring | Gateway IP for this subnet, eg. 10.10.1.1 | 
| prefixLengthint32 | Prefix length for the subnet, eg. 24 | 
| vlanuint16 | VLAN ID for this subnet. Default is 0. Valid value is 0~4094. | 
TrafficControlAction
(string alias)
(Appears on: TrafficControlSpec)
TrafficControlPort
(Appears on: TrafficControlSpec)
TrafficControlPort represents a port that can be used as the target of traffic mirroring or redirecting, and the return port of traffic redirecting.
| Field | Description | 
|---|---|
| ovsInternalOVSInternalPort | OVSInternal represents an OVS internal port. | 
| deviceNetworkDevice | Device represents a network device. | 
| geneveUDPTunnel | GENEVE represents a GENEVE tunnel. | 
| vxlanUDPTunnel | VXLAN represents a VXLAN tunnel. | 
| greGRETunnel | GRE represents a GRE tunnel. | 
| erspanERSPANTunnel | ERSPAN represents a ERSPAN tunnel. | 
TrafficControlSpec
(Appears on: TrafficControl)
| Field | Description | 
|---|---|
| appliedToAppliedTo | AppliedTo selects Pods to which the traffic control configuration will be applied. | 
| directionDirection | The direction of traffic that should be matched. It can be Ingress, Egress, or Both. | 
| actionTrafficControlAction | The action that should be taken for the traffic. It can be Redirect or Mirror. | 
| targetPortTrafficControlPort | The port to which the traffic should be redirected or mirrored. | 
| returnPortTrafficControlPort | The port from which the traffic will be sent back to OVS. It should only be set for Redirect action. | 
UDPTunnel
(Appears on: TrafficControlPort)
UDPTunnel represents a UDP based tunnel. Antrea will create a port on the OVS bridge for the tunnel.
| Field | Description | 
|---|---|
| remoteIPstring | The remote IP of the tunnel. | 
| vniint32 | The ID of the tunnel. | 
| destinationPortint32 | The transport layer destination port of the tunnel. If not specified, the assigned IANA port will be used, i.e., 4789 for VXLAN, 6081 for GENEVE. | 
crd.antrea.io/v1beta1
Resource Types:- AntreaAgentInfo
- AntreaControllerInfo
- ClusterGroup
- ClusterNetworkPolicy
- Egress
- ExternalIPPool
- Group
- IPPool
- NetworkPolicy
- Tier
- Traceflow
AntreaAgentInfo
| Field | Description | 
|---|---|
| apiVersionstring | 
crd.antrea.io/v1beta1
 | 
| kindstring | AntreaAgentInfo | 
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | 
| versionstring | Antrea binary version | 
| podRefKubernetes core/v1.ObjectReference | The Pod that Antrea Agent is running in | 
| nodeRefKubernetes core/v1.ObjectReference | The Node that Antrea Agent is running in | 
| nodeSubnets[]string | Node subnets | 
| ovsInfoOVSInfo | OVS Information | 
| networkPolicyControllerInfoNetworkPolicyControllerInfo | Antrea Agent NetworkPolicy information | 
| localPodNumint32 | The number of Pods which the agent is in charge of | 
| agentConditions[]AgentCondition | Agent condition contains types like AgentHealthy | 
| apiPortint | The port of Antrea Agent API Server | 
| apiCABundle[]byte | APICABundle is a PEM encoded CA bundle which can be used to validate the Antrea Agent API server’s certificate. | 
| nodePortLocalPortRangestring | The port range used by NodePortLocal | 
AntreaControllerInfo
| Field | Description | 
|---|---|
| apiVersionstring | 
crd.antrea.io/v1beta1
 | 
| kindstring | AntreaControllerInfo | 
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | 
| versionstring | Antrea binary version | 
| podRefKubernetes core/v1.ObjectReference | The Pod that Antrea Controller is running in | 
| nodeRefKubernetes core/v1.ObjectReference | The Node that Antrea Controller is running in | 
| serviceRefKubernetes core/v1.ObjectReference | Antrea Controller Service | 
| networkPolicyControllerInfoNetworkPolicyControllerInfo | Antrea Controller NetworkPolicy information | 
| connectedAgentNumint32 | Number of agents which are connected to this controller | 
| controllerConditions[]ControllerCondition | Controller condition contains types like ControllerHealthy | 
| apiPortint | The port of antrea controller API Server | 
ClusterGroup
| Field | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| apiVersionstring | 
crd.antrea.io/v1beta1
 | ||||||||||||
| kindstring | ClusterGroup | ||||||||||||
| metadataKubernetes meta/v1.ObjectMeta | Standard metadata of the object.Refer to the Kubernetes API documentation for the fields of the metadatafield. | ||||||||||||
| specGroupSpec | Desired state of the group. 
 | ||||||||||||
| statusGroupStatus | Most recently observed status of the group. | 
ClusterNetworkPolicy
| Field | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| apiVersionstring | 
crd.antrea.io/v1beta1
 | ||||||||||
| kindstring | ClusterNetworkPolicy | ||||||||||
| metadataKubernetes meta/v1.ObjectMeta | Standard metadata of the object.Refer to the Kubernetes API documentation for the fields of the metadatafield. | ||||||||||
| specClusterNetworkPolicySpec | Specification of the desired behavior of ClusterNetworkPolicy. 
 | ||||||||||
| statusNetworkPolicyStatus | Most recently observed status of the NetworkPolicy. | 
Egress
Egress defines which egress (SNAT) IP the traffic from the selected Pods to the external network should use.
| Field | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| apiVersionstring | 
crd.antrea.io/v1beta1
 | ||||||||||||
| kindstring | Egress | ||||||||||||
| metadataKubernetes meta/v1.ObjectMeta | Standard metadata of the object.Refer to the Kubernetes API documentation for the fields of the metadatafield. | ||||||||||||
| specEgressSpec | Specification of the desired behavior of Egress. 
 | ||||||||||||
| statusEgressStatus | EgressStatus represents the current status of an Egress. | 
ExternalIPPool
ExternalIPPool defines one or multiple IP sets that can be used in the external network. For instance, the IPs can be allocated to the Egress resources as the Egress IPs.
| Field | Description | ||||||
|---|---|---|---|---|---|---|---|
| apiVersionstring | 
crd.antrea.io/v1beta1
 | ||||||
| kindstring | ExternalIPPool | ||||||
| metadataKubernetes meta/v1.ObjectMeta | Standard metadata of the object.Refer to the Kubernetes API documentation for the fields of the metadatafield. | ||||||
| specExternalIPPoolSpec | Specification of the ExternalIPPool. 
 | ||||||
| statusExternalIPPoolStatus | The current status of the ExternalIPPool. | 
Group
Group can be used in AntreaNetworkPolicies. When used with AppliedTo, it cannot include NamespaceSelector, otherwise, Antrea will not realize the NetworkPolicy or rule, but will just update the NetworkPolicy Status as “Unrealizable”.
| Field | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| apiVersionstring | 
crd.antrea.io/v1beta1
 | ||||||||||||
| kindstring | Group | ||||||||||||
| metadataKubernetes meta/v1.ObjectMeta | Standard metadata of the object.Refer to the Kubernetes API documentation for the fields of the metadatafield. | ||||||||||||
| specGroupSpec | Desired state of the group. 
 | ||||||||||||
| statusGroupStatus | Most recently observed status of the group. | 
IPPool
IPPool defines one or multiple IP sets that can be used for flexible IPAM feature. For instance, the IPs can be allocated to Pods according to IP pool specified in the Deployment annotation.
| Field | Description | ||||
|---|---|---|---|---|---|
| apiVersionstring | 
crd.antrea.io/v1beta1
 | ||||
| kindstring | IPPool | ||||
| metadataKubernetes meta/v1.ObjectMeta | Standard metadata of the object.Refer to the Kubernetes API documentation for the fields of the metadatafield. | ||||
| specIPPoolSpec | Specification of the IPPool. 
 | ||||
| statusIPPoolStatus | Most recently observed status of the pool. | 
NetworkPolicy
| Field | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| apiVersionstring | 
crd.antrea.io/v1beta1
 | ||||||||||
| kindstring | NetworkPolicy | ||||||||||
| metadataKubernetes meta/v1.ObjectMeta | Standard metadata of the object.Refer to the Kubernetes API documentation for the fields of the metadatafield. | ||||||||||
| specNetworkPolicySpec | Specification of the desired behavior of NetworkPolicy. 
 | ||||||||||
| statusNetworkPolicyStatus | Most recently observed status of the NetworkPolicy. | 
Tier
| Field | Description | ||||
|---|---|---|---|---|---|
| apiVersionstring | 
crd.antrea.io/v1beta1
 | ||||
| kindstring | Tier | ||||
| metadataKubernetes meta/v1.ObjectMeta | Standard metadata of the object.Refer to the Kubernetes API documentation for the fields of the metadatafield. | ||||
| specTierSpec | Specification of the desired behavior of Tier. 
 | 
Traceflow
| Field | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| apiVersionstring | 
crd.antrea.io/v1beta1
 | ||||||||||||
| kindstring | Traceflow | ||||||||||||
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | ||||||||||||
| specTraceflowSpec | 
 | ||||||||||||
| statusTraceflowStatus | 
AgentCondition
(Appears on: AntreaAgentInfo)
| Field | Description | 
|---|---|
| typeAgentConditionType | One of the AgentConditionType listed above | 
| statusKubernetes core/v1.ConditionStatus | Mark certain type status, one of True, False, Unknown | 
| lastHeartbeatTimeKubernetes meta/v1.Time | The timestamp when AntreaAgentInfo is created/updated, ideally heartbeat interval is 60s | 
| reasonstring | Brief reason | 
| messagestring | Human readable message indicating details | 
AgentConditionType
(string alias)
(Appears on: AgentCondition)
AppliedTo
(Appears on: ClusterNetworkPolicySpec, EgressSpec, NetworkPolicySpec, Rule)
AppliedTo describes the grouping selector of workloads in AppliedTo field.
| Field | Description | 
|---|---|
| podSelectorKubernetes meta/v1.LabelSelector | (Optional) Select Pods from NetworkPolicy’s Namespace as workloads in AppliedTo fields. If set with NamespaceSelector, Pods are matched from Namespaces matched by the NamespaceSelector. Cannot be set with any other selector except NamespaceSelector. | 
| namespaceSelectorKubernetes meta/v1.LabelSelector | (Optional) Select all Pods from Namespaces matched by this selector, as workloads in AppliedTo fields. If set with PodSelector, Pods are matched from Namespaces matched by the NamespaceSelector. Cannot be set with any other selector except PodSelector or ExternalEntitySelector. Cannot be set with Namespaces. | 
| externalEntitySelectorKubernetes meta/v1.LabelSelector | (Optional) Select ExternalEntities from NetworkPolicy’s Namespace as workloads in AppliedTo fields. If set with NamespaceSelector, ExternalEntities are matched from Namespaces matched by the NamespaceSelector. Cannot be set with any other selector except NamespaceSelector. | 
| groupstring | (Optional) Group is the name of the ClusterGroup which can be set as an AppliedTo in place of a stand-alone selector. A Group cannot be set with any other selector. | 
| serviceAccountNamespacedName | (Optional) Select all Pods with the ServiceAccount matched by this field, as workloads in AppliedTo fields. Cannot be set with any other selector. | 
| serviceNamespacedName | (Optional) Select a certain Service which matches the NamespacedName. A Service can only be set in either policy level AppliedTo field in a policy that only has ingress rules or rule level AppliedTo field in an ingress rule. Only a NodePort Service can be referred by this field. Cannot be set with any other selector. | 
| nodeSelectorKubernetes meta/v1.LabelSelector | (Optional) Select Nodes in cluster as workloads in AppliedTo fields. Cannot be set with any other selector. | 
Bandwidth
(Appears on: EgressSpec)
| Field | Description | 
|---|---|
| ratestring | Rate specifies the maximum traffic rate. e.g. 300k, 10M | 
| burststring | Burst specifies the maximum burst size when traffic exceeds the rate. e.g. 300k, 10M | 
ClusterGroupReference
(string alias)
(Appears on: GroupSpec)
ClusterGroupReference represent reference to a ClusterGroup.
ClusterNetworkPolicySpec
(Appears on: ClusterNetworkPolicy)
ClusterNetworkPolicySpec defines the desired state for ClusterNetworkPolicy.
| Field | Description | 
|---|---|
| tierstring | Tier specifies the tier to which this ClusterNetworkPolicy belongs to. The ClusterNetworkPolicy order will be determined based on the combination of the Tier’s Priority and the ClusterNetworkPolicy’s own Priority. If not specified, this policy will be created in the Application Tier right above the K8s NetworkPolicy which resides at the bottom. | 
| priorityfloat64 | Priority specfies the order of the ClusterNetworkPolicy relative to other AntreaClusterNetworkPolicies. | 
| appliedTo[]AppliedTo | (Optional) Select workloads on which the rules will be applied to. Cannot be set in conjunction with AppliedTo in each rule. | 
| ingress[]Rule | (Optional) Set of ingress rules evaluated based on the order in which they are set.
Currently Ingress rule supports setting the  | 
| egress[]Rule | (Optional) Set of egress rules evaluated based on the order in which they are set.
Currently Egress rule supports setting the  | 
ControllerCondition
(Appears on: AntreaControllerInfo)
| Field | Description | 
|---|---|
| typeControllerConditionType | One of the ControllerConditionType listed above, controllerHealthy | 
| statusKubernetes core/v1.ConditionStatus | Mark certain type status, one of True, False, Unknown | 
| lastHeartbeatTimeKubernetes meta/v1.Time | The timestamp when AntreaControllerInfo is created/updated, ideally heartbeat interval is 60s | 
| reasonstring | Brief reason | 
| messagestring | Human readable message indicating details | 
ControllerConditionType
(string alias)
(Appears on: ControllerCondition)
Destination
(Appears on: TraceflowSpec)
Destination describes the destination spec of the traceflow.
| Field | Description | 
|---|---|
| namespacestring | Namespace is the destination namespace. | 
| podstring | Pod is the destination pod, exclusive with destination service. | 
| servicestring | Service is the destination service, exclusive with destination pod. | 
| ipstring | IP is the destination IPv4 or IPv6 address. | 
EgressCondition
(Appears on: EgressStatus)
| Field | Description | 
|---|---|
| typeEgressConditionType | |
| statusKubernetes core/v1.ConditionStatus | |
| lastTransitionTimeKubernetes meta/v1.Time | |
| reasonstring | |
| messagestring | 
EgressConditionType
(string alias)
(Appears on: EgressCondition)
EgressSpec
(Appears on: Egress)
EgressSpec defines the desired state for Egress.
| Field | Description | 
|---|---|
| appliedToAppliedTo | AppliedTo selects Pods to which the Egress will be applied. | 
| egressIPstring | EgressIP specifies the SNAT IP address for the selected workloads. If ExternalIPPool is empty, it must be specified manually. If ExternalIPPool is non-empty, it can be empty and will be assigned by Antrea automatically. If both ExternalIPPool and EgressIP are non-empty, the IP must be in the pool. | 
| egressIPs[]string | EgressIPs specifies multiple SNAT IP addresses for the selected workloads. Cannot be set with EgressIP. | 
| externalIPPoolstring | ExternalIPPool specifies the IP Pool that the EgressIP should be allocated from. If it is empty, the specified EgressIP must be assigned to a Node manually. If it is non-empty, the EgressIP will be assigned to a Node specified by the pool automatically and will failover to a different Node when the Node becomes unreachable. | 
| externalIPPools[]string | ExternalIPPools specifies multiple unique IP Pools that the EgressIPs should be allocated from. Entries with the same index in EgressIPs and ExternalIPPools are correlated. Cannot be set with ExternalIPPool. | 
| bandwidthBandwidth | Bandwidth specifies the rate limit of north-south egress traffic of this Egress. | 
EgressStatus
(Appears on: Egress)
EgressStatus represents the current status of an Egress.
| Field | Description | 
|---|---|
| egressNodestring | The name of the Node that holds the Egress IP. | 
| egressIPstring | EgressIP indicates the effective Egress IP for the selected workloads. It could be empty if the Egress IP in spec is not assigned to any Node. It’s also useful when there are more than one Egress IP specified in spec. | 
| conditions[]EgressCondition | 
ExternalIPPoolSpec
(Appears on: ExternalIPPool)
| Field | Description | 
|---|---|
| ipRanges[]IPRange | The IP ranges of this IP pool, e.g. 10.10.0.0/24, 10.10.10.2-10.10.10.20, 10.10.10.30-10.10.10.30. | 
| subnetInfoSubnetInfo | The Subnet info of this IP pool. If set, all IP ranges in the IP pool should share the same subnet attributes. Currently, it’s only used when an IP is allocated from the pool for Egress, and is ignored otherwise. | 
| nodeSelectorKubernetes meta/v1.LabelSelector | The Nodes that the external IPs can be assigned to. If empty, it means all Nodes. | 
ExternalIPPoolStatus
(Appears on: ExternalIPPool)
| Field | Description | 
|---|---|
| usageIPPoolUsage | 
GroupCondition
(Appears on: GroupStatus)
| Field | Description | 
|---|---|
| typeGroupConditionType | |
| statusKubernetes core/v1.ConditionStatus | |
| lastTransitionTimeKubernetes meta/v1.Time | 
GroupConditionType
(string alias)
(Appears on: GroupCondition)
GroupSpec
(Appears on: ClusterGroup, Group)
| Field | Description | 
|---|---|
| podSelectorKubernetes meta/v1.LabelSelector | (Optional) Select Pods matching the labels set in the PodSelector in AppliedTo/To/From fields. If set with NamespaceSelector, Pods are matched from Namespaces matched by the NamespaceSelector. Cannot be set with any other selector except NamespaceSelector. | 
| namespaceSelectorKubernetes meta/v1.LabelSelector | (Optional) Select all Pods from Namespaces matched by this selector, as workloads in AppliedTo/To/From fields. If set with PodSelector, Pods are matched from Namespaces matched by the NamespaceSelector. Cannot be set with any other selector except PodSelector. | 
| ipBlocks[]IPBlock | (Optional) IPBlocks describe the IPAddresses/IPBlocks that are matched in to/from. IPBlocks cannot be set as part of the AppliedTo field. Cannot be set with any other selector or ServiceReference. | 
| serviceReferenceNamespacedName | (Optional) Select backend Pods of the referred Service. Cannot be set with any other selector or ipBlock. | 
| externalEntitySelectorKubernetes meta/v1.LabelSelector | (Optional) Select ExternalEntities from all Namespaces as workloads in AppliedTo/To/From fields. If set with NamespaceSelector, ExternalEntities are matched from Namespaces matched by the NamespaceSelector. Cannot be set with any other selector except NamespaceSelector. | 
| childGroups[]ClusterGroupReference | (Optional) Select other ClusterGroups by name. The ClusterGroups must already exist and must not contain ChildGroups themselves. Cannot be set with any selector/IPBlock/ServiceReference. | 
GroupStatus
(Appears on: ClusterGroup, Group)
GroupStatus represents information about the status of a Group.
| Field | Description | 
|---|---|
| conditions[]GroupCondition | 
HTTPProtocol
(Appears on: L7Protocol)
HTTPProtocol matches HTTP requests with specific host, method, and path. All fields could be used alone or together. If all fields are not provided, it matches all HTTP requests.
| Field | Description | 
|---|---|
| hoststring | Host represents the hostname present in the URI or the HTTP Host header to match. It does not contain the port associated with the host. | 
| methodstring | Method represents the HTTP method to match. It could be GET, POST, PUT, HEAD, DELETE, TRACE, OPTIONS, CONNECT and PATCH. | 
| pathstring | Path represents the URI path to match (Ex. “/index.html”, “/admin”). | 
ICMPEchoRequestHeader
(Appears on: TransportHeader)
ICMPEchoRequestHeader describes spec of an ICMP echo request header.
| Field | Description | 
|---|---|
| idint32 | ID is the ICMPEchoRequestHeader ID. | 
| sequenceint32 | Sequence is the ICMPEchoRequestHeader sequence. | 
ICMPProtocol
(Appears on: NetworkPolicyProtocol)
ICMPProtocol matches ICMP traffic with specific ICMPType and/or ICMPCode. All fields could be used alone or together. If all fields are not provided, this matches all ICMP traffic.
| Field | Description | 
|---|---|
| icmpTypeint32 | |
| icmpCodeint32 | 
IGMPProtocol
(Appears on: NetworkPolicyProtocol)
IGMPProtocol matches IGMP traffic with IGMPType and GroupAddress. IGMPType must be filled with: IGMPQuery int32 = 0x11 IGMPReportV1 int32 = 0x12 IGMPReportV2 int32 = 0x16 IGMPReportV3 int32 = 0x22 If groupAddress is empty, all groupAddresses will be matched.
| Field | Description | 
|---|---|
| igmpTypeint32 | |
| groupAddressstring | 
IPAddressOwner
(Appears on: IPAddressState)
| Field | Description | 
|---|---|
| podPodOwner | |
| statefulSetStatefulSetOwner | 
IPAddressPhase
(string alias)
(Appears on: IPAddressState)
IPAddressState
(Appears on: IPPoolStatus)
| Field | Description | 
|---|---|
| ipAddressstring | IP Address this entry is tracking | 
| phaseIPAddressPhase | Allocation state - either Allocated or Preallocated | 
| ownerIPAddressOwner | Owner this IP Address is allocated to | 
IPBlock
(Appears on: GroupSpec, NetworkPolicyPeer)
IPBlock describes a particular CIDR (Ex. “192.168.1.1⁄24”) that is allowed or denied to/from the workloads matched by a Spec.AppliedTo.
| Field | Description | 
|---|---|
| cidrstring | CIDR is a string representing the IP Block Valid examples are “192.168.1.1⁄24”. | 
IPHeader
(Appears on: Packet)
IPHeader describes spec of an IPv4 header.
| Field | Description | 
|---|---|
| protocolint32 | Protocol is the IP protocol. | 
| ttlint32 | TTL is the IP TTL. | 
| flagsint32 | Flags is the flags for IP. | 
IPPoolSpec
(Appears on: IPPool)
| Field | Description | 
|---|---|
| ipRanges[]IPRange | The IP ranges of this IP pool, e.g. 10.10.0.0/24, 10.10.10.2-10.10.10.20, 10.10.10.30-10.10.10.30. | 
| subnetInfoSubnetInfo | The Subnet info of this IP pool. All the IP ranges in the IP pool should share the same subnet attributes. | 
IPPoolStatus
(Appears on: IPPool)
| Field | Description | 
|---|---|
| ipAddresses[]IPAddressState | |
| usageIPPoolUsage | 
IPPoolUsage
(Appears on: ExternalIPPoolStatus, IPPoolStatus)
| Field | Description | 
|---|---|
| totalint | Total number of IPs. | 
| usedint | Number of allocated IPs. | 
IPRange
(Appears on: ExternalIPPoolSpec, IPPoolSpec)
IPRange is a set of contiguous IP addresses, represented by a CIDR or a pair of start and end IPs.
| Field | Description | 
|---|---|
| cidrstring | The CIDR of this range, e.g. 10.10.10.0/24. | 
| startstring | The start IP of the range, e.g. 10.10.20.5, inclusive. | 
| endstring | The end IP of the range, e.g. 10.10.20.20, inclusive. | 
IPv6Header
(Appears on: Packet)
IPv6Header describes spec of an IPv6 header.
| Field | Description | 
|---|---|
| nextHeaderint32 | NextHeader is the IPv6 protocol. | 
| hopLimitint32 | HopLimit is the IPv6 Hop Limit. | 
L7Protocol
(Appears on: Rule)
| Field | Description | 
|---|---|
| httpHTTPProtocol | |
| tlsTLSProtocol | 
NamespaceMatchType
(string alias)
(Appears on: PeerNamespaces)
NamespaceMatchType describes Namespace matching strategy.
NamespacedName
(Appears on: AppliedTo, GroupSpec, NetworkPolicyPeer)
NamespacedName refers to a Namespace scoped resource. All fields must be used together.
| Field | Description | 
|---|---|
| namestring | |
| namespacestring | 
NetworkPolicyCondition
(Appears on: NetworkPolicyStatus)
NetworkPolicyCondition describes the state of a NetworkPolicy at a certain point.
| Field | Description | 
|---|---|
| typeNetworkPolicyConditionType | Type of StatefulSet condition. | 
| statusKubernetes meta/v1.ConditionStatus | Status of the condition, one of True, False, Unknown. | 
| lastTransitionTimeKubernetes meta/v1.Time | (Optional) Last time the condition transitioned from one status to another. | 
| reasonstring | (Optional) The reason for the condition’s last transition. | 
| messagestring | (Optional) A human-readable message indicating details about the transition. | 
NetworkPolicyConditionType
(string alias)
(Appears on: NetworkPolicyCondition)
NetworkPolicyConditionType describes the condition types of NetworkPolicies.
NetworkPolicyControllerInfo
(Appears on: AntreaAgentInfo, AntreaControllerInfo)
| Field | Description | 
|---|---|
| networkPolicyNumint32 | |
| addressGroupNumint32 | |
| appliedToGroupNumint32 | 
NetworkPolicyPeer
(Appears on: Rule)
NetworkPolicyPeer describes the grouping selector of workloads.
| Field | Description | 
|---|---|
| ipBlockIPBlock | (Optional) IPBlock describes the IPAddresses/IPBlocks that is matched in to/from. IPBlock cannot be set as part of the AppliedTo field. Cannot be set with any other selector. | 
| podSelectorKubernetes meta/v1.LabelSelector | (Optional) Select Pods from NetworkPolicy’s Namespace as workloads in To/From fields. If set with NamespaceSelector, Pods are matched from Namespaces matched by the NamespaceSelector. Cannot be set with any other selector except NamespaceSelector. | 
| namespaceSelectorKubernetes meta/v1.LabelSelector | (Optional) Select all Pods from Namespaces matched by this selector, as workloads in To/From fields. If set with PodSelector, Pods are matched from Namespaces matched by the NamespaceSelector. Cannot be set with any other selector except PodSelector or ExternalEntitySelector. Cannot be set with Namespaces. | 
| namespacesPeerNamespaces | (Optional) Select Pod/ExternalEntity from Namespaces matched by specific criteria. Current supported criteria is match: Self, which selects from the same Namespace of the appliedTo workloads. Cannot be set with any other selector except PodSelector or ExternalEntitySelector. This field can only be set when NetworkPolicyPeer is created for ClusterNetworkPolicy ingress/egress rules. Cannot be set with NamespaceSelector. | 
| externalEntitySelectorKubernetes meta/v1.LabelSelector | (Optional) Select ExternalEntities from NetworkPolicy’s Namespace as workloads in To/From fields. If set with NamespaceSelector, ExternalEntities are matched from Namespaces matched by the NamespaceSelector. Cannot be set with any other selector except NamespaceSelector. | 
| groupstring | Group is the name of the ClusterGroup which can be set within an Ingress or Egress rule in place of a stand-alone selector. A Group cannot be set with any other selector. | 
| fqdnstring | Restrict egress access to the Fully Qualified Domain Names prescribed by name or by wildcard match patterns. This field can only be set for NetworkPolicyPeer of egress rules. Supported formats are: Exact FQDNs such as “google.com”. Wildcard expressions such as “*wayfair.com”. | 
| serviceAccountNamespacedName | (Optional) Select all Pods with the ServiceAccount matched by this field, as workloads in To/From fields. Cannot be set with any other selector. | 
| nodeSelectorKubernetes meta/v1.LabelSelector | (Optional) Select certain Nodes which match the label selector. A NodeSelector cannot be set with any other selector. | 
| scopePeerScope | (Optional) Define scope of the Pod/NamespaceSelector(s) of this peer. Can only be used in ingress NetworkPolicyPeers. Defaults to “Cluster”. | 
NetworkPolicyPhase
(string alias)
(Appears on: NetworkPolicyStatus)
NetworkPolicyPhase defines the phase in which a NetworkPolicy is.
NetworkPolicyPort
(Appears on: Rule)
NetworkPolicyPort describes the port and protocol to match in a rule.
| Field | Description | 
|---|---|
| protocolKubernetes core/v1.Protocol | (Optional) The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. | 
| portk8s.io/apimachinery/pkg/util/intstr.IntOrString | (Optional) The port on the given protocol. This can be either a numerical or named port on a Pod. If this field is not provided, this matches all port names and numbers. | 
| endPortint32 | (Optional) EndPort defines the end of the port range, inclusive.
It can only be specified when a numerical  | 
| sourcePortint32 | (Optional) The source port on the given protocol. This can only be a numerical port. If this field is not provided, rule matches all source ports. | 
| sourceEndPortint32 | (Optional) SourceEndPort defines the end of the source port range, inclusive.
It can only be specified when  | 
NetworkPolicyProtocol
(Appears on: Rule)
NetworkPolicyProtocol defines additional protocols that are not supported by
ports. All fields should be used as a standalone field.
| Field | Description | 
|---|---|
| icmpICMPProtocol | |
| igmpIGMPProtocol | 
NetworkPolicySpec
(Appears on: NetworkPolicy)
NetworkPolicySpec defines the desired state for NetworkPolicy.
| Field | Description | 
|---|---|
| tierstring | Tier specifies the tier to which this NetworkPolicy belongs to. The NetworkPolicy order will be determined based on the combination of the Tier’s Priority and the NetworkPolicy’s own Priority. If not specified, this policy will be created in the Application Tier right above the K8s NetworkPolicy which resides at the bottom. | 
| priorityfloat64 | Priority specfies the order of the NetworkPolicy relative to other NetworkPolicies. | 
| appliedTo[]AppliedTo | (Optional) Select workloads on which the rules will be applied to. Cannot be set in conjunction with AppliedTo in each rule. | 
| ingress[]Rule | (Optional) Set of ingress rules evaluated based on the order in which they are set.
Currently Ingress rule supports setting the  | 
| egress[]Rule | (Optional) Set of egress rules evaluated based on the order in which they are set.
Currently Egress rule supports setting the  | 
NetworkPolicyStatus
(Appears on: ClusterNetworkPolicy, NetworkPolicy)
NetworkPolicyStatus represents information about the status of a NetworkPolicy.
| Field | Description | 
|---|---|
| phaseNetworkPolicyPhase | The phase of a NetworkPolicy is a simple, high-level summary of the NetworkPolicy’s status. | 
| observedGenerationint64 | The generation observed by Antrea. | 
| currentNodesRealizedint32 | The number of nodes that have realized the NetworkPolicy. | 
| desiredNodesRealizedint32 | The total number of nodes that should realize the NetworkPolicy. | 
| conditions[]NetworkPolicyCondition | Represents the latest available observations of a NetworkPolicy current state. | 
NodeResult
(Appears on: TraceflowStatus)
| Field | Description | 
|---|---|
| nodestring | Node is the node of the observation. | 
| rolestring | Role of the node like sender, receiver, etc. | 
| timestampint64 | Timestamp is the timestamp of the observations on the node. | 
| observations[]Observation | Observations includes all observations from sender nodes, receiver ones, etc. | 
OVSInfo
(Appears on: AntreaAgentInfo)
| Field | Description | 
|---|---|
| versionstring | |
| bridgeNamestring | |
| flowTablemap[string]int32 | Key: flow table name, Value: flow number | 
Observation
(Appears on: NodeResult)
Observation describes those from sender nodes or receiver nodes.
| Field | Description | 
|---|---|
| componentTraceflowComponent | Component is the observation component. | 
| componentInfostring | ComponentInfo is the extension of Component field. | 
| actionTraceflowAction | Action is the action to the observation. | 
| podstring | Pod is the combination of Pod name and Pod Namespace. | 
| dstMACstring | DstMAC is the destination MAC. | 
| networkPolicystring | NetworkPolicy is the combination of Namespace and NetworkPolicyName. | 
| networkPolicyRulestring | NetworkPolicyRule is the name of an ingress or an egress rule in NetworkPolicy. | 
| egressstring | Egress is the name of the Egress. | 
| ttlint32 | TTL is the observation TTL. | 
| translatedSrcIPstring | TranslatedSrcIP is the translated source IP. | 
| translatedDstIPstring | TranslatedDstIP is the translated destination IP. | 
| tunnelDstIPstring | TunnelDstIP is the tunnel destination IP. | 
| egressIPstring | |
| egressNodestring | EgressNode is the name of the Egress Node. | 
| srcPodIPstring | SrcPodIP is the IP of source Pod. | 
Packet
(Appears on: TraceflowSpec, TraceflowStatus)
Packet includes header info.
| Field | Description | 
|---|---|
| srcIPstring | |
| dstIPstring | |
| lengthint32 | Length is the IP packet length (includes the IPv4 or IPv6 header length). | 
| ipHeaderIPHeader | |
| ipv6HeaderIPv6Header | |
| transportHeaderTransportHeader | 
PeerNamespaces
(Appears on: NetworkPolicyPeer)
PeerNamespaces describes criteria for selecting Pod/ExternalEntity from matched Namespaces. Only one of the criteria can be set.
| Field | Description | 
|---|---|
| matchNamespaceMatchType | Selects from the same Namespace of the appliedTo workloads. | 
| sameLabels[]string | Selects Namespaces that share the same values for the given set of label keys with the appliedTo Namespace. Namespaces must have all the label keys. | 
PeerScope
(string alias)
(Appears on: NetworkPolicyPeer, PeerService)
PeerService
(Appears on: Rule)
PeerService refers to a Service, which can be a in-cluster Service or imported multi-cluster service.
| Field | Description | 
|---|---|
| namestring | |
| namespacestring | |
| scopePeerScope | 
PodOwner
(Appears on: IPAddressOwner)
Pod owner
| Field | Description | 
|---|---|
| namestring | |
| namespacestring | |
| containerIDstring | |
| ifNamestring | Network interface name. Used when the IP is allocated for a secondary network interface of the Pod. | 
Rule
(Appears on: ClusterNetworkPolicySpec, NetworkPolicySpec)
Rule describes the traffic allowed to/from the workloads selected by Spec.AppliedTo. Based on the action specified in the rule, traffic is either allowed or denied which exactly match the specified ports and protocol.
| Field | Description | 
|---|---|
| actionRuleAction | Action specifies the action to be applied on the rule. | 
| ports[]NetworkPolicyPort | (Optional) Set of ports and protocols matched by the rule. If this field and Protocols are unset or empty, this rule matches all ports. | 
| protocols[]NetworkPolicyProtocol | (Optional) Set of protocols matched by the rule. If this field and Ports are unset or empty, this rule matches all protocols supported. | 
| l7Protocols[]L7Protocol | Set of layer 7 protocols matched by the rule. If this field is set, action can only be Allow. When this field is used in a rule, any traffic matching the other layer 3⁄4 criteria of the rule (typically the 5-tuple) will be forwarded to an application-aware engine for protocol detection and rule enforcement, and the traffic will be allowed if the layer 7 criteria is also matched, otherwise it will be dropped. Therefore, any rules after a layer 7 rule will not be enforced for the traffic. | 
| from[]NetworkPolicyPeer | (Optional) Rule is matched if traffic originates from workloads selected by this field. If this field is empty, this rule matches all sources. | 
| to[]NetworkPolicyPeer | (Optional) Rule is matched if traffic is intended for workloads selected by this field. This field can’t be used with ToServices. If this field and ToServices are both empty or missing this rule matches all destinations. | 
| toServices[]PeerService | (Optional) Rule is matched if traffic is intended for a Service listed in this field. Currently, only ClusterIP types Services are supported in this field. When scope is set to ClusterSet, it matches traffic intended for a multi-cluster Service listed in this field. Service name and Namespace provided should match the original exported Service. This field can only be used when AntreaProxy is enabled. This field can’t be used with To or Ports. If this field and To are both empty or missing, this rule matches all destinations. | 
| namestring | (Optional) Name describes the intention of this rule. Name should be unique within the policy. | 
| enableLoggingbool | (Optional) EnableLogging is used to indicate if agent should generate logs when rules are matched. Should be default to false. | 
| logLabelstring | (Optional) LogLabel is a user-defined arbitrary string which will be printed in the NetworkPolicy logs. | 
| appliedTo[]AppliedTo | (Optional) Select workloads on which this rule will be applied to. Cannot be set in conjunction with NetworkPolicySpec/ClusterNetworkPolicySpec.AppliedTo. | 
RuleAction
(string alias)
(Appears on: NetworkPolicyRule, RuleRef, Rule)
RuleAction describes the action to be applied on traffic matching a rule.
Source
(Appears on: TraceflowSpec)
Source describes the source spec of the traceflow.
| Field | Description | 
|---|---|
| namespacestring | Namespace is the source namespace. | 
| podstring | Pod is the source pod. | 
| ipstring | IP is the source IPv4 or IPv6 address. IP as the source is supported only for live-traffic Traceflow. | 
StatefulSetOwner
(Appears on: IPAddressOwner)
StatefulSet owner
| Field | Description | 
|---|---|
| namestring | |
| namespacestring | |
| indexint | 
SubnetInfo
(Appears on: ExternalIPPoolSpec, IPPoolSpec)
SubnetInfo specifies subnet attributes for IP Range.
| Field | Description | 
|---|---|
| gatewaystring | Gateway IP for this subnet, e.g. 10.10.1.1. | 
| prefixLengthint32 | Prefix length for the subnet, e.g. 24. | 
| vlanint32 | VLAN ID for this subnet. Default is 0. Valid value is 0~4094. | 
TCPHeader
(Appears on: TransportHeader)
TCPHeader describes spec of a TCP header.
| Field | Description | 
|---|---|
| srcPortint32 | SrcPort is the source port. | 
| dstPortint32 | DstPort is the destination port. | 
| flagsint32 | Flags are flags in the header. | 
TLSProtocol
(Appears on: L7Protocol)
TLSProtocol matches TLS handshake packets with specific SNI. If the field is not provided, this matches all TLS handshake packets.
| Field | Description | 
|---|---|
| snistring | SNI (Server Name Indication) indicates the server domain name in the TLS/SSL hello message. | 
TierSpec
(Appears on: Tier)
TierSpec defines the desired state for Tier.
| Field | Description | 
|---|---|
| priorityint32 | Priority specfies the order of the Tier relative to other Tiers. | 
| descriptionstring | Description is an optional field to add more information regarding the purpose of this Tier. | 
TraceflowAction
(string alias)
(Appears on: Observation)
TraceflowComponent
(string alias)
(Appears on: Observation)
TraceflowPhase
(string alias)
(Appears on: TraceflowStatus)
TraceflowSpec
(Appears on: Traceflow)
TraceflowSpec describes the spec of the traceflow.
| Field | Description | 
|---|---|
| sourceSource | |
| destinationDestination | |
| packetPacket | |
| liveTrafficbool | LiveTraffic indicates the Traceflow is to trace the live traffic rather than an injected packet, when set to true. The first packet of the first connection that matches the packet spec will be traced. | 
| droppedOnlybool | DroppedOnly indicates only the dropped packet should be captured in a live-traffic Traceflow. | 
| timeoutint32 | Timeout specifies the timeout of the Traceflow in seconds. Defaults to 20 seconds if not set. | 
TraceflowStatus
(Appears on: Traceflow)
TraceflowStatus describes current status of the traceflow.
| Field | Description | 
|---|---|
| phaseTraceflowPhase | Phase is the Traceflow phase. | 
| reasonstring | Reason is a message indicating the reason of the traceflow’s current phase. | 
| startTimeKubernetes meta/v1.Time | StartTime is the time at which the Traceflow as started by the Antrea Controller. Before K8s v1.20, null values (field not set) are not pruned, and a CR where a metav1.Time field is not set would fail OpenAPI validation (type string). The recommendation seems to be to use a pointer instead, and the field will be omitted when serializing. See https://github.com/kubernetes/kubernetes/issues/86811 | 
| dataplaneTagbyte | DataplaneTag is a tag to identify a traceflow session across Nodes. | 
| results[]NodeResult | Results is the collection of all observations on different nodes. | 
| capturedPacketPacket | CapturedPacket is the captured packet in live-traffic Traceflow. | 
TransportHeader
(Appears on: Packet)
TransportHeader describes spec of a TransportHeader.
| Field | Description | 
|---|---|
| icmpICMPEchoRequestHeader | |
| udpUDPHeader | |
| tcpTCPHeader | 
UDPHeader
(Appears on: TransportHeader)
UDPHeader describes spec of a UDP header.
| Field | Description | 
|---|---|
| srcPortint32 | SrcPort is the source port. | 
| dstPortint32 | DstPort is the destination port. | 
stats.antrea.io/v1alpha1
Package v1alpha1 is the v1alpha1 version of the Antrea Stats API.
Resource Types:- AntreaClusterNetworkPolicyStats
- AntreaNetworkPolicyStats
- MulticastGroup
- NetworkPolicyStats
- NodeLatencyStats
AntreaClusterNetworkPolicyStats
AntreaClusterNetworkPolicyStats is the statistics of a Antrea ClusterNetworkPolicy.
| Field | Description | 
|---|---|
| apiVersionstring | 
stats.antrea.io/v1alpha1
 | 
| kindstring | AntreaClusterNetworkPolicyStats | 
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | 
| trafficStatsTrafficStats | The traffic stats of the Antrea ClusterNetworkPolicy. | 
| ruleTrafficStats[]RuleTrafficStats | The traffic stats of the Antrea ClusterNetworkPolicy, from rule perspective. | 
AntreaNetworkPolicyStats
AntreaNetworkPolicyStats is the statistics of a Antrea NetworkPolicy.
| Field | Description | 
|---|---|
| apiVersionstring | 
stats.antrea.io/v1alpha1
 | 
| kindstring | AntreaNetworkPolicyStats | 
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | 
| trafficStatsTrafficStats | The traffic stats of the Antrea NetworkPolicy. | 
| ruleTrafficStats[]RuleTrafficStats | The traffic stats of the Antrea NetworkPolicy, from rule perspective. | 
MulticastGroup
MulticastGroup contains the mapping between multicast group and Pods.
| Field | Description | 
|---|---|
| apiVersionstring | 
stats.antrea.io/v1alpha1
 | 
| kindstring | MulticastGroup | 
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | 
| groupstring | Group is the IP of the multicast group. | 
| pods[]PodReference | Pods is the list of Pods that have joined the multicast group. | 
NetworkPolicyStats
NetworkPolicyStats is the statistics of a K8s NetworkPolicy.
| Field | Description | 
|---|---|
| apiVersionstring | 
stats.antrea.io/v1alpha1
 | 
| kindstring | NetworkPolicyStats | 
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | 
| trafficStatsTrafficStats | The traffic stats of the K8s NetworkPolicy. | 
NodeLatencyStats
NodeLatencyStats contains all the latency measurements collected by the Agent from a specific Node.
| Field | Description | 
|---|---|
| apiVersionstring | 
stats.antrea.io/v1alpha1
 | 
| kindstring | NodeLatencyStats | 
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | 
| peerNodeLatencyStats[]PeerNodeLatencyStats | The list of PeerNodeLatencyStats. | 
PeerNodeLatencyStats
(Appears on: NodeLatencyStats)
PeerNodeLatencyStats contains the latency stats of a Peer Node.
| Field | Description | 
|---|---|
| nodeNamestring | The Node’s name. | 
| targetIPLatencyStats[]TargetIPLatencyStats | The list of target IP latency stats. | 
PodReference
(Appears on: MulticastGroup)
PodReference represents a Pod Reference.
| Field | Description | 
|---|---|
| namestring | The name of this Pod. | 
| namespacestring | The namespace of this Pod. | 
RuleTrafficStats
(Appears on: AntreaClusterNetworkPolicyStats, AntreaNetworkPolicyStats, NetworkPolicyStats)
RuleTrafficStats contains TrafficStats of single rule inside a NetworkPolicy.
| Field | Description | 
|---|---|
| namestring | |
| trafficStatsTrafficStats | 
TargetIPLatencyStats
(Appears on: PeerNodeLatencyStats)
TargetIPLatencyStats contains the latency stats of a target IP.
| Field | Description | 
|---|---|
| targetIPstring | The target IP address. | 
| lastSendTimeKubernetes meta/v1.Time | The timestamp of the last sent packet. | 
| lastRecvTimeKubernetes meta/v1.Time | The timestamp of the last received packet. | 
| lastMeasuredRTTNanosecondsint64 | The last measured RTT for this target IP, in nanoseconds. | 
TrafficStats
(Appears on: AntreaClusterNetworkPolicyStats, AntreaNetworkPolicyStats, NetworkPolicyStats, NetworkPolicyStats, RuleTrafficStats)
TrafficStats contains the traffic stats of a NetworkPolicy.
| Field | Description | 
|---|---|
| packetsint64 | Packets is the packets count hit by the NetworkPolicy. | 
| bytesint64 | Bytes is the bytes count hit by the NetworkPolicy. | 
| sessionsint64 | Sessions is the sessions count hit by the NetworkPolicy. | 
system.antrea.io/v1beta1
Package v1beta1 contains the v1beta1 version of the Antrea “system” API group definitions.
Resource Types:SupportBundle
| Field | Description | 
|---|---|
| apiVersionstring | 
system.antrea.io/v1beta1
 | 
| kindstring | SupportBundle | 
| metadataKubernetes meta/v1.ObjectMeta | Refer to the Kubernetes API documentation for the fields of the metadatafield. | 
| statusBundleStatus | |
| sumstring | |
| sincestring | |
| sizeuint32 | |
| -string | 
BundleStatus
(string alias)
(Appears on: SupportBundle)
Generated with gen-crd-api-reference-docs
on git commit b7fec11.