Profile 추가 (console 환경)
namespace:argocd 추가
kubectl create namespace argocd
Helm repo 추가
# helm argo-repo 추가
helm repo add argo https://argoproj.github.io/argo-helm
설치
# helm으로 argocd 설치
helm -n argocd install argocd argo/argo-cd
# helm으로 argocd 삭제
# helm -n argocd uninstall argocd
kubectl -n argocd patch deployment argocd-server --type json -p='[ { "op": "replace", "path":"/spec/template/spec/containers/0/command","value": ["argocd-server","--staticassets","/shared/app","--insecure"] }]'
# kubectl get configmap -A
kubectl edit configmap argocd-cmd-params-cm -n argocd
apiVersion: v1
kind: ConfigMap
metadata:
labels:
app.kubernetes.io/name: argocd-cmd-params-cm
app.kubernetes.io/part-of: argocd
name: argocd-cmd-params-cm
data:
server.insecure: "true"
kubectl port-forward svc/argocd-server -n argocd 8080:443
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:ap-northeast-2:<account-id>:certificate/<certificate-arn>
alb.ingress.kubernetes.io/healthcheck-path: /
alb.ingress.kubernetes.io/healthcheck-protocol: HTTP
alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS":443}]'
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/security-groups: <security-group-id>
alb.ingress.kubernetes.io/target-type: ip
name: argocd-ingress # 인그레스 이름 정하기
namespace: argocd # 설치할 네임스페이스
spec:
ingressClassName: alb
rules:
- http:
paths:
- backend:
service:
name: argocd-server # 연결할 서비스 (이부분은 고정)
port:
number: 80 # (이부분도 고정)
path: /
pathType: Prefix