Use the following commands to add the kubectl autocomplete to zsh:
mkdir -p ~/.oh-my-zsh/custom/plugins/kubectl-autocomplete/
kubectl completion zsh > ~/.oh-my-zsh/custom/plugins/kubectl-autocomplete/kubectl-autocomplete.plugin.zsh| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |
| FROM ruby:2.3-onbuild | |
| VOLUME /opt/postal/config | |
| ENV LOG_TO_STDOUT 1 | |
| ENV AM_CONFIG_ROOT /opt/postal/config | |
| RUN gem install procodile | |
| RUN apt-get update -qq && apt-get install -yqq nodejs |
kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
| #!/bin/bash | |
| #Script to setup M-node master node and N-node Worker Node running Docker 1.13.1 on Apple Mac Virtualbox | |
| echo "--Setting up Docker Machine---" | |
| curl -L https://github.com/docker/machine/releases/download/v0.13.0/docker-machine-`uname -s`-`uname -m` >/usr/local/bin/docker-machine && \ | |
| chmod +x /usr/local/bin/docker-machine | |
| echo "--Verifying Docker Machine Installation--" | |
| docker-machine version |
| # kubectl context switcher + completion | |
| function kube-context() { | |
| kubectl config use-context $@ | |
| } | |
| _kube-context_completions() { | |
| local -a options | |
| options=() | |
| for c in $(kubectl config view -o jsonpath='{.contexts[*].name}'); do | |
| d=$(echo $c | awk 'BEGIN { FS="_" }; { printf "%11s: %-15s %-14s", $4, $3, $2 }') |
| #! /bin/bash | |
| wordpressPath=/srv/wp01 | |
| wordpressName=wordpress01 | |
| wordpressPwd=pAssw0rd | |
| wordpressUrl=wordpress01.example.com | |
| ################################## | |
| mkdir -p "$wordpressPath"/db |
| .git | |
| .gitignore | |
| /doc | |
| .yardoc | |
| coverage | |
| jsdoc | |
| /tmp | |
| /log | |
| Dockerfile | |
| Dockerfile.prod |