Let's look at some basic kubectl output options.
Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).
We can start with:
kubectl get no
#!/bin/bash | |
# Author: Delweng Zheng <delweng@gmail.com> | |
if $(lsmod | grep -q "ip_vs"); then | |
exit 0 | |
fi | |
if [ -f /etc/redhat-release ]; then | |
RELEASE="centos" | |
elif cat /etc/issue | grep -Eqi "debian"; then |
# Guide | |
# Configure the essential configurations below and do the following: | |
# | |
# Repository Creation: | |
# cap deploy:repository:create | |
# git add . | |
# git commit -am "initial commit" | |
# git push origin master | |
# | |
# Initial Deployment: |