From c82d29f269e473e36bd17f358085d9deb0ec397d Mon Sep 17 00:00:00 2001 From: Andrew Coleman Date: Mon, 3 Jun 2019 10:37:45 -0400 Subject: [PATCH] add handy k8s utilities --- roles/k8s/tasks/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/roles/k8s/tasks/main.yml b/roles/k8s/tasks/main.yml index 247b061..074096b 100644 --- a/roles/k8s/tasks/main.yml +++ b/roles/k8s/tasks/main.yml @@ -46,3 +46,18 @@ shell: curl -sLo /tmp/helm.tar.gz https://storage.googleapis.com/kubernetes-helm/helm-v2.13.1-linux-amd64.tar.gz && mkdir -p /tmp/helm && tar xzf /tmp/helm.tar.gz -C /tmp/helm && install -m 755 /tmp/helm/linux-amd64/helm /usr/local/bin/helm-2.13.1 && rm -rf /tmp/helm* && ln -sf /usr/local/bin/helm-2.13.1 /usr/local/bin/helm args: creates: /usr/local/bin/helm-2.13.1 +- name: install k9s + shell: curl -sLo /tmp/k9s.tar.gz https://github.com/derailed/k9s/releases/download/0.6.7/k9s_0.6.7_Linux_x86_64.tar.gz && tar xzf /tmp/k9s.tar.gz -C /tmp && install -m 755 /tmp/k9s /usr/local/bin/k9s-0.6.7 && rm -f /tmp/k9s* && ln -sf /usr/local/bin/k9s-0.6.7 /usr/local/bin/k9s + args: + warn: False + creates: /usr/local/bin/k9s-0.6.7 +- name: install popeye + shell: curl -sLo /tmp/popeye.tar.gz https://github.com/derailed/popeye/releases/download/v0.3.6/popeye_0.3.6_Linux_x86_64.tar.gz && tar xzf /tmp/popeye.tar.gz -C /tmp && install -m 755 /tmp/popeye /usr/local/bin/popeye-0.3.6 && rm -f /tmp/popeye* && ln -sf /usr/local/bin/popeye-0.3.6 /usr/local/bin/popeye + args: + warn: False + creates: /usr/local/bin/popeye-0.3.6 +- name: install stern + shell: curl -sLo /tmp/stern_linux_amd64 https://github.com/wercker/stern/releases/download/1.10.0/stern_linux_amd64 && install -m 755 /tmp/stern_linux_amd64 /usr/local/bin/stern-1.10.0 && rm -f /tmp/stern_linux_amd64 && ln -sf /usr/local/bin/stern-1.10.0 /usr/local/bin/stern + args: + warn: False + creates: /usr/local/bin/stern-1.10.0