xxxxプログラマのメモ

先人に感謝と敬意:自分の困ったこと調べたことのメモ

Privarte AKS 非対話型ログイン

コードからAKSにアクセスするために、サービスプリンシパルを活用
サービスプリンシパルにリソースのアクセス権を付与して、シークレットを作成

Service Principal - Azure Kubelogin
アプリケーションの定義 - ひびきSm@rtDB_Ver.4.4_Office365連携設定ガイド Edition 2

AKS マネージド Azure Active Directory 統合 - Azure Kubernetes Service | Microsoft Learn

Thanks!

hiromatsu.hatenablog.com

AKS Private Cluster の構築

いろんなところに記載の通り、VNet内にWindows VMを構築

  • Helm
  • azure cli
  • kubectl

をインストールしてハマる

How to switch to Azure kubelogin - Aptakube Blog

az aks install-cli
$targetDir="$env:USERPROFILE\.azure-kubelogin"
$oldPath = [System.Environment]::GetEnvironmentVariable("Path","User")
$oldPathArray=($oldPath) -split ";"
if(-Not($oldPathArray -Contains "$targetDir")) {
    write-host "Permanently adding $targetDir to User Path"
    $newPath = "$oldPath;$targetDir" -replace ";+", ";"
    [System.Environment]::SetEnvironmentVariable("Path",$newPath,"User")
    $env:Path = [System.Environment]::GetEnvironmentVariable("Path","User"),[System.Environment]::GetEnvironmentVariable("Path","Machine") -join ";"
}

にてなんとか解決


How to run kubectl for Private AKS cluster from user laptop - Microsoft Q&A

        • -

AKSのセキュリティは本当に大丈夫? Private AKS clusterを使ってAKSを守る - ログミーTech

プライベートでマルチテナントな AKS(Azure Kubernetes Service) を構築・運用する上で困ったこと - Qiita

Thanks!