注意:这是基于集群中已有 argocd 情况的部署
如果没有 argocd 部署如下额外 yaml:
kubectl apply -f ./manifests/crds/application-crd.yaml
kubectl apply -f ./manifests/crds/appproject-crd.yaml
kubectl apply -f ./manifests/cluster-rbac/argocd-application-controller-clusterrole.yaml
kubectl apply -f ./manifests/cluster-rbac/argocd-server-clusterrole.yaml
镜像 gitlab.buaanlsde.cn:4567/buaapyj/registry/argocd:v1.8.7-rc4
会使用 https://resource-server.ingress.isa.buaanlsde.cn
来访问 resource-server
NAMESPACE=argocd-sig
IMAGE=gitlab.buaanlsde.cn:4567/buaapyj/registry/argocd:v1.8.7-rc4
kubectl create ns ${NAMESPACE}
sed -e "s/NAMESPACE/${NAMESPACE}/g" -e "s#IMAGE#${IMAGE}#g" ./manifests/install-with-exists.yaml |
kubectl apply -n ${NAMESPACE} -f -
sed -e "s/NAMESPACE/${NAMESPACE}/g" ./manifests/ingress.yaml | kubectl apply -n ${NAMESPACE} -f -
kubectl -n argocd-sig patch secret argocd-secret \
-p '{"stringData": {
"admin.password": "$2a$10$HnK0KqNxvUpEi4Ji.AsVjOcPmnM4CC5U7oAe1ZDJnHZ95WIV2Lywy",
"admin.passwordMtime": "'$(date +%FT%T%Z)'"
}}'
NAMESPACE=argocd-sig
IMAGE=gitlab.buaanlsde.cn:4567/buaapyj/registry/argocd:v1.8.7-rc4
sed -e "s/NAMESPACE/${NAMESPACE}/g" -e "s#IMAGE#${IMAGE}#g" ./manifests/install-with-exists.yaml |
kubectl delete -n ${NAMESPACE} -f -
{
"allocatable": {
"cpu": "10",
"memory": "10Gi"
},
"requested": {
"cpu": "8",
"memory": "8Gi"
},
"ratio": "12.32%"
}
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes.
- Application definitions, configurations, and environments should be declarative and version controlled.
- Application deployment and lifecycle management should be automated, auditable, and easy to understand.
To learn more about Argo CD go to the complete documentation. Check live demo at https://cd.apps.argoproj.io/.
- Environments Based On Pull Requests (PRs): Using Argo CD To Apply GitOps Principles On Previews
- Argo CD: Applying GitOps Principles To Manage Production Environment In Kubernetes
- Tutorial: Everything You Need To Become A GitOps Ninja 90m tutorial on GitOps and Argo CD.
- Comparison of Argo CD, Spinnaker, Jenkins X, and Tekton
- Simplify and Automate Deployments Using GitOps with IBM Multicloud Manager 3.1.2
- GitOps for Kubeflow using Argo CD
- GitOps Toolsets on Kubernetes with CircleCI and Argo CD
- Simplify and Automate Deployments Using GitOps with IBM Multicloud Manager
- CI/CD in Light Speed with K8s and Argo CD
- Machine Learning as Code. Among other things, describes how Kubeflow uses Argo CD to implement GitOPs for ML
- Argo CD - GitOps Continuous Delivery for Kubernetes
- Introduction to Argo CD : Kubernetes DevOps CI/CD
- GitOps Deployment and Kubernetes - using ArgoCD
- Deploy Argo CD with Ingress and TLS in Three Steps: No YAML Yak Shaving Required
- GitOps Continuous Delivery with Argo and Codefresh