Setting up kubectl bash completion on CoreOS

Follow this guide to get bash-completions installed on your CoreOS box.

Then run the following commands: 
1. sudo su 
2. cd /var/bash-completion/completions/ 
3. wget https://raw.githubusercontent.com/kubernetes/kubernetes/$(kubectl version -c | grep -o -P '(?<=GitCommit:").*(?=",)')/contrib/completions/bash/kubectl 
4. ^D out back into the core user's shell 
5. Try out kubectl get po<tab>

Credits to: 
1. https://www.binarysludge.com/2014/10/21/install-bash-completion-on-coreos/ 
2. http://www.arulraj.net/2016/01/bash-completions-for-kubectl.html

Add backend APIs to your apps in minutes with the Hasura platform. Take it for a spin here: https://hasura.io

This post was originally published on 22-May, 2016


Hasura is an open-source engine that gives you realtime GraphQL APIs on new or existing Postgres databases, with built-in support for stitching custom GraphQL APIs and triggering web hooks on database changes.


Hasura

Hasura

The Hasura GraphQL Engine gives you realtime, high performance GraphQL on any Postgres app. Now supports event triggers for use with serverless.

Read More