Call external IP from kubernetes using Calico network

4/3/2020

I installed kubernetes and then I installed calico network using documentation. After that I checked the cluster and all the pods from all namespaces were running and ready.

After than I deployed one pod that calls an external IP, but that pod does not reach that IP, it can't ping external IPs

Then I followed calico documentation for accessing external IPs and I ran the following commands:

kubectl apply -f https://docs.projectcalico.org/manifests/calicoctl.yaml

alias calicoctl="kubectl exec -i -n kube-system calicoctl /calicoctl -- "

And then I created my manifest file:

apiVersion: projectcalico.org/v3
kind: IPPool
metadata:
    name: ippool-ext-1
spec:
    cidr: 10.0.0.0/16
    natOutgoing: true

And I ran the following command calicoctl2 create -f - < manifest.yml and it returned this error:

OCI runtime exec failed: exec failed: container_linux.go:345: starting container process caused "exec: \"create\": executable file not found in $PATH": unknown
command terminated with exit code 126

Can you help me figure out how to solve this issue? Or could you recommend another way to configure my kubernetes cluster to access external IPs?

-- Dorin
calico
kubernetes
project-calico

0 Answers