티스토리 뷰
시작전 필요한 것
우선 쿠버네티스 클러스터 위에 argocd가 설치되어 있어야 한다
클러스터 밖, 운영체제 위에서 argocd cli에 접속할 수 있어야 한다
다음은 이 두 가지에 대한 공식문서이고 따라서 하면 된다.
https://argo-cd.readthedocs.io/en/stable/getting_started/
Getting Started - Argo CD - Declarative GitOps CD for Kubernetes
Getting Started Tip This guide assumes you have a grounding in the tools that Argo CD is based on. Please read understanding the basics to learn about these tools. Requirements Installed kubectl command-line tool. Have a kubeconfig file (default location i
argo-cd.readthedocs.io
https://argo-cd.readthedocs.io/en/stable/cli_installation/
Installation - Argo CD - Declarative GitOps CD for Kubernetes
Installation You can download the latest Argo CD version from the latest release page of this repository, which will include the argocd CLI. Linux and WSL Homebrew Download With Curl Download latest version curl -sSL -o /usr/local/bin/argocd https://github
argo-cd.readthedocs.io
curl -sSL -o /usr/local/bin/argocd https://github.com/argoproj/argo-cd/releases/latest/download/argocd-linux-amd64
chmod +x /usr/local/bin/argocd
Argocd 에 새로운 user 추가하는 법
우선 argocd 네임스페이스에 있는 argocd-cm 이라는 이름의 configmap을 edit한다
kubectl edit configmap argocd-cm -n argocd
그리고 다음과 같이 추가한다. (alice라는 user생성)
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-cm
namespace: argocd
labels:
app.kubernetes.io/name: argocd-cm
app.kubernetes.io/part-of: argocd
data:
# add an additional local user with apiKey and login capabilities
# apiKey - allows generating API keys
# login - allows to login using UI
accounts.alice: apiKey, login
# disables user. User is enabled by default
accounts.alice.enabled: "false"
cli에 다음과 같은 명령어를 입력한다
argocd login < 서버 주소 >
argocd account list
argocd account get --account alice
argocd account update-password --account alice
여기서 맨 아래 명령어가 소위 password change인데
문제는 current password를 입력하라고 나오는데 current password 를 셋팅한 적이 없다!
github을 찾아보니
admin password 를 쓰면 된다고 한다.
'CLOUD > Kubernetes' 카테고리의 다른 글
ingressClassName 기본으로 지정하기 (0) | 2021.10.28 |
---|---|
쿠버네티스 포트포워딩 (0) | 2021.10.26 |
에러해결 "listen tcp 127.0.0.1:9100: bind: address already in use" source="node_exporter.go:172" (0) | 2021.10.21 |
Kustomize 설치 및 사용하기 (0) | 2021.10.18 |
에러해결 no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1" (0) | 2021.10.14 |