From d026b7155ebfa8d2b9c0e0a37a943a3759183400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Batuhan=20Apayd=C4=B1n?= Date: Fri, 16 Apr 2021 11:57:57 +0300 Subject: [PATCH] arkade already creating namespace of argocd we don't need additional step, the line for getting secret is wrapped to be able to show it in browser MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Batuhan Apaydın --- ...-to-your-openfaas-functions-with-argocd.md | 39 +++++++++++++++++-- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/_posts/2021-04-08-bring-gitops-to-your-openfaas-functions-with-argocd.md b/_posts/2021-04-08-bring-gitops-to-your-openfaas-functions-with-argocd.md index 07766da2..339fa0c1 100644 --- a/_posts/2021-04-08-bring-gitops-to-your-openfaas-functions-with-argocd.md +++ b/_posts/2021-04-08-bring-gitops-to-your-openfaas-functions-with-argocd.md @@ -78,7 +78,7 @@ To get more detail please refer to this [link](https://blog.alexellis.io/introdu Once we have arkade, we can create a cluster and install ArgoCD. If you prefer, you can also manually download all the tools required, and find the instructions for ArgoCD's helm chart. - * [arkade](https://get-arkade.dev) (v0.7.10) Kubernetes marketplace + * [arkade](https://get-arkade.dev) (v0.7.13) Kubernetes marketplace ```bash # Run with or without sudo @@ -141,8 +141,39 @@ arkade is not only for the CLI tooling, it also helps you to get started to inst hopefully arkade also supports installing ArgoCD. ```bash -$ kubectl create namespace argocd $ arkade install argocd +Using Kubeconfig: /Users/batuhan.apaydin/.kube/config +Node architecture: "amd64" +======================================================================= += ArgoCD has been installed = +======================================================================= + + +# Get the ArgoCD CLI +arkade install argocd + +# Port-forward the ArgoCD API server +kubectl port-forward svc/argocd-server -n argocd 8443:443 & + +# Get the password +PASS=$(kubectl get secret argocd-initial-admin-secret \ + -n argocd \ + -o jsonpath="{.data.password}" | base64 -d) +echo $PASS + +# Or log in: +argocd login --name local 127.0.0.1:8443 --insecure \ + --username admin \ + --password $PASS + +# Open the UI: +https://127.0.0.1:8443 + +# Get started with ArgoCD at +# https://argoproj.github.io/argo-cd/#quick-start + +Thanks for using arkade! + ``` Verify if everything is working properly in _argocd_ namespace before moving onto the next step. @@ -171,7 +202,9 @@ CD installation namespace. You can simply retrieve this password using kubectl: ```bash -$ kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d && echo +$ $ kubectl get secret \ + -n argocd \ + argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d && echo SyudUgAtDobmgSjM ```