Kubernetes v1.9.1 单机版本一键安装脚本 自己部署并测试通过的,脚本如下: 1#!/bin/bash 2# ---------------------------------------- 3# kubernetes v1.9.1 单机一键部署脚本 4# 用于实验环境 5# CentOS 7.2.1511下测试OK 6# Powered by Jerry Wong 7# 2018-03-15 hzde0128@live.cn 8# ---------------------------------------- 9 10function get_local_ip() { 11 IP_ADDR=`ip addr | grep inet | grep -Ev '127|inet6' | awk '{print $2}' | awk -F'/' '{print $1}'` 12 export NODE_IP=${IP_ADDR} 13} 14 15function basic_settings() { 16 getenforce | grep Disabled > /dev/null 17 if [ $? -ne 0 ]; then 18 sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config 19 fi 20 systemctl stop firewalld 21 systemctl disable firewalld 22} 23 24 25function install_docker()……

阅读全文