Get the App
SLTechnology News&Howtos  ›  Servers  › 

Install minikube on physical machine

Shulou Source: shulou.com Published: 2022-06-03 08:58:36 12月06日 Update

Kubernetes (K8s) is an open source platform for automating container operations. Based on this platform, you can perform operations such as container deployment, resource scheduling and cluster expansion. If you have ever used a Docker deployment container, you can think of Docker as a component used at the bottom of Kubernetes, and Kubernetes is the upper encapsulation of Docker, through which you can easily manage Docker clusters. Today we use minikube to deploy Kubernetes clusters on a stand-alone machine in order to give us a preliminary understanding of K8s.

Minikube supports the following Kubernetes features:

DNS

NodePorts

ConfigMaps and Secrets

Dashboards

Container runtime: Docker, CRI-O, and containerd

Enable CNI (Container Network Interface)

Ingress

Turn off security policy

/ usr/bin/systemctl stop firewalld/usr/bin/systemctl disable firewalld/usr/sbin/iptables-F & & / usr/sbin/iptables-X & / usr/sbin/iptables-F-t nat & & / usr/sbin/iptables-X-t nat & / usr/sbin/iptables-P FORWARD ACCEPT/usr/sbin/iptables-P FORWARD ACCEPT/usr/bin/sed-I's Band SELINUXPRENTING for FORWARD ACCEPT/usr/bin/sed

two。 Install docker

Yum install-y epel-release/usr/bin/yum install-y conntrack wget net-tools jq yum-utils ntpdate ntp ipvsadm ipset device-mapper-persistent-data iptables curl sysstat libseccomp wget lrzsz bash-completionyum-config-manager-- add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repoyum install-y docker-ce-18.09.4 docker-ce-cli-18.09.4systemctl start dockersystemctl enable docker

3. Load all node IPVS modules

Usr/sbin/modprobe ip_vs/usr/sbin/modprobe ip_vs_rr/usr/sbin/modprobe ip_vs_wrr/usr/sbin/modprobe ip_vs_sh/usr/sbin/modprobe nf_conntrack_ipv4

4. Turn off swap caching

/ usr/sbin/swapoff-a/usr/bin/sed-I'/ swap / s / ^\ (. *\) $/ #\ 1Mobigg'/ etc/fstab

5. Optimize kernel parameters

Cat > / etc/sysctl.d/k8s.conf

Tags: Driver run cluster command container program image driver version environment component support function parameter can be passed that is platform time is in the step Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL OPPO Reno Microsoft Shulou Information Shulou Technology