Closed8
Argo CDをArgo CDで管理してみる

作業場所はここ

下の公式ドキュメントに従ってself-managed Argo CDのマニフェストをコピーしてくる。

試しにkubectl kustomize
してみると警告が出た。
> kubectl kustomize argocd/
# Warning: 'patchesStrategicMerge' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically.
従って変更するのもちょっと骨っぽいのでとりあえずこのまま進んで動くところまで持っていきたい。

Namespace argocd
を追加。

kubectl apply -k argocd/
でKustomize形式のままApply。リソースが作られていく。

諸事情によりクラスタを作り直したので初めから。まずはGetting Startedに従って普通にインストールしてみる。
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml

ブラウザからArgo CDへアクセスするためにport-forwardする。
kubectl port-forward svc/argocd-server -n argocd 8080:443
argocd CLIのインストール
curl -sSL -o argocd-linux-amd64 https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64
sudo install -m 555 argocd-linux-amd64 /usr/local/bin/argocd
rm argocd-linux-amd64
Argo CDの初期パスワードの取得
❯ argocd admin initial-password -n argocd
**********
ブラウザでlocalhost:8080
にアクセスして、admin/<上のコマンドで表示されたパスワード>を使ってログインする。

ここにあるようなKustomizationファイルを作成して、このマニフェストをArgo CDで読み込んでArgo CD Applicationを作成する。
これでSelf-managedのArgo CDが完成🎉
このスクラップは2024/03/23にクローズされました