Skip to content

Commit

Permalink
LFX mentorship task
Browse files Browse the repository at this point in the history
Signed-off-by: freedisch <freeproduc@gmail.com>
  • Loading branch information
Freedisch committed Feb 13, 2024
1 parent cb8b783 commit fca4759
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 0 deletions.
11 changes: 11 additions & 0 deletions agent1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
I0212 14:39:33.624528 1 log_file.go:93] Set log file max size to 104857600
I0212 14:39:33.624987 1 agent.go:104] GithubID="Freedisch" podname="antrea-agent-rxpj9"
I0212 14:39:33.625433 1 agent.go:104] "Starting Antrea agent" version="v2.0.0-dev-84e23bc"
I0212 14:39:33.625475 1 client.go:89] No kubeconfig file was specified. Falling back to in-cluster config
I0212 14:39:33.627183 1 prometheus.go:189] Initializing prometheus metrics
I0212 14:39:33.630847 1 ovs_client.go:71] Connecting to OVSDB at address /var/run/openvswitch/db.sock
I0212 14:39:34.631721 1 ovs_client.go:90] Not connected yet, will try again in 2s
I0212 14:39:34.632712 1 agent.go:412] Setting up node network
I0212 14:39:34.632942 1 discoverer.go:82] Starting ServiceCIDRDiscoverer
I0212 14:39:34.646000 1 agent.go:1023] "Got Interface MTU" MTU=65485
I0212 14:39:34.647025 1 ovs_client.go:122] Created bridge: b2072b5e-8123-4112-bcf4-00eca372b5dd
11 changes: 11 additions & 0 deletions angent2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
I0212 14:39:35.732897 1 log_file.go:93] Set log file max size to 104857600
I0212 14:39:35.733664 1 agent.go:104] GithubID="Freedisch" podname="antrea-agent-tpsfb"
I0212 14:39:35.734584 1 agent.go:104] "Starting Antrea agent" version="v2.0.0-dev-84e23bc"
I0212 14:39:35.734651 1 client.go:89] No kubeconfig file was specified. Falling back to in-cluster config
I0212 14:39:35.737862 1 prometheus.go:189] Initializing prometheus metrics
I0212 14:39:35.738054 1 ovs_client.go:71] Connecting to OVSDB at address /var/run/openvswitch/db.sock
I0212 14:39:36.738781 1 ovs_client.go:90] Not connected yet, will try again in 2s
I0212 14:39:36.739521 1 agent.go:412] Setting up node network
I0212 14:39:36.739791 1 discoverer.go:82] Starting ServiceCIDRDiscoverer
I0212 14:39:36.747142 1 agent.go:1023] "Got Interface MTU" MTU=65485
I0212 14:39:36.747992 1 ovs_client.go:122] Created bridge: de3edc24-cf58-4958-9025-babb05a93948
2 changes: 2 additions & 0 deletions antrea-version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
antctlVersion: v1.15.0
controllerVersion: v2.0.0-dev-84e23bc7.dirty
2 changes: 2 additions & 0 deletions cmd/antrea-agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ import (
"antrea.io/antrea/pkg/ovs/ovsctl"
"antrea.io/antrea/pkg/signals"
"antrea.io/antrea/pkg/util/channel"
"antrea.io/antrea/pkg/util/env"
"antrea.io/antrea/pkg/util/k8s"
"antrea.io/antrea/pkg/util/lazy"
"antrea.io/antrea/pkg/util/podstore"
Expand All @@ -101,6 +102,7 @@ var ipv4Localhost = net.ParseIP("127.0.0.1")

// run starts Antrea agent with the given options and waits for termination signal.
func run(o *Options) error {
klog.InfoS("GithubID", env.GithubID, "podname", env.GetPodName())
klog.InfoS("Starting Antrea agent", "version", version.GetFullVersion())

// Create K8s Clientset, CRD Clientset, Multicluster CRD Clientset and SharedInformerFactory for the given config.
Expand Down
1 change: 1 addition & 0 deletions cmd/antrea-controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ var allowedPaths = []string{

// run starts Antrea Controller with the given options and waits for termination signal.
func run(o *Options) error {
klog.InfoS("GithubID", env.GithubID, "podname", env.GetPodName())
klog.Infof("Starting Antrea Controller (version %s)", version.GetFullVersion())
// Create K8s Clientset, Aggregator Clientset, CRD Clientset and SharedInformerFactory for the given config.
// Aggregator Clientset is used to update the CABundle of the APIServices backed by antrea-controller so that
Expand Down
11 changes: 11 additions & 0 deletions controller.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
I0212 14:40:04.513831 1 log_file.go:93] Set log file max size to 104857600
I0212 14:40:04.514123 1 controller.go:124] GithubID="Freedisch" podname="antrea-controller-5dd5c48988-nlfbg"
I0212 14:40:04.514589 1 controller.go:124] Starting Antrea Controller (version v2.0.0-dev-84e23bc)
I0212 14:40:04.514623 1 client.go:89] No kubeconfig file was specified. Falling back to in-cluster config
E0212 14:40:04.523061 1 selfsignedcert_provider.go:231] "Didn't get valid certificate and key from Secret, will generate a new one" err="secrets \"antrea-controller-tls\" is forbidden: User \"system:serviceaccount:kube-system:antrea-controller\" cannot get resource \"secrets\" in API group \"\" in the namespace \"kube-system\"" secret="antrea-controller-tls"
I0212 14:40:04.524321 1 selfsignedcert_provider.go:235] "Generating self-signed cert"
I0212 14:40:04.939082 1 selfsignedcert_provider.go:251] "Writing certificate and key to the cert directory"
I0212 14:40:05.543562 1 prometheus.go:124] Initializing prometheus metrics
I0212 14:40:05.543691 1 controller.go:152] "Starting" controller="EgressController"
I0212 14:40:05.543712 1 shared_informer.go:270] Waiting for caches to sync for EgressController
I0212 14:40:05.543731 1 group_entity_index.go:668] Starting GroupEntityIndex
2 changes: 2 additions & 0 deletions ovs-version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ovs-vsctl (Open vSwitch) 2.17.7
DB Schema 8.3.0
1 change: 1 addition & 0 deletions pkg/util/env/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
)

const (
GithubID = "Freedisch"
NodeNameEnvKey = "NODE_NAME"
podNameEnvKey = "POD_NAME"
podNamespaceEnvKey = "POD_NAMESPACE"
Expand Down

0 comments on commit fca4759

Please sign in to comment.