|
@ -25,12 +25,20 @@ |
|
|
cmd: journalctl -p err --no-pager |
|
|
cmd: journalctl -p err --no-pager |
|
|
- name: etcd_info |
|
|
- name: etcd_info |
|
|
cmd: etcdctl --peers={{ etcd_access_addresses }} cluster-health |
|
|
cmd: etcdctl --peers={{ etcd_access_addresses }} cluster-health |
|
|
|
|
|
- name: calico_info |
|
|
|
|
|
cmd: "{{bin_dir}}/calicoctl node status" |
|
|
|
|
|
- name: calico_workload_info |
|
|
|
|
|
cmd: "{{bin_dir}}/calicoctl get workloadEndpoint -o wide" |
|
|
|
|
|
- name: calico_pool_info |
|
|
|
|
|
cmd: "{{bin_dir}}/calicoctl get ippool -o wide" |
|
|
- name: weave_info |
|
|
- name: weave_info |
|
|
cmd: weave report |
|
|
cmd: weave report |
|
|
- name: weave_logs |
|
|
- name: weave_logs |
|
|
cmd: docker logs weave |
|
|
cmd: docker logs weave |
|
|
- name: kube_describe_all |
|
|
- name: kube_describe_all |
|
|
cmd: kubectl describe all --all-namespaces |
|
|
cmd: kubectl describe all --all-namespaces |
|
|
|
|
|
- name: kubelet_logs |
|
|
|
|
|
cmd: journalctl -u kubelet --no-pager |
|
|
- name: kubedns_logs |
|
|
- name: kubedns_logs |
|
|
cmd: "for i in `kubectl get pods --all-namespaces -l k8s-app=kubedns -o jsonpath={.items..metadata.name}`; |
|
|
cmd: "for i in `kubectl get pods --all-namespaces -l k8s-app=kubedns -o jsonpath={.items..metadata.name}`; |
|
|
do kubectl logs ${i} --namespace kube-system kubedns; done" |
|
|
do kubectl logs ${i} --namespace kube-system kubedns; done" |
|
|