diff options
author | Stephen Wong <stephen.kf.wong@gmail.com> | 2019-04-24 07:11:22 +0000 |
---|---|---|
committer | Stephen Wong <stephen.kf.wong@gmail.com> | 2019-04-26 05:13:09 +0000 |
commit | 1e38924a4e1be10c77af7c6c83141da62a987ece (patch) | |
tree | f5211388ead40b6141b71ce4c14a4f4e2a8c1486 | |
parent | ce8578f13d1c27d66c12ba07a3439fc453bde8cf (diff) |
Moving Clovisor dependent services into clovisor namespace
Change-Id: I6fde9161896115b5acd460cd7457df1a59ee1f6e
Signed-off-by: Stephen Wong <stephen.kf.wong@gmail.com>
-rwxr-xr-x | clover/clovisor/bin/clovisor | bin | 46391480 -> 46391472 bytes | |||
-rw-r--r-- | clover/clovisor/libclovisor/clovisor_bcc.go | 3 | ||||
-rw-r--r-- | clover/clovisor/libclovisor/clovisor_cfg.go | 14 | ||||
-rw-r--r-- | clover/clovisor/libclovisor/clovisor_k8s.go | 8 | ||||
-rw-r--r-- | clover/clovisor/libclovisor/jaeger-all-in-one-template.yml | 10 | ||||
-rw-r--r-- | clover/clovisor/libclovisor/redis.yaml | 8 |
6 files changed, 23 insertions, 20 deletions
diff --git a/clover/clovisor/bin/clovisor b/clover/clovisor/bin/clovisor Binary files differindex a683ee6..9d05b48 100755 --- a/clover/clovisor/bin/clovisor +++ b/clover/clovisor/bin/clovisor diff --git a/clover/clovisor/libclovisor/clovisor_bcc.go b/clover/clovisor/libclovisor/clovisor_bcc.go index a6c74ef..8f9a7bf 100644 --- a/clover/clovisor/libclovisor/clovisor_bcc.go +++ b/clover/clovisor/libclovisor/clovisor_bcc.go @@ -666,6 +666,9 @@ func setupNodeIntf(ifindex int) (*nodeIntf, error) { return nil, err } + ip_track_table.DeleteAll() + node_sess_table.DeleteAll() + return &nodeIntf{ bpfMod: bpf_mod, ipTrackTable: ip_track_table, diff --git a/clover/clovisor/libclovisor/clovisor_cfg.go b/clover/clovisor/libclovisor/clovisor_cfg.go index 9c552da..ca3200e 100644 --- a/clover/clovisor/libclovisor/clovisor_cfg.go +++ b/clover/clovisor/libclovisor/clovisor_cfg.go @@ -22,9 +22,9 @@ import ( jaeger_config "github.com/uber/jaeger-client-go/config" ) -var redisServer string = "redis.clover-system" -var jaegerCollector string = "jaeger-collector.clover-system:14268" -var jaegerAgent string = "jaeger-agent.clover-system:6831" +var redisServer string = "redis.clovisor" +var jaegerCollector string = "jaeger-collector.clovisor:14268" +var jaegerAgent string = "jaeger-agent.clovisor:6831" var ProtoCfg string = "clovisor_proto_cfg" var protoPluginCfgChan string = "clovisor_proto_plugin_cfg_chan" @@ -52,6 +52,14 @@ func get_cfg_labels(node_name string) ([]string, error) { return labels_list, err } +func parse_label_cfg(label_cfg string) (string, string, string) { + label_slice := strings.Split(label_cfg, ":") + if len(label_slice) == 1 { + return label_slice[0], "", "" + } + return label_slice[0], label_slice[1], label_slice[2] +} + func get_egress_match_list(pod_name string) ([]egress_match_t) { client := redisConnect() defer client.Close() diff --git a/clover/clovisor/libclovisor/clovisor_k8s.go b/clover/clovisor/libclovisor/clovisor_k8s.go index 9587437..a53e308 100644 --- a/clover/clovisor/libclovisor/clovisor_k8s.go +++ b/clover/clovisor/libclovisor/clovisor_k8s.go @@ -60,14 +60,6 @@ func K8s_client_init(nodeName string) (*ClovisorK8s, error) { }, nil } -func parse_label_cfg(label_cfg string) (string, string, string) { - label_slice := strings.Split(label_cfg, ":") - if len(label_slice) == 1 { - return label_slice[0], "", "" - } - return label_slice[0], label_slice[1], label_slice[2] -} - func (client *ClovisorK8s) Get_monitoring_info(nodeName string) (map[string]*monitoring_info_t, error) { diff --git a/clover/clovisor/libclovisor/jaeger-all-in-one-template.yml b/clover/clovisor/libclovisor/jaeger-all-in-one-template.yml index 0ae3870..1260ef5 100644 --- a/clover/clovisor/libclovisor/jaeger-all-in-one-template.yml +++ b/clover/clovisor/libclovisor/jaeger-all-in-one-template.yml @@ -19,7 +19,7 @@ items: kind: Deployment metadata: name: jaeger-deployment - namespace: clover-system + namespace: clovisor labels: app: jaeger jaeger-infra: jaeger-deployment @@ -64,7 +64,7 @@ items: kind: Service metadata: name: jaeger-query - namespace: clover-system + namespace: clovisor labels: app: jaeger jaeger-infra: jaeger-service @@ -81,7 +81,7 @@ items: kind: Service metadata: name: jaeger-collector - namespace: clover-system + namespace: clovisor labels: app: jaeger jaeger-infra: collector-service @@ -106,7 +106,7 @@ items: kind: Service metadata: name: jaeger-agent - namespace: clover-system + namespace: clovisor labels: app: jaeger jaeger-infra: agent-service @@ -135,7 +135,7 @@ items: kind: Service metadata: name: zipkin - namespace: clover-system + namespace: clovisor labels: app: jaeger jaeger-infra: zipkin-service diff --git a/clover/clovisor/libclovisor/redis.yaml b/clover/clovisor/libclovisor/redis.yaml index 8f99326..43204ff 100644 --- a/clover/clovisor/libclovisor/redis.yaml +++ b/clover/clovisor/libclovisor/redis.yaml @@ -1,9 +1,9 @@ apiVersion: v1 kind: Namespace metadata: - name: clover-system + name: clovisor labels: - name: clover-system + name: clovisor --- apiVersion: v1 kind: Pod @@ -13,7 +13,7 @@ metadata: redis-sentinel: "true" role: master name: redis - namespace: clover-system + namespace: clovisor spec: containers: - name: redis @@ -44,7 +44,7 @@ apiVersion: v1 kind: Service metadata: name: redis - namespace: clover-system + namespace: clovisor spec: ports: - port: 6379 |