Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support simple ping mesh in agent. #6120

Merged
merged 18 commits into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions build/charts/antrea/conf/antrea-agent.conf
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ featureGates:
# Enable L7FlowExporter on Pods and Namespaces to export the application layer flows such as HTTP flows.
{{- include "featureGate" (dict "featureGates" .Values.featureGates "name" "L7FlowExporter" "default" false) }}

# Enable NodeLatencyMonitor to monitor the latency between Nodes.
{{- include "featureGate" (dict "featureGates" .Values.featureGates "name" "NodeLatencyMonitor" "default" false) }}

# Name of the OpenVSwitch bridge antrea-agent will create and use.
# Make sure it doesn't conflict with your existing OpenVSwitch bridges.
ovsBridge: {{ .Values.ovs.bridgeName | quote }}
Expand Down
48 changes: 48 additions & 0 deletions build/charts/antrea/crds/nodelatencymonitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: nodelatencymonitors.crd.antrea.io
spec:
group: crd.antrea.io
versions:
- name: v1alpha1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
required:
- spec
properties:
spec:
type: object
required:
- pingIntervalSeconds
properties:
pingIntervalSeconds:
type: integer
format: int32
minimum: 1
description: "Ping interval in seconds, must be at least 1."
default: 60
metadata:
type: object
properties:
name:
type: string
pattern: '^default$'
additionalPrinterColumns:
- description: Specifies the interval between pings.
jsonPath: .spec.pingIntervalSeconds
name: PingIntervalSeconds
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
scope: Cluster
names:
plural: nodelatencymonitors
singular: nodelatencymonitor
kind: NodeLatencyMonitor
shortNames:
- nlm
1 change: 1 addition & 0 deletions build/charts/antrea/templates/agent/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ rules:
- externalippools
- ippools
- trafficcontrols
- nodelatencymonitors
verbs:
- get
- watch
Expand Down
59 changes: 57 additions & 2 deletions build/yamls/antrea-aks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2686,6 +2686,57 @@ spec:
# Deprecated shortName and shall be removed in Antrea v1.14.0
- anp

---
# Source: crds/nodelatencymonitor.yaml
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: nodelatencymonitors.crd.antrea.io
spec:
group: crd.antrea.io
versions:
- name: v1alpha1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
required:
- spec
properties:
spec:
type: object
required:
- pingIntervalSeconds
properties:
pingIntervalSeconds:
type: integer
format: int32
minimum: 1
description: "Ping interval in seconds, must be at least 1."
default: 60
metadata:
type: object
properties:
name:
type: string
pattern: '^default$'
additionalPrinterColumns:
- description: Specifies the interval between pings.
jsonPath: .spec.pingIntervalSeconds
name: PingIntervalSeconds
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
scope: Cluster
names:
plural: nodelatencymonitors
singular: nodelatencymonitor
kind: NodeLatencyMonitor
shortNames:
- nlm

---
# Source: crds/supportbundlecollection.yaml
apiVersion: apiextensions.k8s.io/v1
Expand Down Expand Up @@ -3624,6 +3675,9 @@ data:
# Enable L7FlowExporter on Pods and Namespaces to export the application layer flows such as HTTP flows.
# L7FlowExporter: false

# Enable NodeLatencyMonitor to monitor the latency between Nodes.
# NodeLatencyMonitor: false

# Name of the OpenVSwitch bridge antrea-agent will create and use.
# Make sure it doesn't conflict with your existing OpenVSwitch bridges.
ovsBridge: "br-int"
Expand Down Expand Up @@ -4259,6 +4313,7 @@ rules:
- externalippools
- ippools
- trafficcontrols
- nodelatencymonitors
verbs:
- get
- watch
Expand Down Expand Up @@ -4920,7 +4975,7 @@ spec:
kubectl.kubernetes.io/default-container: antrea-agent
# Automatically restart Pods with a RollingUpdate if the ConfigMap changes
# See https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
checksum/config: 30843b57762c91dfcffb560917191e3bc7e662c06552759bac2a173bc060b82c
checksum/config: 47a8888bb99a5b1a08dea61e9315bacf613d869d718712ad0eb9964bb73dc0ec
labels:
app: antrea
component: antrea-agent
Expand Down Expand Up @@ -5158,7 +5213,7 @@ spec:
annotations:
# Automatically restart Pod if the ConfigMap changes
# See https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
checksum/config: 30843b57762c91dfcffb560917191e3bc7e662c06552759bac2a173bc060b82c
checksum/config: 47a8888bb99a5b1a08dea61e9315bacf613d869d718712ad0eb9964bb73dc0ec
labels:
app: antrea
component: antrea-controller
Expand Down
49 changes: 49 additions & 0 deletions build/yamls/antrea-crds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2667,6 +2667,55 @@ spec:
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: nodelatencymonitors.crd.antrea.io
spec:
group: crd.antrea.io
versions:
- name: v1alpha1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
required:
- spec
properties:
spec:
type: object
required:
- pingIntervalSeconds
properties:
pingIntervalSeconds:
type: integer
format: int32
minimum: 1
description: "Ping interval in seconds, must be at least 1."
default: 60
metadata:
type: object
properties:
name:
type: string
pattern: '^default$'
additionalPrinterColumns:
- description: Specifies the interval between pings.
jsonPath: .spec.pingIntervalSeconds
name: PingIntervalSeconds
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
scope: Cluster
names:
plural: nodelatencymonitors
singular: nodelatencymonitor
kind: NodeLatencyMonitor
shortNames:
- nlm
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: supportbundlecollections.crd.antrea.io
spec:
Expand Down
59 changes: 57 additions & 2 deletions build/yamls/antrea-eks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2686,6 +2686,57 @@ spec:
# Deprecated shortName and shall be removed in Antrea v1.14.0
- anp

---
# Source: crds/nodelatencymonitor.yaml
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: nodelatencymonitors.crd.antrea.io
spec:
group: crd.antrea.io
versions:
- name: v1alpha1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
required:
- spec
properties:
spec:
type: object
required:
- pingIntervalSeconds
properties:
pingIntervalSeconds:
type: integer
format: int32
minimum: 1
description: "Ping interval in seconds, must be at least 1."
default: 60
metadata:
type: object
properties:
name:
type: string
pattern: '^default$'
additionalPrinterColumns:
- description: Specifies the interval between pings.
jsonPath: .spec.pingIntervalSeconds
name: PingIntervalSeconds
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
scope: Cluster
names:
plural: nodelatencymonitors
singular: nodelatencymonitor
kind: NodeLatencyMonitor
shortNames:
- nlm

---
# Source: crds/supportbundlecollection.yaml
apiVersion: apiextensions.k8s.io/v1
Expand Down Expand Up @@ -3624,6 +3675,9 @@ data:
# Enable L7FlowExporter on Pods and Namespaces to export the application layer flows such as HTTP flows.
# L7FlowExporter: false

# Enable NodeLatencyMonitor to monitor the latency between Nodes.
# NodeLatencyMonitor: false

# Name of the OpenVSwitch bridge antrea-agent will create and use.
# Make sure it doesn't conflict with your existing OpenVSwitch bridges.
ovsBridge: "br-int"
Expand Down Expand Up @@ -4259,6 +4313,7 @@ rules:
- externalippools
- ippools
- trafficcontrols
- nodelatencymonitors
verbs:
- get
- watch
Expand Down Expand Up @@ -4920,7 +4975,7 @@ spec:
kubectl.kubernetes.io/default-container: antrea-agent
# Automatically restart Pods with a RollingUpdate if the ConfigMap changes
# See https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
checksum/config: 30843b57762c91dfcffb560917191e3bc7e662c06552759bac2a173bc060b82c
checksum/config: 47a8888bb99a5b1a08dea61e9315bacf613d869d718712ad0eb9964bb73dc0ec
labels:
app: antrea
component: antrea-agent
Expand Down Expand Up @@ -5159,7 +5214,7 @@ spec:
annotations:
# Automatically restart Pod if the ConfigMap changes
# See https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
checksum/config: 30843b57762c91dfcffb560917191e3bc7e662c06552759bac2a173bc060b82c
checksum/config: 47a8888bb99a5b1a08dea61e9315bacf613d869d718712ad0eb9964bb73dc0ec
labels:
app: antrea
component: antrea-controller
Expand Down
Loading
Loading