<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>KongMesh on Wenhan blog</title>
    <link>https://wenhan.blog/tags/kongmesh/</link>
    <description>Recent content in KongMesh on Wenhan blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>ja-JP</language>
    <lastBuildDate>Wed, 23 Oct 2024 23:49:19 +0900</lastBuildDate><atom:link href="https://wenhan.blog/tags/kongmesh/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>K3s &#43; kong Mesh deployment</title>
      <link>https://wenhan.blog/posts/20241023_k3s_kong_mesh/</link>
      <pubDate>Wed, 23 Oct 2024 23:49:19 +0900</pubDate>
      
      <guid>https://wenhan.blog/posts/20241023_k3s_kong_mesh/</guid>
      <description>Kong Meshは、サービスメッシュの管理を簡素化するためのプラットフォームで、マイクロサービス間の通信を安全かつ効率的に管理します。セキュリティ、可観測性、トラフィック制御といった機能を提供し、サイドカーアーキテクチャを利用して、各サービス間の通信をプロキシします。KubernetesやVMに対応し、異なる環境間でも統一したネットワーク管理を実現します。これにより、開発者はアプリケーションに集中でき、運用の複雑さを軽減できます。
この記事は、Kong Meshのデプロイ方法と、ポリシーの使い方をメモします。
K8s 環境の準備 標準のk8s環境であればどれでも大丈夫ですが、今回自分はk3sを使います。
1 2 export INSTALL_K3S_EXEC=&amp;#34;--tls-san &amp;lt;ip address&amp;gt; --write-kubeconfig ~/.kube/config --write-kubeconfig-mode 644&amp;#34; curl -sfL https://get.k3s.io | sh - shの前に INSTALL_K3S_CHANNEL=v1.24.4+k3s1みたいのを入れればインストールするバージョンを指定できますが、省略する場合は最新のバージョンになります。
1 2 3 kubectl get node NAME STATUS ROLES AGE VERSION wenhan-demo Ready control-plane,master 5m56s v1.30.4+k3s1 Kong Meshのデプロイメント 今回はまずシンプルなSingle Zone構成をデプロイします。
Kumactl kumactlは、Kong MeshやKumaの管理用CLIツールで、サービスメッシュの設定やリソースの操作を簡単に行えます。CLIコマンドで、メッシュのデプロイ、ポリシー設定、監視が可能です。 以下の手順でkumactlを展開し、PATHにも追加します。 こちらも同じく、VERSIONを省略したら最新のバージョンがインストールされます。
1 2 3 4 curl -L https://docs.konghq.com/mesh/installer.sh | VERSION=2.8.2 sh - cd kong-mesh-2.8.2/bin export PATH=$(pwd):$PATH Kong Mesh Control Plane 以下のコマンドでKong Mesh Control Planeをk8s上にデプロイします。 ここで初めてkumactlを使います。インストールに必要なCRDなどが生成してくれます。 --license-pathには、Kong Gatewayと同じライセンスファイルのパスをセットします。</description>
    </item>
    
  </channel>
</rss>
