16: 2021-09-13 (Mon) 12:46:48 iseki  |
Cur: 2021-09-15 (Wed) 13:03:38 iseki  |
| | 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 |
| | StartLimitInterval=0 | | StartLimitInterval=0 |
| | RestartSec=10 | | RestartSec=10 |
| | + | |
| | [Install] | | [Install] |
| | WantedBy=multi-user.target | | WantedBy=multi-user.target |
| | 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:vxlan.calico |
| | | | |
| | **** calicoctl [#t3e4c13e] | | **** calicoctl [#t3e4c13e] |
| | #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' | \ |
| | 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] |
| | 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- |