Is it possible to create resource:
apiVersion: projectcalico.org/v3
kind: HostEndpoint
using calico operator?
I want to get rid of calicoctl
.
Is it possible to create resource:
apiVersion: projectcalico.org/v3
kind: HostEndpoint
using calico operator?
I want to get rid of calicoctl
.
If you're trying to autocreate hostEndpoint
s for all the worker nodes. You could patch the kubecontrollersconfiguration
resource directly without calicoctl
.
kubectl patch kubecontrollersconfiguration default --type=merge --patch='{"spec": {"controllers": {"node": {"hostEndpoint": {"autoCreate": "Enabled"}}}}}'
It is possible only with
calicoctl
to create a host endpoint resource.As mentioned in the document:
There are two ways to specify the interface that a host endpoint should refer to. You can either specify the name of the interface or its expected IP address. In either case, you’ll also need to know the name given to the Calico node running on the host that owns the interface; in most cases this will be the same as the hostname of the host.