Preparing:
yum update -y
modprobe br_netfilter
sysctl net.bridge.bridge-nf-call-iptables=1
sysctl net.bridge.bridge-nf-call-ip6tables=1

cat <<EOF >  /etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
EOF
sysctl --system
Install repository:
cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
        https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF
Install k8s, docker.. vv:
setenforce 0
yum install -y ebtables ethtool docker kubelet kubeadm kubectl
start docker, kubelet
systemctl enable docker && systemctl start docker
systemctl enable kubelet && systemctl start kubelet
Init kubernetes cluster:
kubeadm init --pod-network-cidr=10.244.0.0/16 --token-ttl 0
Config kubectl:
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
Pod/cluster network setup
kubectl apply -f https://raw.githubusercontent.com/kenshin17/Scripts/master/kubernetes/network/kube-flannel.yaml
Configure stub-domain and upstream DNS servers
apiVersion: v1
kind: ConfigMap
metadata:
  name: kube-dns
  namespace: kube-system
data:
  stubDomains: |
    {"acme.local": ["1.2.3.4"]}
  upstreamNameservers: |
    ["8.8.8.8", "8.8.4.4"]

more: https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/
https://amasucci.com/post/2017/10/22/how-to-install-kubernetes-1.8.1-on-centos-7.3/