calicoctl | This repository is the home of calicoctl | Continuous Deployment library
kandi X-RAY | calicoctl Summary
kandi X-RAY | calicoctl Summary
This repository is the home of calicoctl. Note that the documentation in this repo is targeted at Calico contributors. Documentation for Calico users is here:
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of calicoctl
calicoctl Key Features
calicoctl Examples and Code Snippets
Community Discussions
Trending Discussions on calicoctl
QUESTION
I deployed a brand new k8s cluster using kubespray, everything works fine but all of the calico related pods are not ready. And after many hours of debugging I couldn't find the reason why calico pods are crashing. I even disabled/stopped the entire firewalld service but nothing changed.
One other important thing is that calicoctl node status
output is not stable and every time gets called show something different:
ANSWER
Answered 2021-Sep-21 at 18:18Fortunately increasing timeoutSeconds
for both livenessProbe
& readinessProbe
from 1 to 60 fixes the issue.
QUESTION
I'm using k3d with calico, and trying to use calicoctl
to set a network policy. I am able to get this working on Ubuntu, but on Windows it doesn't. To set it up I did the following:
ANSWER
Answered 2021-Apr-28 at 01:23While the official documentation claims:
- Calico looks for the config in the default user location
~/.kube/config
- It will also look at
KUBERNETES_MASTER
(the error output states this) - It will also look at
KUBECONFIG
It does NOT! None of the above works on Windows. (On Ubuntu, I did not have to do anything special and it found my config)
The only solution I found was to do the following:
- Create a config file
- Pass the config file in every
calicoctl
call
calico.cfg.yaml
QUESTION
I am trying to examine my node to potentially fix my nodes, but the command "get" is failing.
the error is
...ANSWER
Answered 2021-Mar-15 at 16:22I had been playing around with multiple config files. Whereas kubectl will recognize multiple config files for testing purposes, calicoctl will not. I merged my config files using instructions found here:
How to merge kubectl config file with ~/.kube/config?
Fixed!
QUESTION
Trying to set up Calico on-premises Kubernetes cluster.
Initializing cluster kubeadm init --pod-network-cidr=192.168.0.0/16
Using https://docs.projectcalico.org/manifests/calico.yaml
manifest.
ANSWER
Answered 2021-Feb-24 at 08:28As nodes had different network interfaces, calico-node
autodetected different networks on nodes. To fix this I added IP_AUTODETECTION_METHOD
env var to calico-node
DaemonSet
. In my case I used these env var values:
QUESTION
I am installing k8s with calico on centos8, everything looks well but I couldn't ping each other between pods.
I am using k8s as DATASTORE of calico, the deployment file is in calico.yaml
I don't know why there are some route missed, any suggestions are appreciated.
Here are some informations about the cluster:
...ANSWER
Answered 2021-Jan-27 at 06:02The calico file default disable ipip and vxlan, which causes the network failure. When I enable ipip and set the correct veth_mtu everything works well.
QUESTION
Let me preface this by saying this is running on a production cluster, so any 'destructive' solution that will cause downtime will not be an option (unless absolutely necessary).
My environment
I have a Kubernetes cluster (11 nodes, 3 of which are master nodes) running v1.13.1 on AWS. This cluster was created via kOps like so:
...ANSWER
Answered 2021-Jan-08 at 21:43I have solved this by updating all the masters at the same time, without validation
QUESTION
I am setting up a pod using calico but it keeps on failing with some authorization error. By default following is the node cidr of my system:
...ANSWER
Answered 2020-Jul-12 at 05:23Looks like you have an RBAC issue where your pod cannot read the Kubernetes the IPAMConfig
CRD.
I looked at the manifests from https://docs.projectcalico.org/manifests/canal.yaml and I see that it's missing ipamconfigs
from a couple of the RBAC ClusterRoles. So you can go ahead and try to add them.
QUESTION
I am using kubernetes v1.18 and use calico as my CNI plugin, this is the calico pod status(remove unrelate pods):
...ANSWER
Answered 2020-Jul-12 at 06:05The question is: why the master 192.168.31.29 calico nodes are not found?
Sounds like Calico wasn't able to retrieve your NODENAME
for the master. I see that it's defined as localhost.localdomain
in the output of your command.
If you see the docs, Calico needs to be able to determine your NODENAME
to add the calico/node resource and consider it to be part of the 'mesh'.
The calico/node must know the name of the node on which it is running. The node name is used to retrieve the Node resource configured for this node if it exists, or to create a new node resource representing the node if it does not. It is also used to associate the node with per-node BGP configuration, felix configuration, and endpoints.
Another question would be, are you planning to run workloads on your Kubernetes master? If you don't then your setup is fine now. If you do, then yes, you will have to make sure that Calico (the overlay) works so that your workloads have network connectivity.
QUESTION
I deployed my cluster with the --pod-network-cidr added, and have created the new ip pool using calicoctl to change the pods to this range. The problem I am having is exactly what I need to change on the kubernetes side to make the pod cidr range changes? Do I make changes in the API server, Controller manager, and scheduler or is there only specific parts I need to change. I have attempted only changing the controller manager, and those control plane pods go into a crash loop after changing the --cluster-cidr in the yaml.
The output in the controller-manager logs are below?
controllermanager.go:235] error starting controllers: failed to mark cidr[192.168.0.0/24] at idx [0] as occupied for node: : cidr 192.168.0.0/24 is out the range of cluster cidr 10.0.0.0/16
...ANSWER
Answered 2020-Feb-19 at 16:44Changing a cluster CIDR isn't a simple task. I managed to reproduce your scenario and I managed to change it using the following steps.
Changing an IP pool
The process is as follows :
- Install calicoctl as a Kubernetes pod (Source)
- Add a new IP pool (Source).
- Disable the old IP pool. This prevents new IPAM allocations from the old IP pool without affecting the networking of existing workloads.
- Change nodes
podCIDR
parameter (Source) - Change
--cluster-cidr
onkube-controller-manager.yaml
on master node. (Credits to OP on that) - Recreate all existing workloads that were assigned an address from the old IP pool.
- Remove the old IP pool.
Let’s get started.
In this example, we are going to replace 192.168.0.0/16
to 10.0.0.0/8
.
- Installing calicoctl as a Kubernetes pod
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install calicoctl
Homebrew users can use brew install calicoctl.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page