Upgrade to Pro — share decks privately, control downloads, hide ads and more …

mirrordでKubernetes環境での開発体験を向上させる!

 mirrordでKubernetes環境での開発体験を向上させる!

mishio-n

July 30, 2024
Tweet

Other Decks in Technology

Transcript

  1. 自己紹介 Mishio Nagadome (@mishio-n) Sky株式会社 社内システムの開発、運用 SRE、プラットフォームエンジニアリング Kubernetes歴2年 CI/CD BackStageプラグイン作成

    *発表内容は私自身の見解であり、必ずしも所属する企業や組織の立場、戦略、意見を代表するものではありません。
  2. https://mirrord.dev/ https://github.com/metalbear-co/mirrord 「Develop Locally with Your Kubernetes Environment」 mirrord lets

    developers run local processes in the context of their Kubernetes environment. It’s meant to provide the benefits of running your service on a cloud environment (e.g. staging) without actually going through the hassle of deploying it there, and without disrupting the environment by deploying untested code. ”デプロイすることなく、Kubernetes環境でコードを動かせる”
  3. mirrordの設定 mirror と steal 2つのモードが用意されており、 デフォルトは mirror で通信をミラーリングする挙動になります。 このようなデフォルトの設定を変更する場合、jsonで設定ファイルを書いて読み込ませる必要があります。 //

    VS Code拡張を入れている場合、`mirrord.json`というファイル名にすると補完が効きます { "feature": { "network": { "incoming": "steal" } } } *現在はIstioなどサービスメッシュだとミラーリングはサポートされてないらしいです
  4. その他のオプション ポートを合わせなくても、マッピングすることが可能です。 { "feature": { "network": { "incoming": { "mode":

    "steal", // ローカルが3000で、リモート(ポッド)が3030 "port_mapping": [[3000, 3030]] } } } }