INSTALLING KUBERNETES ON CENTOS7

[RUN ALL BELOW COMMADS on ALL NODES] yum update yum install -y epel-release yum install docker [v1.11 or 1.12 or 1.13] setup kubernates respos kubeadm kubectl kubelet # cat kubernetes.repo 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 setenforce 0 yum install -y kubelet kubeadm kubectl Add host entry in /etc/hosts systemctl start Docker swapoff /dev/centos/swap […]

Read more
k8s ansible install

Ansible role to setup 1 master +2 node kubernetes cluster (more nodes can be added) setup centos VMs configure hostnames Update hosts file template in ../roles/kubernetes-deploy/files/hosts.template with host names and ipaddress setup password less auth between your Ansible host and Kubernetes nodes $ ssh-copyid root@kube-nodes? setup Ansible inventory kube-master.rmohan.com hostrole=master kube-node1.rmohan.com hostrole=node kube-node2.rmohan.com hostrole=node Run […]

Read more
Get YAML for deployed Kubernetes

ombining other answers, this is what I came up with for bash: for n in $(kubectl get -o=name pvc,configmap,serviceaccount,secret,ingress,service,deployment,statefulset,hpa,job,cronjob) do mkdir -p $(dirname $n) kubectl get -o=yaml –export $n > $n.yaml done kubectl get all –export=true -o yaml !/bin/env bash i=$((0)) for n in $(kubectl get -o=custom-columns=NAMESPACE:.metadata.namespace,KIND:.kind,NAME:.metadata.name pv,pvc,configmap,ingress,service,secret,deployment,statefulset,hpa,job,cronjob –all-namespaces | grep -v ‘secrets/default-token’) do if […]

Read more
Kubernetes install centos7

Kubeadm quickly builds a k8s cluster surroundings Master01: 192.168.1.110 (minimum 2 core CPU) node01: 192.168.1.100 planning Services network: 10.96.0.0/12 Pod network: 10.244.0.0/16 Configure hosts to resolve each host vim /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.1.110 master01 192.168.1.100 node01 Synchronize each host time yum install -y ntpdate ntpdate time.windows.com 14 […]

Read more
kubernetes

two lines info my /etc/sysctl.conf net.bridge.bridge-nf-call-ip6tables = 1 net.bridge.bridge-nf-call-iptables = 1 sysctl net.bridge.bridge-nf-call-iptables=1 swapoff -a firewall-cmd –reload modprobe br_netfilter echo ‘1’ > /proc/sys/net/bridge/bridge-nf-call-iptables kubeadm reset echo ‘Environment=”KUBELET_EXTRA_ARGS=–fail-swap-on=false”‘ >> /etc/systemd/system/kubelet.service.d/10-kubeadm.conf systemctl daemon-reload systemctl restart kubelet kubeadm init [root@k8s-master ~]# mkdir -p $HOME/.kube [root@k8s-master ~]# cp -i /etc/kubernetes/admin.conf $HOME/.kube/config [root@k8s-master ~]# chown $(id -u):$(id -g) $HOME/.kube/config Step […]

Read more
Kubernetes basic concepts study notes

Kubernetes (often called K8s) is an open source system for automatically deploying, extending, and managing containerized applications, and is an “open source version” of Google’s internal tools, Borg. Kubernetes is currently recognized as the most advanced container cluster management tool. After the release of version 1.0, Kubernetes has been developing at a faster speed and […]

Read more

Hit Counter provided by dental implants orange county