flagflag  
16: 2021-09-13 (Mon) 12:46:48 iseki source Cur: 2021-09-15 (Wed) 13:03:38 iseki source
Line 65: Line 65:
 Wants=network-online.target  Wants=network-online.target
 After=network-online.target  After=network-online.target
 + 
 [Service]  [Service]
 ExecStart=/usr/bin/kubelet  ExecStart=/usr/bin/kubelet
Line 71: Line 71:
 StartLimitInterval=0  StartLimitInterval=0
 RestartSec=10  RestartSec=10
 + 
 [Install]  [Install]
 WantedBy=multi-user.target  WantedBy=multi-user.target
Line 134: Line 134:
 vi custom-resources.yaml      (correct IP)  vi custom-resources.yaml      (correct IP)
 kubectl create -f custom-resources.yaml  kubectl create -f custom-resources.yaml
 + 
 watch kubectl get pods -n calico-system  watch kubectl get pods -n calico-system
 kubectl taint nodes --all node-role.kubernetes.io/master-  (マスタノードでも Podを実行できるようになる)  kubectl taint nodes --all node-role.kubernetes.io/master-  (マスタノードでも Podを実行できるようになる)
 kubectl get nodes -o wide  kubectl get nodes -o wide
 +
 +- /etc/NetworkManager/conf.d/calico.conf  で以下の設定が必要になるかもしれない
 + [keyfile]
 + unmanaged-devices=interface-name:cali*;​interface-name:tunl*;interface-name:vxla​n.calico
**** calicoctl [#t3e4c13e] **** calicoctl [#t3e4c13e]
Line 156: Line 160:
#br #br
-***** Alt 1 [#a2d229df]+***** 他の方法 [#dba04328] 
 +- その1
 curl -L https://docs.projectcalico.org/manifests​/calico.yaml | \  curl -L https://docs.projectcalico.org/manifests​/calico.yaml | \
 sed  '/            - name: CALICO_DISABLE_FILE_LOGGING/i\            # ADD' | \  sed  '/            - name: CALICO_DISABLE_FILE_LOGGING/i\            # ADD' | \
Line 166: Line 171:
 cat - >  calico.yaml  cat - >  calico.yaml
 kubectl apply -f calico.yaml  kubectl apply -f calico.yaml
 + 
 watch kubectl get pods -n calico-system  watch kubectl get pods -n calico-system
 kubectl taint nodes --all node-role.kubernetes.io/master-  kubectl taint nodes --all node-role.kubernetes.io/master-
 kubectl get nodes -o wide  kubectl get nodes -o wide
-***** Alt 2 [#i1978737]+- その2
 cat <<EOF > /etc/NetworkManager/conf.d/calico.conf  cat <<EOF > /etc/NetworkManager/conf.d/calico.conf
 [keyfile]  [keyfile]
Line 179: Line 184:
 vi calico.yaml  (correct IP)  vi calico.yaml  (correct IP)
 kubectl apply -f calico.yaml  kubectl apply -f calico.yaml
 + 
 watch kubectl get pods -n calico-system  watch kubectl get pods -n calico-system
 kubectl taint nodes --all node-role.kubernetes.io/master-  kubectl taint nodes --all node-role.kubernetes.io/master-


Front page   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

25 user(s) are online (1 user(s) are browsing xpwiki)

Members: 0
Guests: 25

more...

Access Counter

Today : 1961196119611961
Yesterday : 4345434543454345
Total : 2365910223659102236591022365910223659102236591022365910223659102
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com