#!/bin/bash ## ## Script to automate the Kubernetes CentOS client side pieces ## yum install -y nginx mv kubernetes.default.svc.cluster.local.conf /etc/nginx/conf.d/kubernetes.default.svc.cluster.local.conf systemctl start nginx && sudo systemctl enable nginx kubectl get componentstatuses --kubeconfig admin.kubeconfig curl -H "Host: kubernetes.default.svc.cluster.local" -i http://127.0.0.1/healthz echo "Also applying RBAC roles to admin user" kubectl apply -f rbac_authorizations.yaml --kubeconfig admin.kubeconfig kubectl apply -f kube-apiserver_rbac.yaml --kubeconfig admin.kubeconfig echo "The next step is to create the Load Balancer"