summaryrefslogtreecommitdiff
path: root/roles/kubernetes/kubeadm
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2023-05-06 23:01:55 +0200
committerChristian Pointner <equinox@spreadspace.org>2023-05-06 23:01:55 +0200
commit48303a434f1dbb482e8c0de4c10ac73f165f96be (patch)
tree83f180ec2366eceac7266fe10ce3598beb421ca0 /roles/kubernetes/kubeadm
parentk8s-chtest: upgrade kube-router to 1.5.1 and remove currently not working 1.5.4 (diff)
kubernetes/kubeadm: add hatop shell alias
Diffstat (limited to 'roles/kubernetes/kubeadm')
-rw-r--r--roles/kubernetes/kubeadm/base/tasks/main.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/kubernetes/kubeadm/base/tasks/main.yml b/roles/kubernetes/kubeadm/base/tasks/main.yml
index 39e24ccb..75c1187a 100644
--- a/roles/kubernetes/kubeadm/base/tasks/main.yml
+++ b/roles/kubernetes/kubeadm/base/tasks/main.yml
@@ -43,6 +43,17 @@
state: "{% if haproxy_config is changed %}restarted{% else %}started{% endif %}"
enabled: yes
+- name: add hatop config for shells
+ loop:
+ - zsh
+ - bash
+ blockinfile:
+ path: "/root/.{{ item }}rc"
+ create: yes
+ marker: "### {mark} ANSIBLE MANAGED BLOCK for hatop ###"
+ content: |
+ alias hatop='hatop -s /run/haproxy/admin.sock'
+
## loading the modules temporarly because kubeadm will complain if they are not there
# but i don't think it is necessary to make this persistent, also ignoring changes here
- name: load module br_netfilter to satisfy kubeadm init/join