# run argocd in k3d (with istio) :::info - 本筆記安裝的 k3s 版本使用 `v1.32.7-k3s1`,此版本為 argocd 3.0 在 2025/08/01 這個時間點所支援的版本 [argocd 的 k8s 版本支援表](https://argo-cd.readthedocs.io/en/stable/operator-manual/installation/#tested-versions) - 本筆記安裝的 istio 版本使用 `1.26.3`,此版本支援 k3s 所使用的 1.32 版;[istio k8s 支援清單](https://istio.io/latest/docs/releases/supported-releases/#support-status-of-istio-releases) - k3d 的命令說明可以參考我的 [利用 k3d 建立 k8s cluster](https://hackmd.io/@YuChia/create-k3s-cluster-use-k3d) 筆記 - 在 windows 內可以利用 C:\Windows\System32\drivers\etc\hosts 這個檔案設定 domain ::: :::warning 此筆記中所提供的 cli 都是使用 linux / macos 中可執行的語法,若要用在 windows 上使用的話,請將換行符號 \\ 更換成 \` ::: ## init k3d & install istio :::warning 我的 [argocd-deploy](https://github.com/YuChia-Wei/argoproj-deploy) 部署設定已更新 argocd 到 3.0 版本,請先參考 [argocd 官方 k8s 支援版本](https://argo-cd.readthedocs.io/en/stable/operator-manual/installation/#tested-versions) 後來決定要安裝哪個版本的 k8s 來進行測試。 argocd 3.0 版目前 (2025/08/01) 支援 1.32 ~ 1.29 版本的 k8s 配合 k8s 使用的版本,此處 istio 也是指定版本安裝,並使用支援 k8s 1.32 的 istio 1.26.3。 [istio 支援清單](https://istio.io/latest/docs/releases/supported-releases/#support-status-of-istio-releases) ::: ```bash k3d cluster create service-lab \ --servers 1 --agents 2 \ --port 8443:443@loadbalancer --port 8080:80@loadbalancer \ --api-port 6443 \ --image rancher/k3s:v1.32.7-k3s1 \ --k3s-arg '--disable=traefik@server:0' ## 建立好叢集後,kubeconfig 會自動設定到 k3d 建立的叢集 helm repo add istio https://istio-release.storage.googleapis.com/charts helm repo update helm install istio-base istio/base --version 1.26.3 -n istio-system --create-namespace --wait helm install istiod istio/istiod --version 1.26.3 -n istio-system --create-namespace --wait helm install istio-ingressgateway istio/gateway --version 1.26.3 -n istio-system --create-namespace --wait ``` ### ref [istio doc - install with helm](https://istio.io/latest/docs/setup/install/helm/) ## install argocd (non-ha) ```bash kubectl create namespace argocd git clone https://github.com/YuChia-Wei/argoproj-deploy.git cd argoproj-deploy\deploy\kustomization\argocd\non-ha kubectl apply -k ./ # 等待安裝完成即可 # 如果出錯,重跑一次就好 ``` ## sign in argocd ```bash # 取得密碼 ## in linux kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d ## in windows ## 自行用 base64 解碼取得的字串 kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" ``` ## windows DNS windows 內部網址會被記錄在以下檔案 ``` C:\Windows\System32\drivers\etc\hosts ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up