Giter Site home page Giter Site logo

k8stestcluster's Introduction

k8stestcluster

add the esri user to the docker group sudo usermod -aG docker $USER

configure docker to start on book sudo systemctl enable docker

2. Install kubeadm, kubelet, kubectl and initialize master.

https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/

Swap disabled. You MUST disable swap in order for the kubelet to work properly. sudo swapoff -a

sudo vi /etc/fstab then comment out the first line and save

Certain ports are open on your machines.

Control plane

sudo ufw allow 6443/tcp
sudo ufw allow 2379:2380/tcp
sudo ufw allow 10250:10252/tcp

worker nodes

sudo ufw allow 10250/tcp
sudo ufw allow 30000:32767/tcp

Install kubeadm, kubelet, kubectl

sudo apt-get update && sudo apt-get install -y apt-transport-https curl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
cat <<EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list
deb https://apt.kubernetes.io/ kubernetes-xenial main
EOF
sudo apt-get update
sudo apt-get install -y kubelet kubeadm kubectl
sudo apt-mark hold kubelet kubeadm kubectl

Use flannel as the pod network.

sudo sysctl net.bridge.bridge-nf-call-iptables=1`
`sudo kubeadm init --pod-network-cidr=10.244.0.0/16

Make kubectl work for your non-root user

mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config

kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/2140ac876ef134e0ed5af15c65e414cf26827915/Documentation/kube-flannel.yml

test: kubectl get pods --all-namespaces look for coreDNS status

copy the kube config to your local machine: scp esri@k8cluster1:.kube/config ~/.kube/

bonus notes:

find ubuntu version lsb_release -a

is nftables installed? look in /usr/sbin apt list --installed | grep nftables

sudo!! (repeats last command with sudo prepended)

ctrl+A goes to beginning of line ctrl+E goes to end of line

k8stestcluster's People

Contributors

bweisberg avatar rob-fletcher avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.