forked from antrea-io/antrea
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
18 changed files
with
363 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM golang:1.15 as flow-aggregator-build | ||
|
||
LABEL maintainer="Antrea <[email protected]>" | ||
LABEL description="The docker image for flow aggregator" | ||
|
||
WORKDIR /antrea | ||
|
||
COPY . /antrea | ||
|
||
RUN make flow-aggregator | ||
|
||
FROM antrea/base-ubuntu:2.14.0 | ||
|
||
USER root | ||
|
||
COPY --from=flow-aggregator-build /antrea/bin/flow-aggregator /usr/local/bin/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
apiVersion: v1 | ||
data: | ||
flow-aggregator.conf: |- | ||
# Provide the flow collector address as string with format <IP>:<port>[:<proto>], where proto is tcp or udp. | ||
# If no L4 transport proto is given, we consider tcp as default. | ||
# Defaults to "". | ||
flowCollectorAddr: "" | ||
# Provide flow export interval as a duration string. This determines how often the flow aggregator exports flow | ||
# records to the flow collector. | ||
# Flow export interval should be greater than or equal to 1s (one second). | ||
# Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". | ||
# Defaults to "60s". | ||
flowExportInterval: 60s | ||
kind: ConfigMap | ||
metadata: | ||
labels: | ||
app: flow-aggregator | ||
name: flow-aggregator-configmap-ht56gf55k8 | ||
namespace: flow-aggregator | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: flow-aggregator | ||
name: flow-aggregator | ||
namespace: flow-aggregator | ||
spec: | ||
ports: | ||
- port: 4739 | ||
protocol: UDP | ||
targetPort: 4739 | ||
selector: | ||
app: flow-aggregator | ||
type: NodePort | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: flow-aggregator | ||
name: flow-aggregator | ||
namespace: flow-aggregator | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: flow-aggregator | ||
template: | ||
metadata: | ||
labels: | ||
app: flow-aggregator | ||
spec: | ||
containers: | ||
- args: | ||
- --config | ||
- /etc/flow-aggregator/flow-aggregator.conf | ||
- --logtostderr=false | ||
- --log_dir=/var/log/flowaggregator | ||
- --alsologtostderr | ||
- --log_file_max_size=100 | ||
- --log_file_max_num=4 | ||
- --v=0 | ||
command: | ||
- flow-aggregator | ||
image: antrea/flow-aggregator | ||
imagePullPolicy: IfNotPresent | ||
name: flow-aggregator | ||
ports: | ||
- containerPort: 4739 | ||
volumeMounts: | ||
- mountPath: /etc/flow-aggregator/flow-aggregator.conf | ||
name: flow-aggregator-config | ||
readOnly: true | ||
subPath: flow-aggregator.conf | ||
volumes: | ||
- configMap: | ||
name: flow-aggregator-configmap-ht56gf55k8 | ||
name: flow-aggregator-config |
11 changes: 11 additions & 0 deletions
11
build/yamls/flow-aggregator/base/conf/flow-aggregator.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Provide the flow collector address as string with format <IP>:<port>[:<proto>], where proto is tcp or udp. | ||
# If no L4 transport proto is given, we consider tcp as default. | ||
# Defaults to "". | ||
flowCollectorAddr: "" | ||
|
||
# Provide flow export interval as a duration string. This determines how often the flow aggregator exports flow | ||
# records to the flow collector. | ||
# Flow export interval should be greater than or equal to 1s (one second). | ||
# Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". | ||
# Defaults to "60s". | ||
flowExportInterval: 60s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: flow-aggregator | ||
namespace: flow-aggregator | ||
spec: | ||
selector: | ||
app: flow-aggregator | ||
type: NodePort | ||
ports: | ||
- port: 4739 | ||
protocol: UDP | ||
targetPort: 4739 | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: flow-aggregator | ||
namespace: flow-aggregator | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: flow-aggregator | ||
template: | ||
spec: | ||
containers: | ||
- args: | ||
- --config | ||
- /etc/flow-aggregator/flow-aggregator.conf | ||
- --logtostderr=false | ||
- --log_dir=/var/log/flowaggregator | ||
- --alsologtostderr | ||
- --log_file_max_size=100 | ||
- --log_file_max_num=4 | ||
- --v=0 | ||
command: | ||
- flow-aggregator | ||
name: flow-aggregator | ||
image: antrea/flow-aggregator | ||
ports: | ||
- containerPort: 4739 | ||
volumeMounts: | ||
- mountPath: /etc/flow-aggregator/flow-aggregator.conf | ||
name: flow-aggregator-config | ||
readOnly: true | ||
subPath: flow-aggregator.conf | ||
volumes: | ||
- name: flow-aggregator-config | ||
configMap: | ||
name: flow-aggregator-configmap | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
resources: | ||
- flow-aggregator.yml | ||
configMapGenerator: | ||
- files: | ||
- conf/flow-aggregator.conf | ||
name: flow-aggregator-configmap | ||
commonLabels: | ||
app: flow-aggregator | ||
namespace: flow-aggregator | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization |
11 changes: 11 additions & 0 deletions
11
build/yamls/flow-aggregator/patches/dev/imagePullPolicy.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: flow-aggregator | ||
namespace: flow-aggregator | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: flow-aggregator | ||
imagePullPolicy: IfNotPresent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# placeholder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.