\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{richardellisjr} \pdfinfo{ /Title (kubernetes-kubectl.pdf) /Creator (Cheatography) /Author (richardellisjr) /Subject (Kubernetes - kubectl Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{A3A3A3} \definecolor{LightBackground}{HTML}{F3F3F3} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{Kubernetes - kubectl Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{richardellisjr} via \textcolor{DarkBackground}{\uline{cheatography.com/20461/cs/11248/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}richardellisjr \\ \uline{cheatography.com/richardellisjr} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Not Yet Published.\\ Updated 23rd March, 2017.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{3} \begin{tabularx}{5.377cm}{p{0.4977 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Kubectl Autocomplete}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{\# setup autocomplete in bash} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{source \textless{}(kubectl completion bash)} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{\# setup autocomplete in zsh} \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{source \textless{}(kubectl completion zsh)} \tn % Row Count 4 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Kubectl Context and Configuration}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# Show Merged kubeconfig settings.} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl config view} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# use multiple kubeconfig files at the same time and view merged config} \tn % Row Count 4 (+ 2) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{KUBECONFIG=\textasciitilde{}/.kube/config:\textasciitilde{}/.kube/kubconfig2 kubectl config view} \tn % Row Count 6 (+ 2) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# Get the password for the e2e user} \tn % Row Count 7 (+ 1) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl config view -o jsonpath='\{.users{[}?(@.name == "e2e"){]}.user.password\}'} \tn % Row Count 9 (+ 2) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# Display the current-context} \tn % Row Count 10 (+ 1) % Row 7 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl config current-context} \tn % Row Count 11 (+ 1) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# set the default context to my-cluster-name} \tn % Row Count 12 (+ 1) % Row 9 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl config use-context my-cluster-name} \tn % Row Count 13 (+ 1) % Row 10 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# add a new cluster to your kubeconf that supports basic auth} \tn % Row Count 15 (+ 2) % Row 11 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl config set-credentials \seqsplit{kubeuser/foo.kubernetes.com} -{}-username=kubeuser -{}-password=kubepassword} \tn % Row Count 18 (+ 3) % Row 12 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{set a context utilizing a specific username and namespace.} \tn % Row Count 20 (+ 2) % Row 13 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl config set-context gce -{}-user=cluster-admin -{}-namespace=foo\{\{nl\}\}\textbackslash{}\&\& kubectl config use-context gce} \tn % Row Count 23 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Updating Resources}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# Rolling update pods of frontend-v1} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl rolling-update frontend-v1 -f frontend-v2.json} \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# Change the name of the resource and update the image} \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl rolling-update frontend-v1 frontend-v2 -{}-image=image:v2} \tn % Row Count 7 (+ 2) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# Update the pods image of frontend} \tn % Row Count 8 (+ 1) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl rolling-update frontend -{}-image=image:v2} \tn % Row Count 9 (+ 1) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# Abort existing rollout in progress} \tn % Row Count 10 (+ 1) % Row 7 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl rolling-update frontend-v1 frontend-v2 -{}-rollback} \tn % Row Count 12 (+ 2) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# Replace a pod based on the JSON passed into stdin} \tn % Row Count 14 (+ 2) % Row 9 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{cat pod.json | kubectl replace -f -} \tn % Row Count 15 (+ 1) % Row 10 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{} \tn % Row Count 15 (+ 0) % Row 11 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{\# Force replace, delete and then re-create the resource. Will cause a service outage.} \tn % Row Count 17 (+ 2) % Row 12 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\$ kubectl replace -{}-force -f ./pod.json} \tn % Row Count 18 (+ 1) % Row 13 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{} \tn % Row Count 18 (+ 0) % Row 14 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# Create a service for a replicated nginx, which serves on port 80 and connects to the containers on port 8000} \tn % Row Count 21 (+ 3) % Row 15 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl expose rc nginx -{}-port=80 -{}-target-port=8000} \tn % Row Count 23 (+ 2) % Row 16 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{} \tn % Row Count 23 (+ 0) % Row 17 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{\# Update a single-container pod's image version (tag) to v4} \tn % Row Count 25 (+ 2) % Row 18 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{kubectl get pod mypod -o yaml | sed 's/\textbackslash{}(image: myimage\textbackslash{}):.*\$/\textbackslash{}1:v4/' | kubectl replace -f -} \tn % Row Count 27 (+ 2) % Row 19 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{} \tn % Row Count 27 (+ 0) % Row 20 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# Add a Label} \tn % Row Count 28 (+ 1) % Row 21 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl label pods my-pod new-label=awesome} \tn % Row Count 29 (+ 1) % Row 22 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# Add an annotation} \tn % Row Count 30 (+ 1) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Updating Resources (cont)}} \tn % Row 23 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{kubectl annotate pods my-pod \seqsplit{icon-url=http://goo.gl/XXBTWq}} \tn % Row Count 2 (+ 2) % Row 24 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{\# Auto scale a deployment "foo"} \tn % Row Count 3 (+ 1) % Row 25 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{kubectl autoscale deployment foo -{}-min=2 -{}-max=10} \tn % Row Count 4 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Creating Objects}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# create resource(s)} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl create -f ./my-manifest.yaml} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# create from multiple files} \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl create -f ./my1.yaml -f ./my2.yaml} \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# create resource(s) in all manifest files in dir} \tn % Row Count 5 (+ 1) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl create -f ./dir} \tn % Row Count 6 (+ 1) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# create resource(s) from url} \tn % Row Count 7 (+ 1) % Row 7 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl create -f https://git.io/vPieo} \tn % Row Count 8 (+ 1) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# start a single instance of nginx} \tn % Row Count 9 (+ 1) % Row 9 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl run nginx -{}-image=nginx} \tn % Row Count 10 (+ 1) % Row 10 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# get the documentation for pod and svc manifests} \tn % Row Count 11 (+ 1) % Row 11 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl explain pods,svc} \tn % Row Count 12 (+ 1) % Row 12 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# Create multiple YAML objects from stdin} \tn % Row Count 13 (+ 1) % Row 13 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{cat \textless{}\textless{}EOF | kubectl create -f -\{\{nl\}\} apiVersion: v1\{\{nl\}\} kind: Pod\{\{nl\}\} metadata:\{\{nl\}\} ~~name: busybox-sleep\{\{nl\}\} spec:\{\{nl\}\} ~~containers:\{\{nl\}\} ~~- name: busybox\{\{nl\}\} ~~~~~~image: busybox\{\{nl\}\} ~~~~~~args:\{\{nl\}\} ~~~~~~~~- sleep\{\{nl\}\} ~~~~~~~~- "1000000"\{\{nl\}\} -{}-{}-\{\{nl\}\} apiVersion: v1\{\{nl\}\} kind: Pod\{\{nl\}\} metadata:\{\{nl\}\} ~~name: busybox-sleep-less\{\{nl\}\} spec:\{\{nl\}\} ~~containers:\{\{nl\}\} ~~- name: busybox\{\{nl\}\} ~~~~~~image: busybox\{\{nl\}\} ~~~~~~args:\{\{nl\}\} ~~~~~~~~- sleep\{\{nl\}\} ~~~~~~~~- "1000"\{\{nl\}\} EOF} \tn % Row Count 31 (+ 18) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Creating Objects (cont)}} \tn % Row 14 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# Create a secret with several keys} \tn % Row Count 1 (+ 1) % Row 15 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{cat \textless{}\textless{}EOF | kubectl create -f -\{\{nl\}\} apiVersion: v1\{\{nl\}\} kind: Secret\{\{nl\}\} metadata:\{\{nl\}\} ~~name: mysecret\{\{nl\}\} type: Opaque\{\{nl\}\} data:\{\{nl\}\} ~~password: \$(echo "s33msi4" | base64)\{\{nl\}\} ~~username: \$(echo "jane" | base64)\{\{nl\}\} EOF} \tn % Row Count 7 (+ 6) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Viewing, Finding Resources}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# List all services in the namespace} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl get services} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# List all pods in all namespaces} \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl get pods -{}-all-namespaces} \tn % Row Count 4 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# List all pods in the namespace, with more details} \tn % Row Count 6 (+ 2) % Row 5 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl get pods -o wide} \tn % Row Count 7 (+ 1) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# List a particular deployment} \tn % Row Count 8 (+ 1) % Row 7 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl get deployment my-dep} \tn % Row Count 9 (+ 1) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# Describe commands with verbose output} \tn % Row Count 10 (+ 1) % Row 9 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl describe nodes my-node\{\{nl\}\}kubectl describe pods my-pod} \tn % Row Count 12 (+ 2) % Row 10 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# List Services Sorted by Name} \tn % Row Count 13 (+ 1) % Row 11 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl get services -{}-sort-by=.metadata.name} \tn % Row Count 14 (+ 1) % Row 12 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# List pods Sorted by Restart Count} \tn % Row Count 15 (+ 1) % Row 13 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl get pods -{}-sort-by='.status.containerStatuses{[}0{]}.restartCount'} \tn % Row Count 17 (+ 2) % Row 14 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# Get the version label of all pods with label app=cassandra} \tn % Row Count 19 (+ 2) % Row 15 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl get pods -{}-selector=app=cassandra rc -o \textbackslash{}\{\{nl\}\}jsonpath='\{.items{[}*{]}.metadata.labels.version\}'} \tn % Row Count 22 (+ 3) % Row 16 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# Get ExternalIPs of all nodes} \tn % Row Count 23 (+ 1) % Row 17 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{kubectl get nodes -o jsonpath='\{.items{[}*{]}.status.addresses{[}?(@.type=="ExternalIP"){]}.address\}'} \tn % Row Count 25 (+ 2) % Row 18 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{\# List Names of Pods that belong to Particular RC} \tn % Row Count 26 (+ 1) % Row 19 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{\# "jq" command useful for transformations that are too complex for jsonpath} \tn % Row Count 28 (+ 2) % Row 20 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{sel=\$\{\$(kubectl get rc my-rc -{}-output=json | jq -j '.spec.selector | to\_entries | .{[}{]} | "\textbackslash{}(.key)=\textbackslash{}(.value),"')\%?\}\{\{nl\}\}echo \$(kubectl get pods -{}-selector=\$sel -{}-output=jsonpath=\{.items..metadata.name\})} \tn % Row Count 33 (+ 5) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Viewing, Finding Resources (cont)}} \tn % Row 21 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Check which nodes are ready} \tn % Row Count 1 (+ 1) % Row 22 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{JSONPATH='\{range .items{[}{\emph{{]}\}\{@.metadata.name\}:\{range @.status.conditions{[}}}{]}\}\{@.type\}=\{@.status\};\{end\}\{end\}' \textbackslash{}\{\{nl\}\}\&\& kubectl get nodes -o jsonpath=\$JSONPATH | grep "Ready=True"} \tn % Row Count 5 (+ 4) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}