From cab7f0a83fd3ebb55fe77682188c362c331d1ae2 Mon Sep 17 00:00:00 2001 From: leif160519 Date: Fri, 30 Jun 2023 15:29:42 +0800 Subject: [PATCH] +master add kubetail --- roles/master/tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/master/tasks/main.yml b/roles/master/tasks/main.yml index 688bf56..89bc7a4 100644 --- a/roles/master/tasks/main.yml +++ b/roles/master/tasks/main.yml @@ -154,3 +154,11 @@ shell: | kubectl label nodes "{{ node_name }}" node-role.kubernetes.io/master= kubectl label nodes "{{ node_name }}" node-role.kubernetes.io/worker= + +- name: 安装kubetail查看pod日志工具 + get_url: + url: https://raw.githubusercontent.com/johanhaleby/kubetail/master/kubetail + dest: /usr/bin/kubetail + owner: root + group: root + mode: u+x