メインコンテンツへスキップ
  1. 記事一覧/

WSL2+k8s開発環境構築

·1 分
tenn25
著者
tenn25
技術メモとボードゲーム制作の記録を綴る個人ブログ

WSL2
#

Qiita
https://qiita.com/tomokei5634/items/27504849bb4353d8fef8

すでに WSL1 が入ってたので切り替え
https://qiita.com/yanoshi/items/802e586f5f939081b08a


DockerDesktop
#

  1. Docker Desktop インストール
  2. k8s 有効化
  3. docker の確認
docker run -d -p 80:80 docker/getting-started
docker stop  955
docker rm 955
  1. kubectl の確認
kubectl run test-pod --images docker/getting-started

helm(オプション)
#

インストール
https://helm.sh/ja/docs/intro/install/

curl https://helm.baltorepo.com/organization/signing.asc | sudo apt-key add -
sudo apt-get install apt-transport-https --yes
echo "deb https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
sudo apt-get update
sudo apt-get install helm

使い方
https://helm.sh/ja/docs/intro/using_helm/

helm repo add brigade https://brigadecore.github.io/charts
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /home/tenn25/.kube/config
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /home/tenn25/.kube/config

権限を 600 に変更

helm パッケージの検索サイト
https://artifacthub.io/

helm search repo brigade
$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install my-release bitnami/wordpress
helm delete my-release