From 90b83131170078e98097315c145f5e8030b68909 Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Mon, 14 Dec 2020 10:27:00 +0100 Subject: [PATCH] added mariadb alias to k3s pod --- .alias | 1 + 1 file changed, 1 insertion(+) diff --git a/.alias b/.alias index c5440ad..ca67ee8 100644 --- a/.alias +++ b/.alias @@ -6,3 +6,4 @@ alias dotf='/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME' alias ls_dotfiels='/usr/bin/git --git-dir=$HOME/.dotfiles ls-tree --full-tree -r --name-only HEAD' alias t="todo.sh" alias gl='git log --graph --pretty=format:'\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --abbrev-commit --date=relative' +alias mariadb='kubectl exec -it $(kubectl get pod --selector=app=mariadb --template "{{range .items}}{{.metadata.name}}{{\"\n\"}}{{end}}") -- mysql -p'