<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Prepare k8s Cluster :: Ay Docs</title>
    <link>https://ops.docs.72602.space/kubernetes/cluster/index.html</link>
    <description>Install Kuberctl MIRROR=&#34;files.m.daocloud.io/&#34; VERSION=$(curl -L -s https://${MIRROR}dl.k8s.io/release/stable.txt) [ $(uname -m) = x86_64 ] &amp;&amp; curl -sSLo kubectl &#34;https://${MIRROR}dl.k8s.io/release/${VERSION}/bin/linux/amd64/kubectl&#34; [ $(uname -m) = aarch64 ] &amp;&amp; curl -sSLo kubectl &#34;https://${MIRROR}dl.k8s.io/release/${VERSION}/bin/linux/arm64/kubectl&#34; chmod u+x kubectl mkdir -p ${HOME}/bin mv -f kubectl ${HOME}/bin Then, you can choose Building a K8s Cluster, you can choose one of the following methods.&#xA;Kind K3s Minikube</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Thu, 07 Mar 2024 15:00:59 +0800</lastBuildDate>
    <atom:link href="https://ops.docs.72602.space/kubernetes/cluster/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Kind</title>
      <link>https://ops.docs.72602.space/kubernetes/cluster/kind/index.html</link>
      <pubDate>Thu, 07 Mar 2024 15:00:59 +0800</pubDate>
      <guid>https://ops.docs.72602.space/kubernetes/cluster/kind/index.html</guid>
      <description>k8s in th docker</description>
    </item>
    <item>
      <title>K3s</title>
      <link>https://ops.docs.72602.space/kubernetes/cluster/k3s/index.html</link>
      <pubDate>Thu, 07 Mar 2024 15:00:59 +0800</pubDate>
      <guid>https://ops.docs.72602.space/kubernetes/cluster/k3s/index.html</guid>
      <description>Preliminary Hardware Requirements:&#xA;Server need to have at least 2 cores, 2 GB RAM Agent need 1 core , 512 MB RAM Operating System:&#xA;K3s is expected to work on most modern Linux systems. Network Requirements:&#xA;The K3s server needs port 6443 to be accessible by all nodes. If you wish to utilize the metrics server, all nodes must be accessible to each other on port 10250. Init K3s Server [At Server End] curl -sfL https://rancher-mirror.rancher.cn/k3s/k3s-install.sh | INSTALL_K3S_MIRROR=cn sh -s - server --cluster-init --flannel-backend=vxlan --node-taint &#34;node-role.kubernetes.io/control-plane=true:NoSchedule&#34; --disable traefik append --disable traefik</description>
    </item>
    <item>
      <title>Minikube</title>
      <link>https://ops.docs.72602.space/kubernetes/cluster/minikube/index.html</link>
      <pubDate>Thu, 07 Mar 2024 15:00:59 +0800</pubDate>
      <guid>https://ops.docs.72602.space/kubernetes/cluster/minikube/index.html</guid>
      <description>Preliminary Minikube binary has installed, if not check 🔗link&#xA;Hardware Requirements:&#xA;At least 2 GB of RAM per machine (minimum 1 GB) 2 CPUs on the master node Full network connectivity among all machines (public or private network) Operating System:&#xA;Ubuntu 20.04/18.04, CentOS 7/8, or any other supported Linux distribution. Network Requirements:&#xA;Unique hostname, MAC address, and product_uuid for each node. Certain ports need to be open (e.g., 6443, 2379-2380, 10250, 10251, 10252, 10255, etc.) [Optional] Disable aegis service and reboot system for Aliyun sudo systemctl disable aegis &amp;&amp; sudo reboot Customize your cluster minikube start --driver=podman --image-mirror-country=cn --kubernetes-version=v1.33.1 --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers --cpus=6 --memory=20g --disk-size=50g --force Restart minikube minikube stop &amp;&amp; minikube start Add alias alias kubectl=&#34;minikube kubectl --&#34; Stop And Clean minikube stop &amp;&amp; minikube delete --all --purge Forward # execute on your local machine Remote Local⬇️ __________________ ________________________________ ╱ ╲╲ wire/wifi ╱ [ Minikube ] 17.100.x.y ╲╲ ╱ ╱╱ &lt;-------------&gt; ╱ ╱╱ ╱ telnet 192.168.a.b ╱ ╱ &gt; execute ssh... at 192.168.a.b ╱ ╲___________________╱ IP: 10.45.m.n ╲_________________________________╱ IP: 192.168.a.b ssh -i ~/.minikube/machines/minikube/id_rsa docker@$(minikube ip) -L &#39;*:30443:0.0.0.0:30443&#39; -N -f and then you can visit https://minikube.sigs.k8s.io/docs/start/ for more detail.</description>
    </item>
  </channel>
</rss>