1、服务端安装
获取yaml
wget https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
创建ns,启动服务
kubectl create ns argocd
kubectl apply -n argocd -f ./install.yaml
配置ingress
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:ap-northeast-1:232660966648:certificate/a15ea906-ff8e-4986-bda9-d2fdfdf1f2f5
alb.ingress.kubernetes.io/listen-ports: ‘[{“HTTP”: 80}, {“HTTPS”: 443}]’
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/target-type: ip
external-dns.alpha.kubernetes.io/hostname: argocd.bigbeargames.net
kubernetes.io/ingress.class: alb
finalizers:
- ingress.k8s.aws/resources
generation: 1
name: argocd-server
namespace: argocd
spec:
rules: - host: argocd.bigbeargames.net
http:
paths:- backend:
service:
name: argocd-server
port:
number: 80
pathType: ImplementationSpecific
- backend:
2、安装argocd cli命令工具
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
获得初始密码
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath=“{.data.password}” | base64 -d
登陆argocd服务
argocd login <ARGOCD_SERVER_HOST>
修改admin管理员密码
argocd account update-password