Skip to content

Commit f96b913

Browse files
committed
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
Signed-off-by: Batuhan Apaydın <[email protected]>
1 parent a142004 commit f96b913

File tree

1 file changed

+36
-3
lines changed

1 file changed

+36
-3
lines changed

Diff for: _posts/2021-04-08-bring-gitops-to-your-openfaas-functions-with-argocd.md

+36-3
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ To get more detail please refer to this [link](https://blog.alexellis.io/introdu
7878

7979
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.
8080

81-
* [arkade](https://get-arkade.dev) (v0.7.10) Kubernetes marketplace
81+
* [arkade](https://get-arkade.dev) (v0.7.13) Kubernetes marketplace
8282

8383
```bash
8484
# 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
141141
hopefully arkade also supports installing ArgoCD.
142142

143143
```bash
144-
$ kubectl create namespace argocd
145144
$ arkade install argocd
145+
Using Kubeconfig: /Users/batuhan.apaydin/.kube/config
146+
Node architecture: "amd64"
147+
=======================================================================
148+
= ArgoCD has been installed =
149+
=======================================================================
150+
151+
152+
# Get the ArgoCD CLI
153+
arkade install argocd
154+
155+
# Port-forward the ArgoCD API server
156+
kubectl port-forward svc/argocd-server -n argocd 8443:443 &
157+
158+
# Get the password
159+
PASS=$(kubectl get secret argocd-initial-admin-secret \
160+
-n argocd \
161+
-o jsonpath="{.data.password}" | base64 -d)
162+
echo $PASS
163+
164+
# Or log in:
165+
argocd login --name local 127.0.0.1:8443 --insecure \
166+
--username admin \
167+
--password $PASS
168+
169+
# Open the UI:
170+
https://127.0.0.1:8443
171+
172+
# Get started with ArgoCD at
173+
# https://argoproj.github.io/argo-cd/#quick-start
174+
175+
Thanks for using arkade!
176+
146177
```
147178

148179
Verify if everything is working properly in _argocd_ namespace before moving onto the next step.
@@ -171,7 +202,9 @@ CD installation namespace.
171202
You can simply retrieve this password using kubectl:
172203

173204
```bash
174-
$ kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d && echo
205+
$ $ kubectl get secret \
206+
-n argocd \
207+
argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d && echo
175208
SyudUgAtDobmgSjM
176209
```
177210

0 commit comments

Comments
 (0)