File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ func (s *SealosInstaller) InstallMaster0() {
84
84
}
85
85
//cmd = `kubectl apply -f /root/kube/conf/net/calico.yaml || true`
86
86
netyaml := net .NewNetwork (Network , net.MetaData {Interface :Interface ,CIDR :PodCIDR }).Manifests ("" )
87
- cmd = fmt .Sprintf (`cat %s | kubectl apply -f -` , netyaml )
87
+ logger .Info ("calico yaml is : \n " , netyaml )
88
+ cmd = fmt .Sprintf (`echo '%s' | kubectl apply -f -` , netyaml )
88
89
output = Cmd (s .Masters [0 ], cmd )
89
90
}
Original file line number Diff line number Diff line change @@ -520,7 +520,6 @@ spec:
520
520
# marks the pod as a critical add-on, ensuring it gets
521
521
# priority scheduling and that its resources are reserved
522
522
# if it ever gets evicted.
523
- scheduler.alpha.kubernetes.io/critical-pod: ''
524
523
spec:
525
524
nodeSelector:
526
525
beta.kubernetes.io/os: linux
@@ -767,7 +766,6 @@ spec:
767
766
labels:
768
767
k8s-app: calico-kube-controllers
769
768
annotations:
770
- scheduler.alpha.kubernetes.io/critical-pod: ''
771
769
spec:
772
770
nodeSelector:
773
771
beta.kubernetes.io/os: linux
Original file line number Diff line number Diff line change
1
+ package net
2
+
3
+ import (
4
+ "fmt"
5
+ "testing"
6
+ )
7
+
8
+ func TestNewNetwork (t * testing.T ) {
9
+ netyaml := NewNetwork ("calico" , MetaData {Interface :"en.*|eth.*" ,CIDR :"10.1.1.1/24" }).Manifests ("" )
10
+ fmt .Println (netyaml )
11
+ }
You can’t perform that action at this time.
0 commit comments