Skip to content

Instantly share code, notes, and snippets.

@clementnuss
Last active March 28, 2021 13:40
Show Gist options
  • Save clementnuss/6e2b58abd614a232f4ca1d35d405d64d to your computer and use it in GitHub Desktop.
Save clementnuss/6e2b58abd614a232f4ca1d35d405d64d to your computer and use it in GitHub Desktop.
CNI_PATH=/opt/cni/bin:/opt/cni/bin
CNI_ARGS=IgnoreUnknown=true;K8S_POD_NAMESPACE=default;K8S_POD_NAME=nginx-f89759699-dv4hf;K8S_POD_INFRA_CONTAINER_ID=96638ef97eaf430ea57999413e5bc36caf25240bff2d24c49679fc7854850af0
CNI_CONTAINERID=96638ef97eaf430ea57999413e5bc36caf25240bff2d24c49679fc7854850af0
CNI_IFNAME=eth0
CNI_COMMAND=ADD
CNI_NETNS=/proc/280526/ns/net
2021-03-28 09:03:57.881 [INFO][281150] plugin.go 130: Extracted identifiers EndpointIDs=&utils.WEPIdentifiers{Namespace:"default", WEPName:"", WorkloadEndpointIdentifiers:names.WorkloadEndpointIdentifiers{Node:"node", Orchestrator:"k8s", Endpoint:"eth0", Workload:"", Pod:"nginx-f89759699-dv4hf", ContainerID:"96638ef97eaf430ea57999413e5bc36caf25240bff2d24c49679fc7854850af0"}} 2021-03-28 09:03:57.894 [INFO][281150] k8s.go 61: Extracted identifiers for CmdAddK8s ContainerID="96638ef97eaf430ea57999413e5bc36caf25240bff2d24c49679fc7854850af0" Namespace="default" Pod="nginx-f89759699-dv4hf" WorkloadEndpoint="node-k8s-nginx--f89759699--dv4hf-eth0" 2021-03-28 09:03:57.903 [INFO][281150] k8s.go 786: namespace info &Namespace{ObjectMeta:{default /api/v1/namespaces/default a3afb554-71e9-4bdf-b333-0857f7b5651b 151 0 2020-11-26 11:03:07 -0500 EST <nil> <nil> map[] map[] [] [] [{kube-apiserver Update v1 2020-11-26 11:03:07 -0500 EST FieldsV1 FieldsV1{Raw:*[123 34 102 58 115 116 97 116 117 115 34 58 123 34 102 58 112 104 97 115 101 34 58 123 125 125 125],}}]},Spec:NamespaceSpec{Finalizers:[kubernetes],},Status:NamespaceStatus{Phase:Active,Conditions:[]NamespaceCondition{},},} 2021-03-28 09:03:57.911 [INFO][281150] k8s.go 795: pod info &Pod{ObjectMeta:{nginx-f89759699-dv4hf nginx-f89759699- default /api/v1/namespaces/default/pods/nginx-f89759699-dv4hf
[... more output]
{
"cniVersion": "0.3.1",
"etcd_ca_cert_file": "/etc/calico/certs/ca_cert.crt",
"etcd_cert_file": "/etc/calico/certs/cert.crt",
"etcd_endpoints": "https://192.168.0.81:2379,https://192.168.26.0:2379,https://192.168.26.0:2379",
"etcd_key_file": "/etc/calico/certs/key.pem",
"ipam": {
"assign_ipv4": "true",
"ipv4_pools": ["10.233.64.0/18"],
"type": "calico-ipam"
},
"kubernetes": {
"kubeconfig": "/etc/cni/net.d/calico-kubeconfig"
},
"log_level": "info",
"name": "cni0",
"nodename": "node",
"policy": {
"type": "k8s"
},
"type": "calico"
}
{
"cniVersion": "0.3.1",
"interfaces": [{
"name": "cali09882d576d1"
}],
"ips": [{
"version": "4",
"address": "10.233.73.119/32"
}],
"dns": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment