{"id":9294,"date":"2021-04-27T10:29:06","date_gmt":"2021-04-27T02:29:06","guid":{"rendered":"https:\/\/jpuyy.com\/?p=9294"},"modified":"2023-05-03T11:17:05","modified_gmt":"2023-05-03T03:17:05","slug":"argocd","status":"publish","type":"post","link":"https:\/\/jpuyy.com\/?p=9294","title":{"rendered":"Local ArgoCD playground"},"content":{"rendered":"<p>$ brew install argocd<\/p>\n<p>$ argocd version<\/p>\n<p>$ kubectl port-forward svc\/argocd-server -n argocd 8080:443<\/p>\n<p>$ kubectl get secret argocd-initial-admin-secret -n argocd -o json | jq &#8220;.data | map_values(@base64d)&#8221;<\/p>\n<p>&#8220;` reset password<br \/>\n# bcrypt(xxxx)=$2b$12$H5jWbxxxxxxxxxxxxxxx.3aaA2xLQY4iZHZgI.y<br \/>\nkubectl -n argocd patch secret argocd-secret \\<br \/>\n-p &#8216;{&#8220;stringData&#8221;: {<br \/>\n&#8220;admin.password&#8221;: &#8220;$2b$12$H5jWbxxxxxxxxxxxxxxx.3aaA2xLQY4iZHZgI.y&#8221;,<br \/>\n&#8220;admin.passwordMtime&#8221;: &#8220;&#8216;$(date +%FT%T%Z)'&#8221;<br \/>\n}}&#8217;<br \/>\n&#8220;`<\/p>\n<p>argocd login &#8211;insecure &#8211;username admin &#8211;password xxxx &#8211;grpc-web 127.0.0.1:8080<\/p>\n<p>cat ~\/.argocd\/config<\/p>\n<p>command line<br \/>\nhttps:\/\/argo-cd.readthedocs.io\/en\/stable\/user-guide\/commands\/argocd\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>$ brew install argocd $ argocd version $ kubectl port-forward svc\/argocd-server -n argocd 8080:443 $ kubectl get secret argocd-initial-admin-secret -n argocd -o json | jq &#8220;.data | map_values(@base64d)&#8221; &#8220;` reset password # bcrypt(xxxx)=$2b$12$H5jWbxxxxxxxxxxxxxxx.3aaA2xLQY4iZHZgI.y kubectl -n argocd patch secret argocd-secret \\ -p &#8216;{&#8220;stringData&#8221;: { &#8220;admin.password&#8221;: &#8220;$2b$12$H5jWbxxxxxxxxxxxxxxx.3aaA2xLQY4iZHZgI.y&#8221;, &#8220;admin.passwordMtime&#8221;: &#8220;&#8216;$(date +%FT%T%Z)&#8217;&#8221; }}&#8217; &#8220;` argocd login &#8211;insecure &#8211;username admin [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[202],"tags":[201],"class_list":["post-9294","post","type-post","status-publish","format-standard","hentry","category-argocd","tag-argocd"],"_links":{"self":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/9294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9294"}],"version-history":[{"count":8,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/9294\/revisions"}],"predecessor-version":[{"id":9796,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/9294\/revisions\/9796"}],"wp:attachment":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}