Difference between revisions of "Kubectl apply -f https://raw.githubusercontent.com/cloudnativelabs/kube-router/master/daemonset/kubeadm-kuberouter.yaml"
Jump to navigation
Jump to search
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
+ | [[kubectl apply -f]] https://raw.githubusercontent.com/cloudnativelabs/kube-router/master/daemonset/kubeadm-kuberouter.yaml | ||
+ | configmap/kube-router-cfg created | ||
+ | daemonset.apps/kube-router created | ||
+ | serviceaccount/kube-router created | ||
+ | clusterrole.rbac.authorization.k8s.io/kube-router created | ||
+ | clusterrolebinding.rbac.authorization.k8s.io/kube-router created | ||
+ | [[kubeadm init --apiserver-advertise-address $(hostname -i) --pod-network-cidr 10.5.0.0/16]] | ||
+ | [[kubectl get nodes -A]] | ||
+ | [[kubectl get pods -A]] | ||
+ | |||
+ | <pre> | ||
+ | k get pods -A | ||
+ | NAMESPACE NAME READY STATUS RESTARTS AGE | ||
+ | kube-system coredns-5d78c9869d-bzbtj 1/1 Running 0 83s | ||
+ | kube-system coredns-5d78c9869d-xxpr8 1/1 Running 0 83s | ||
+ | kube-system etcd-node1 1/1 Running 0 95s | ||
+ | kube-system kube-apiserver-node1 1/1 Running 0 97s | ||
+ | kube-system kube-controller-manager-node1 1/1 Running 0 96s | ||
+ | kube-system kube-proxy-52v52 1/1 Running 0 83s | ||
+ | kube-system kube-router-ckvgp 0/1 CrashLoopBackOff 3 (24s ago) 83s | ||
+ | kube-system kube-scheduler-node1 1/1 Running 0 95s | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | [[k logs -n kube-system kube-router]]-ckvgp | ||
+ | F0320 12:24:52.703516 3291 network_policy_controller.go:419] Failed to run iptables command to insert in INPUT chain running [/sbin/iptables -t filter -I INPUT 1 -m comment --comment kube-router netpol - 4IA2OSFRMVNDXBVV -j KUBE-ROUTER-INPUT --wait]: exit status 4: iptables v1.8.10 (nf_tables): RULE_INSERT failed (Invalid argument): rule in chain INPUT | ||
− | + | == Related == | |
+ | * [[Play with Kubernetes]] | ||
+ | |||
+ | == See also == | ||
+ | * {{kube-router}} | ||
+ | * {{kubeadm init}} | ||
− | + | [[Category:K8s]] |
Latest revision as of 18:04, 10 April 2024
kubectl apply -f https://raw.githubusercontent.com/cloudnativelabs/kube-router/master/daemonset/kubeadm-kuberouter.yaml configmap/kube-router-cfg created daemonset.apps/kube-router created serviceaccount/kube-router created clusterrole.rbac.authorization.k8s.io/kube-router created clusterrolebinding.rbac.authorization.k8s.io/kube-router created
kubeadm init --apiserver-advertise-address $(hostname -i) --pod-network-cidr 10.5.0.0/16 kubectl get nodes -A kubectl get pods -A
k get pods -A NAMESPACE NAME READY STATUS RESTARTS AGE kube-system coredns-5d78c9869d-bzbtj 1/1 Running 0 83s kube-system coredns-5d78c9869d-xxpr8 1/1 Running 0 83s kube-system etcd-node1 1/1 Running 0 95s kube-system kube-apiserver-node1 1/1 Running 0 97s kube-system kube-controller-manager-node1 1/1 Running 0 96s kube-system kube-proxy-52v52 1/1 Running 0 83s kube-system kube-router-ckvgp 0/1 CrashLoopBackOff 3 (24s ago) 83s kube-system kube-scheduler-node1 1/1 Running 0 95s
k logs -n kube-system kube-router-ckvgp F0320 12:24:52.703516 3291 network_policy_controller.go:419] Failed to run iptables command to insert in INPUT chain running [/sbin/iptables -t filter -I INPUT 1 -m comment --comment kube-router netpol - 4IA2OSFRMVNDXBVV -j KUBE-ROUTER-INPUT --wait]: exit status 4: iptables v1.8.10 (nf_tables): RULE_INSERT failed (Invalid argument): rule in chain INPUT
Related[edit]
See also[edit]
Advertising: