<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Cloud on Henry Du Blog</title>
    <link>https://www.henrydu.com/categories/cloud/</link>
    <description>Recent content in Cloud on Henry Du Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 01 Dec 2021 00:00:00 +0000</lastBuildDate>
    
	<atom:link href="https://www.henrydu.com/categories/cloud/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Cross-host Container Networks</title>
      <link>https://www.henrydu.com/2021/12/01/cross-host-container-network-vxlan-mode/</link>
      <pubDate>Wed, 01 Dec 2021 00:00:00 +0000</pubDate>
      
      <guid>https://www.henrydu.com/2021/12/01/cross-host-container-network-vxlan-mode/</guid>
      <description>Cross-host Container Networks - VXLAN mode VXLAN We have reviewed the UDP mode of cross-host container networks. We realized that there will be a performance issue because the IP packets have to be processed by the user space application. VXLAN allows us to handle the encapsulation/decapsulation in Linux kernel space.
Virtual Extensible LAN a.k.a VXLAN (RFC7348) is supported by Linux kernel. It is able to encapsulate the IP packets by another layer and construct the overlay networks like the UDP tunnel does.</description>
    </item>
    
    <item>
      <title>Cross-host Container Networks</title>
      <link>https://www.henrydu.com/2021/11/28/cross-host-container-network-udp-mode/</link>
      <pubDate>Sun, 28 Nov 2021 00:00:00 +0000</pubDate>
      
      <guid>https://www.henrydu.com/2021/11/28/cross-host-container-network-udp-mode/</guid>
      <description>Cross-host Container Networks - UDP mode In the previous article, we walked through containers network in one Linux host. However, by default Docker configuration, one container is unable to communicate with the other container in different host.
In order to solve cross-host container communication problem, there are many solutions. We will go through some of them one by one. First and very famous one is Flannel CNI.
Flannel CNI Flannel CNI project is the one of the projects developed by CoreOS.</description>
    </item>
    
    <item>
      <title>Container Networks</title>
      <link>https://www.henrydu.com/2021/11/23/container-networks/</link>
      <pubDate>Tue, 23 Nov 2021 00:00:00 +0000</pubDate>
      
      <guid>https://www.henrydu.com/2021/11/23/container-networks/</guid>
      <description>Container Networks Network Namespace Linux container network stack is isolated in its own network namespace. The network stack includes: Network Interface, Loopback Device, Routing Table and iptables chains/rules. The containerized process will use its own network stack to send and response the network request. If the running container wants to use the host network stack, the --net=host option will be used.
Let&amp;rsquo;s start a Nginx container by sharing the host network.</description>
    </item>
    
    <item>
      <title>Cgroups: Container Resource Limitation</title>
      <link>https://www.henrydu.com/2021/11/20/cgroups-container-resource-limitation/</link>
      <pubDate>Sat, 20 Nov 2021 00:00:00 +0000</pubDate>
      
      <guid>https://www.henrydu.com/2021/11/20/cgroups-container-resource-limitation/</guid>
      <description>Container Resource Limitation Cgroups A container is running as a single process in a host. If multiple containers are running in the same host, there is a chance that one container will occupy the full CPU, while others are in the starvation situation. Therefore, it would be better to have a resource limitation, such that, one container will not fully share the host resources, such as CPU, memory etc.
Linux Cgroups is the feature to limit resources for a process in Linux kernel.</description>
    </item>
    
    <item>
      <title>Deep Dive Kubernetes Notes: Container Isolation</title>
      <link>https://www.henrydu.com/2021/11/13/deep-dive-kubernetes-container-pid-isolation/</link>
      <pubDate>Sat, 13 Nov 2021 00:00:00 +0000</pubDate>
      
      <guid>https://www.henrydu.com/2021/11/13/deep-dive-kubernetes-container-pid-isolation/</guid>
      <description>Deep Dive Kubernetes Notes: Container Process Isolation Process The binary executables are stored in the file system as a file. When the operating system starts to run one executable, it will load the file into the memory. For example, Linux executable has ELF format. In memory layout, it has a text area containing all the instructions. The instruction will be executed by CPU as an execution path. In the meantime, there may be files, I/O devices open and close associated with these executions.</description>
    </item>
    
    <item>
      <title>K8S Runtime: With or Without Docker</title>
      <link>https://www.henrydu.com/2020/12/12/k8s-runtime/</link>
      <pubDate>Sat, 12 Dec 2020 00:00:00 +0000</pubDate>
      
      <guid>https://www.henrydu.com/2020/12/12/k8s-runtime/</guid>
      <description>K8S Container Runtime Evolution With Docker In Kubernetes v1.20 release note, the major change is to deprecate dockershim, which means, K8S will never use Docker as container runtime. The Kubernetes community has written a blog post about this in detail.
The docker runtime is just one component of Docker suite. Developers still use Docker to compile a docker image, and use docker hub to store docker images, as a docker image repository.</description>
    </item>
    
    <item>
      <title>Cilium: K8S Service Load Balancing - Part 2</title>
      <link>https://www.henrydu.com/2020/12/03/cilium-service-lb-2/</link>
      <pubDate>Thu, 03 Dec 2020 00:00:00 +0000</pubDate>
      
      <guid>https://www.henrydu.com/2020/12/03/cilium-service-lb-2/</guid>
      <description>Cilium’s service LB based on eBPF/XDP The first part introduced K8S service. Now, we can focus on Cilium&amp;rsquo;s service LB based on eBPF/XDP.
Cilium agent Cilium service LB implements data path for all K8s service types via BPF.
 cilium-agent on each node watches kube-apiserver. cilium-agent observes the changes in K8S service. cilium-agent dynamically update BPF configuration according to changes in K8S service.   As the diagram shown above, there are two components realized the service</description>
    </item>
    
    <item>
      <title>Running A Simple Operator in Minikube</title>
      <link>https://www.henrydu.com/2020/10/24/running-a-simple-operator/</link>
      <pubDate>Sat, 24 Oct 2020 00:00:00 +0000</pubDate>
      
      <guid>https://www.henrydu.com/2020/10/24/running-a-simple-operator/</guid>
      <description>Running A Simple Operator in Minikube Introduction You may have heard of Kubernetes operator pattern. Maybe you have worked on one of projects that has Custom Resource Definition (CRD). Custom resource definitions are cool things once you define your custom resource on Kubernetes by using YAML. The Kubernetes API server component will implement CRUD API for you automatically. Then, you can use powerful Kubernetes clients, such as kubectl to interact with your own resources managed by Kubernetes.</description>
    </item>
    
    <item>
      <title>Kubernetes Creates Pods: Imperative vs Declarative</title>
      <link>https://www.henrydu.com/2020/09/13/k8s-creates-pods/</link>
      <pubDate>Sun, 13 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://www.henrydu.com/2020/09/13/k8s-creates-pods/</guid>
      <description>Kubernetes Creates Pods: Imperative vs Declarative Introduction Design and implementation microservices may have different approaches. During the design phase, we may need a quick proof of concept, or even multiple PoCs to compare. However, after we have a solid design, we may need to carefully plan how those microservices are working together in the cloud production. It demands us to specifically write Deployment, Service, ServiceAccount, ConfigMap etc. then, compile them to be a helm chart.</description>
    </item>
    
    <item>
      <title>Minikube Docker Image Management</title>
      <link>https://www.henrydu.com/2020/09/11/minikube-docker-image-management/</link>
      <pubDate>Fri, 11 Sep 2020 00:00:00 +0000</pubDate>
      
      <guid>https://www.henrydu.com/2020/09/11/minikube-docker-image-management/</guid>
      <description>Minikube manage docker images Minikube Minikube is a tool that make it easily to run Kubernetes locally. Installing minikube is very naturally for MacOS.
After install minikube, we can check minikube status
&amp;gt; minikube status minikube type: Control Plane host: Running kubelet: Running apiserver: Running kubeconfig: Configured We also can list default minikube pods
&amp;gt; kubectl get pods -n kube-system NAME READY STATUS RESTARTS AGE coredns-66bff467f8-lnt67 1/1 Running 0 10d etcd-minikube 1/1 Running 0 10d kube-apiserver-minikube 1/1 Running 0 10d kube-controller-manager-minikube 1/1 Running 0 10d kube-proxy-pqg98 1/1 Running 0 10d kube-scheduler-minikube 1/1 Running 0 10d storage-provisioner 1/1 Running 0 10d Create a nginx pod Let&amp;rsquo;s create a nginx service quickly</description>
    </item>
    
  </channel>
</rss>