#!/bin/bash bootflag='/.manufactured' groot='/opt/coins-demo' k8sDemoWA () { reset echo 'Disabling swap space...' sync && swapoff -a && sed -i '/ swap / s/^/#/' /etc/fstab } k8sDeploy () { echo 'Installing K8s...' cd ${groot}/contrib/ansible && \ ansible-playbook bootstrap-node.yml && \ ansible-playbook init-cluster.yml } InstallIngress () { } if [ ! -f ${bootflag} ]; then touch ${bootflag} k8sDemoWA; k8sDeploy; sync; reboot; fi