Difference between revisions of "Helm install argocd"

From wikieduonline
Jump to navigation Jump to search
(Created page with " {{ArgoCD}}")
 
 
(40 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
* https://github.com/argoproj/argo-helm/tree/main/charts/argo-cd
 +
* <code>[[values.yml]]</code> https://github.com/argoproj/argo-helm/blob/main/charts/argo-cd/values.yaml
 +
** <code>[[loadBalancerClass:]]</code>
  
  
 +
[[helm repo add]] argo https://argoproj.github.io/argo-helm
 +
[[helm install argocd argo/argo-cd]] && [[kubectl get events]]
  
 +
[[helm install]] argocd argo/argo-cd --namespace argocd --create-namespace && [[kubectl get events]] -n argocd && [[kubectl get pods -n argocd]]
  
{{ArgoCD}}
+
kubectl port-forward service/my-argo-argocd-server -n default 8080:443
 +
http://localhost:8080
 +
User: admin
 +
Pass:  [[kubectl -n default get secret]] argocd-initial-admin-secret -o jsonpath="{.data.password}" | [[base64 -d]]; echo
 +
 
 +
 
 +
[[helm_release argocd]]
 +
 
 +
== Example ==
 +
NAME: my-argo
 +
LAST DEPLOYED: Tue Jan 16 16:53:48 2024
 +
NAMESPACE: default
 +
STATUS: deployed
 +
REVISION: 1
 +
TEST SUITE: None
 +
NOTES:
 +
In order to access the server UI you have the following options:
 +
 +
1. [[kubectl port-forward]] service/my-argo-argocd-server -n default 8080:443
 +
 +
    and then open the browser on http://localhost:8080 and accept the certificate
 +
 +
2. enable ingress in the values file `[[server.ingress.enabled]]` and either
 +
      - Add the [[annotation]] for [[ssl passthrough]]: https://argo-cd.readthedocs.io/en/stable/operator-manual/ingress/#option-1-ssl-passthrough
 +
      - Set the `configs.params."[[server.insecure]]"` in the values file and terminate SSL at your ingress: https://argo-cd.readthedocs.io/en/stable/operator-manual/ingress/#option-2-multiple-ingress-objects-and-hosts
 +
 +
 +
After reaching the UI the first time you can login with username: admin and the random password generated during the installation. You can find the password by running:
 +
 +
[[kubectl -n default get secret]] argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
 +
 +
(You should delete the initial secret afterwards as suggested by the Getting Started Guide: https://argo-cd.readthedocs.io/en/stable/getting_started/#4-login-using-the-cli)
 +
 
 +
 
 +
== Errors ==
 +
 
 +
helm install argocd argo/argo-cd --namespace argocd --create-namespace
 +
Error: INSTALLATION FAILED: rendered manifests contain a resource that already exists. Unable to continue with install: [[CustomResourceDefinition]] "[[applications.argoproj.io]]" in namespace "" exists and cannot be
 +
imported into the current release: invalid ownership metadata; annotation validation error: key "meta.helm.sh/release-name" must equal "argocd": current value is "my-argo"; annotation validation error: key
 +
"meta.helm.sh/release-namespace" must equal "argocd": current value is "default"
 +
 
 +
== Related ==
 +
* <code>default      47m                    Warning  [[InvalidDiskCapacity]]  Node/node1                                                      invalid capacity 0 on image filesystem</code>
 +
* <code>[[FailedMount]]</code>
 +
* <code>[[helm get manifest my-argo]]</code>
 +
* <code>[[helm uninstall argocd]] && [[kubectl delete crd]] applications.[[argoproj.io]] applicationsets.argoproj.io appprojects.argoproj.io</code>
 +
* <code>[[kubectl get events -n argocd]] | grep [[Warning]]</code>
 +
* [[k describe configmap -n argocd argocd-cmd-params-cm]]
 +
 
 +
== See also ==
 +
* {{helm install argocd}}
 +
* {{Argo CD}}
 +
 
 +
[[Category:Argo CD]]

Latest revision as of 09:48, 23 July 2024


helm repo add argo https://argoproj.github.io/argo-helm
helm install argocd argo/argo-cd && kubectl get events
helm install argocd argo/argo-cd --namespace argocd --create-namespace && kubectl get events -n argocd && kubectl get pods -n argocd
kubectl port-forward service/my-argo-argocd-server -n default 8080:443
http://localhost:8080
User: admin
Pass:  kubectl -n default get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo


helm_release argocd

Example[edit]

NAME: my-argo
LAST DEPLOYED: Tue Jan 16 16:53:48 2024
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
In order to access the server UI you have the following options:

1. kubectl port-forward service/my-argo-argocd-server -n default 8080:443

    and then open the browser on http://localhost:8080 and accept the certificate

2. enable ingress in the values file `server.ingress.enabled` and either
      - Add the annotation for ssl passthrough: https://argo-cd.readthedocs.io/en/stable/operator-manual/ingress/#option-1-ssl-passthrough
      - Set the `configs.params."server.insecure"` in the values file and terminate SSL at your ingress: https://argo-cd.readthedocs.io/en/stable/operator-manual/ingress/#option-2-multiple-ingress-objects-and-hosts


After reaching the UI the first time you can login with username: admin and the random password generated during the installation. You can find the password by running:

kubectl -n default get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d

(You should delete the initial secret afterwards as suggested by the Getting Started Guide: https://argo-cd.readthedocs.io/en/stable/getting_started/#4-login-using-the-cli)


Errors[edit]

helm install argocd argo/argo-cd --namespace argocd --create-namespace
Error: INSTALLATION FAILED: rendered manifests contain a resource that already exists. Unable to continue with install: CustomResourceDefinition "applications.argoproj.io" in namespace "" exists and cannot be 
imported into the current release: invalid ownership metadata; annotation validation error: key "meta.helm.sh/release-name" must equal "argocd": current value is "my-argo"; annotation validation error: key 
"meta.helm.sh/release-namespace" must equal "argocd": current value is "default"

Related[edit]

See also[edit]

Advertising: