<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>网络 - 标签 - 研发日志 · R&amp;D Log</title><link>https://rd163.visword.com/tags/%E7%BD%91%E7%BB%9C/</link><description>网络 - 标签 - 研发日志 · R&amp;D Log</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>whutluohui@gmail.com (小智晖)</managingEditor><webMaster>whutluohui@gmail.com (小智晖)</webMaster><copyright>本作品采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可。</copyright><lastBuildDate>Thu, 08 May 2025 00:00:00 +0800</lastBuildDate><atom:link href="https://rd163.visword.com/tags/%E7%BD%91%E7%BB%9C/" rel="self" type="application/rss+xml"/><item><title>C/C++面试基础知识</title><link>https://rd163.visword.com/posts/cpp-interview/</link><pubDate>Thu, 08 May 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/cpp-interview/</guid><description><![CDATA[<h2 id="cc-basics" class="headerLink">
    <a href="#cc-basics" class="header-mark"></a>C/C++ Basics</h2><h3 id="如何定义一个只能在堆上栈上生成对象的类" class="headerLink">
    <a href="#%e5%a6%82%e4%bd%95%e5%ae%9a%e4%b9%89%e4%b8%80%e4%b8%aa%e5%8f%aa%e8%83%bd%e5%9c%a8%e5%a0%86%e4%b8%8a%e6%a0%88%e4%b8%8a%e7%94%9f%e6%88%90%e5%af%b9%e8%b1%a1%e7%9a%84%e7%b1%bb" class="header-mark"></a>如何定义一个只能在堆上（栈上）生成对象的类？</h3><blockquote>
  <p><a href="https://www.nowcoder.com/questionPractice/0a584aa13f804f3ea72b442a065a7618" target="_blank" rel="noopener noreferrer">如何定义一个只能在堆上（栈上）生成对象的类?</a></p>

</blockquote><h4 id="只能在堆上" class="headerLink">
    <a href="#%e5%8f%aa%e8%83%bd%e5%9c%a8%e5%a0%86%e4%b8%8a" class="header-mark"></a>只能在堆上</h4><p>方法：将析构函数设置为私有</p>
<p>原因：C++ 是静态绑定语言，编译器管理栈上对象的生命周期，编译器在为类对象分配栈空间时，会先检查类的析构函数的访问性。若析构函数不可访问，则不能在栈上创建对象。</p>]]></description></item><item><title>K8s 跨集群通信</title><link>https://rd163.visword.com/posts/k8s-pod-to-pod-different-clusters/</link><pubDate>Sun, 12 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/k8s-pod-to-pod-different-clusters/</guid><description>&lt;p>跨集群 Pod 通信（Cross-Cluster Pod-to-Pod Communication）是多集群架构里最常被问到的问题之一。按底层网络是否互通，可以分两种情况讨论。&lt;/p></description></item><item><title>K8s 网络插件 Flannel</title><link>https://rd163.visword.com/posts/k8s-cni-flannel/</link><pubDate>Sun, 12 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/k8s-cni-flannel/</guid><description><![CDATA[<h2 id="cnicontainer-network-interface" class="headerLink">
    <a href="#cnicontainer-network-interface" class="header-mark"></a>CNI（Container Network Interface）</h2><p>CNI 全称为 Container Network Interface，是用来定义容器网络的一个规范。<a href="https://github.com/containernetworking/cni" target="_blank" rel="noopener noreferrer">containernetworking/cni</a> 是一个 CNCF 的 CNI 实现项目，包括基本的 bridge、macvlan 等基本网络插件。</p>]]></description></item><item><title>K8s 网络插件 SRIOV-CNI</title><link>https://rd163.visword.com/posts/k8s-cni-sriov/</link><pubDate>Sun, 12 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/k8s-cni-sriov/</guid><description><![CDATA[<p>SRIOV-CNI最早由腾讯互娱计算资源团队开发， 后被 CNI 社区接纳，并被Intel关注和<a href="https://github.com/Intel-Corp/sriov-cni" target="_blank" rel="noopener noreferrer">Fork</a>。</p>
<p>SRIOV-CNI 为K8s 提供一种 Underlay 网络。 其主要是 基于 网卡虚拟化技术 SR-IOV 实现的。</p>]]></description></item><item><title>Kubernetes Gateway API 简介</title><link>https://rd163.visword.com/posts/k8s-gateway-api-intro/</link><pubDate>Sun, 12 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/k8s-gateway-api-intro/</guid><description><![CDATA[<h2 id="背景" class="headerLink">
    <a href="#%e8%83%8c%e6%99%af" class="header-mark"></a>背景</h2><p>Kubernetes Gateway API 是 Kubernetes 社区（SIG-Network）在原有 Ingress 基础上设计的一套全新流量入口 API 规范，项目最早以 <code>service-apis</code> 的名义于 2019 年作为沙箱项目启动，后更名为 Gateway API。它以 CRD 形式安装到集群中，并不随 Kubernetes 核心版本直接发布。相比 Ingress，Gateway API 定位为下一代入口 API，提供了更丰富的能力：支持 HTTP 之外更多协议（如 TCP、UDP、TLS、gRPC 等），具备更强的扩展性，可以通过 CRD 灵活新增特定的 Gateway 类型（例如 AWS Gateway、Envoy Gateway 等），并支持更细粒度的流量路由规则，可以精确到服务级别；而 Ingress 的最小路由单元通常是路径，主要面向 HTTP 流量。</p>]]></description></item><item><title>kubernetes 网络技术与服务通信</title><link>https://rd163.visword.com/posts/k8s-network-and-service/</link><pubDate>Sun, 12 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/k8s-network-and-service/</guid><description><![CDATA[<h2 id="1-引言" class="headerLink">
    <a href="#1-%e5%bc%95%e8%a8%80" class="header-mark"></a>1. 引言</h2><p>K8s 是一个开源的容器编排平台，用来自动化部署、管理容器化的应用程序, Bcs 是腾讯开源的容器管理平台。后者相较于前者，功能要更丰富些，bcs主要聚焦于复杂应用场景下的容器化应用的部署和整合， 除了兼容原生的的K8s外，对于游戏的这种场景提供了特别的适配。</p>]]></description></item></channel></rss>