File tree Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ func (care *LvsCare) SyncRouter() error {
72
72
73
73
func SetTargetIP () error {
74
74
if LVS .TargetIP == nil {
75
- LVS .TargetIP = net .ParseIP (os .Getenv ("NODE_IP " ))
75
+ LVS .TargetIP = net .ParseIP (os .Getenv ("LVSCARE_NODE_IP " ))
76
76
}
77
77
return nil
78
78
}
Original file line number Diff line number Diff line change @@ -25,31 +25,17 @@ spec:
25
25
name : kube-sealyun-lvscare
26
26
resources : {}
27
27
env :
28
- - name : NODE_IP
28
+ - name : LVSCARE_NODE_IP
29
29
value : 172.16.81.61
30
30
securityContext :
31
31
privileged : true
32
32
volumeMounts :
33
- - mountPath : /root/.kube/config
34
- name : kubeconfig
35
- readOnly : true
36
33
- mountPath : /lib/modules
37
34
name : lib-modules
38
35
readOnly : true
39
- - mountPath : /usr/bin/lvscare-test
40
- name : lvscare
41
- readOnly : false
42
36
hostNetwork : true
43
37
volumes :
44
- - hostPath :
45
- path : /etc/kubernetes/kubelet.conf
46
- type : " "
47
- name : kubeconfig
48
38
- hostPath :
49
39
path : /lib/modules
50
40
type : " "
51
41
name : lib-modules
52
- - hostPath :
53
- path : /root/lvscare
54
- type : " "
55
- name : lvscare
You can’t perform that action at this time.
0 commit comments