Skip to content

Instantly share code, notes, and snippets.

@raffysommy
Created April 3, 2017 09:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raffysommy/3474edbfbf97ae04e3357f30125b3e35 to your computer and use it in GitHub Desktop.
Save raffysommy/3474edbfbf97ae04e3357f30125b3e35 to your computer and use it in GitHub Desktop.
Json Kubernets Calico
[
{
"action": "get",
"node": {
"key": "/calico/v1/Ready",
"value": "true",
"nodes": null,
"createdIndex": 711,
"modifiedIndex": 711
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/config/ClusterGUID",
"value": "4371bc1a8cae46e7a75cebdbda7a6616",
"nodes": null,
"createdIndex": 665,
"modifiedIndex": 665
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/config/InterfacePrefix",
"value": "cali",
"nodes": null,
"createdIndex": 667,
"modifiedIndex": 667
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/config/LogSeverityFile",
"value": "none",
"nodes": null,
"createdIndex": 674,
"modifiedIndex": 674
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/config/LogSeverityScreen",
"value": "info",
"nodes": null,
"createdIndex": 675,
"modifiedIndex": 675
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/config/LogFilePath",
"value": "none",
"nodes": null,
"createdIndex": 676,
"modifiedIndex": 676
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/config/IpInIpEnabled",
"value": "false",
"nodes": null,
"createdIndex": 677,
"modifiedIndex": 677
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/config/ReportingIntervalSecs",
"value": "0",
"nodes": null,
"createdIndex": 678,
"modifiedIndex": 678
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/ipam/v4/pool/192.168.0.0-16",
"value": "{\"cidr\":\"192.168.0.0/16\",\"ipip\":\"\",\"masquerade\":true,\"ipam\":true,\"disabled\":false}",
"nodes": null,
"createdIndex": 736,
"modifiedIndex": 736
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/host/k8s-node-02/bird_ip",
"value": "172.18.18.103",
"nodes": null,
"createdIndex": 682,
"modifiedIndex": 682
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/host/k8s-node-02/workload/k8s/policy-demo.nginx-701339712-h037n/endpoint/eth0",
"value": "{\"state\":\"active\",\"name\":\"cali4d7e0fb041b\",\"mac\":\"d2:43:ba:96:91:85\",\"profile_ids\":[\"k8s_ns.policy-demo\"],\"ipv4_nets\":[\"192.168.44.192/32\"],\"ipv6_nets\":[],\"labels\":{\"calico/k8s_ns\":\"policy-demo\",\"pod-template-hash\":\"701339712\",\"run\":\"nginx\"}}",
"nodes": null,
"createdIndex": 1020,
"modifiedIndex": 1020
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/host/k8s-node-02/config/DefaultEndpointToHostAction",
"value": "RETURN",
"nodes": null,
"createdIndex": 686,
"modifiedIndex": 686
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/host/k8s-node-02/config/marker",
"value": "created",
"nodes": null,
"createdIndex": 687,
"modifiedIndex": 687
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/host/k8s-node-01/bird_ip",
"value": "172.18.18.102",
"nodes": null,
"createdIndex": 697,
"modifiedIndex": 697
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/host/k8s-node-01/workload/k8s/kube-system.kube-dns-v19-n75lx/endpoint/eth0",
"value": "{\"state\":\"active\",\"name\":\"calia5b51d634a0\",\"mac\":\"42:26:b5:f7:b6:ad\",\"profile_ids\":[\"k8s_ns.kube-system\"],\"ipv4_nets\":[\"192.168.154.192/32\"],\"ipv6_nets\":[],\"labels\":{\"calico/k8s_ns\":\"kube-system\",\"k8s-app\":\"kube-dns\",\"kubernetes.io/cluster-service\":\"true\",\"version\":\"v19\"}}",
"nodes": null,
"createdIndex": 860,
"modifiedIndex": 860
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/host/k8s-node-01/workload/k8s/policy-demo.nginx-701339712-9zg0z/endpoint/eth0",
"value": "{\"state\":\"active\",\"name\":\"cali621974fb4d7\",\"mac\":\"26:d9:34:c2:a0:75\",\"profile_ids\":[\"k8s_ns.policy-demo\"],\"ipv4_nets\":[\"192.168.154.193/32\"],\"ipv6_nets\":[],\"labels\":{\"calico/k8s_ns\":\"policy-demo\",\"pod-template-hash\":\"701339712\",\"run\":\"nginx\"}}",
"nodes": null,
"createdIndex": 1017,
"modifiedIndex": 1017
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/host/k8s-node-01/config/DefaultEndpointToHostAction",
"value": "RETURN",
"nodes": null,
"createdIndex": 701,
"modifiedIndex": 701
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/host/k8s-node-01/config/marker",
"value": "created",
"nodes": null,
"createdIndex": 702,
"modifiedIndex": 702
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/host/k8s-master/bird_ip",
"value": "172.18.18.101",
"nodes": null,
"createdIndex": 714,
"modifiedIndex": 714
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/host/k8s-master/config/DefaultEndpointToHostAction",
"value": "RETURN",
"nodes": null,
"createdIndex": 718,
"modifiedIndex": 718
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/host/k8s-master/config/marker",
"value": "created",
"nodes": null,
"createdIndex": 719,
"modifiedIndex": 719
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/policy/tier/default/policy/k8s-policy-no-match",
"value": "{\"outbound_rules\": [{\"action\": \"next-tier\"}], \"order\": 2000, \"inbound_rules\": [{\"action\": \"next-tier\"}], \"selector\": \"has(calico/k8s_ns)\"}",
"nodes": null,
"createdIndex": 751,
"modifiedIndex": 751
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/policy/tier/default/metadata",
"value": "{\"order\": 1000}",
"nodes": null,
"createdIndex": 750,
"modifiedIndex": 750
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/policy/profile/k8s_ns.default/tags",
"value": "[\"k8s_ns.default\"]",
"nodes": null,
"createdIndex": 753,
"modifiedIndex": 753
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/policy/profile/k8s_ns.default/labels",
"value": "{}",
"nodes": null,
"createdIndex": 754,
"modifiedIndex": 754
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/policy/profile/k8s_ns.default/rules",
"value": "{\"inbound_rules\": [{\"action\": \"allow\"}], \"outbound_rules\": [{\"action\": \"allow\"}]}",
"nodes": null,
"createdIndex": 755,
"modifiedIndex": 755
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/policy/profile/k8s_ns.kube-system/tags",
"value": "[\"k8s_ns.kube-system\"]",
"nodes": null,
"createdIndex": 756,
"modifiedIndex": 756
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/policy/profile/k8s_ns.kube-system/labels",
"value": "{}",
"nodes": null,
"createdIndex": 757,
"modifiedIndex": 757
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/policy/profile/k8s_ns.kube-system/rules",
"value": "{\"inbound_rules\": [{\"action\": \"allow\"}], \"outbound_rules\": [{\"action\": \"allow\"}]}",
"nodes": null,
"createdIndex": 758,
"modifiedIndex": 758
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/policy/profile/k8s_ns.policy-demo/tags",
"value": "[\"k8s_ns.policy-demo\"]",
"nodes": null,
"createdIndex": 984,
"modifiedIndex": 984
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/policy/profile/k8s_ns.policy-demo/labels",
"value": "{}",
"nodes": null,
"createdIndex": 986,
"modifiedIndex": 986
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/v1/policy/profile/k8s_ns.policy-demo/rules",
"value": "{\"inbound_rules\": [{\"action\": \"allow\"}], \"outbound_rules\": [{\"action\": \"allow\"}]}",
"nodes": null,
"createdIndex": 988,
"modifiedIndex": 988
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/bgp/v1/host/k8s-master/ip_addr_v4",
"value": "172.18.18.101",
"nodes": null,
"createdIndex": 715,
"modifiedIndex": 715
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/bgp/v1/host/k8s-master/ip_addr_v6",
"value": "",
"nodes": null,
"createdIndex": 716,
"modifiedIndex": 716
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/bgp/v1/host/k8s-node-02/ip_addr_v4",
"value": "172.18.18.103",
"nodes": null,
"createdIndex": 683,
"modifiedIndex": 683
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/bgp/v1/host/k8s-node-02/ip_addr_v6",
"value": "",
"nodes": null,
"createdIndex": 684,
"modifiedIndex": 684
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/bgp/v1/host/k8s-node-01/ip_addr_v4",
"value": "172.18.18.102",
"nodes": null,
"createdIndex": 698,
"modifiedIndex": 698
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/bgp/v1/host/k8s-node-01/ip_addr_v6",
"value": "",
"nodes": null,
"createdIndex": 699,
"modifiedIndex": 699
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/bgp/v1/global/as_num",
"value": "64511",
"nodes": null,
"createdIndex": 672,
"modifiedIndex": 672
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/bgp/v1/global/node_mesh",
"value": "{\"enabled\": true}",
"nodes": null,
"createdIndex": 673,
"modifiedIndex": 673
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/ipam/v2/assignment/ipv4/block/192.168.154.192-26",
"value": "{\"cidr\":\"192.168.154.192/26\",\"affinity\":\"host:k8s-node-01\",\"strictAffinity\":false,\"allocations\":[0,1,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],\"unallocated\":[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63],\"attributes\":[{\"handle_id\":\"kube-system.kube-dns-v19-n75lx\",\"secondary\":null},{\"handle_id\":\"policy-demo.nginx-701339712-9zg0z\",\"secondary\":null}]}",
"nodes": null,
"createdIndex": 857,
"modifiedIndex": 1013
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/ipam/v2/assignment/ipv4/block/192.168.44.192-26",
"value": "{\"cidr\":\"192.168.44.192/26\",\"affinity\":\"host:k8s-node-02\",\"strictAffinity\":false,\"allocations\":[0,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],\"unallocated\":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63],\"attributes\":[{\"handle_id\":\"policy-demo.nginx-701339712-h037n\",\"secondary\":null}]}",
"nodes": null,
"createdIndex": 1015,
"modifiedIndex": 1018
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/ipam/v2/handle/kube-system.kube-dns-v19-n75lx",
"value": "{\"block\":{\"192.168.154.192/26\":1}}",
"nodes": null,
"createdIndex": 858,
"modifiedIndex": 858
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/ipam/v2/handle/policy-demo.nginx-701339712-9zg0z",
"value": "{\"block\":{\"192.168.154.192/26\":1}}",
"nodes": null,
"createdIndex": 1012,
"modifiedIndex": 1012
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/ipam/v2/handle/policy-demo.nginx-701339712-h037n",
"value": "{\"block\":{\"192.168.44.192/26\":1}}",
"nodes": null,
"createdIndex": 1016,
"modifiedIndex": 1016
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/ipam/v2/host/k8s-node-02/ipv4/block/192.168.44.192-26",
"value": "{}",
"nodes": null,
"createdIndex": 1014,
"modifiedIndex": 1014
},
"prevNode": null
},
{
"action": "get",
"node": {
"key": "/calico/ipam/v2/host/k8s-node-01/ipv4/block/192.168.154.192-26",
"value": "{}",
"nodes": null,
"createdIndex": 856,
"modifiedIndex": 856
},
"prevNode": null
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment