当前位置:网站首页>Client use of Argo CD installation
Client use of Argo CD installation
2022-07-05 06:21:00 【Boar Pei squeeze】
install argocd
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
expose argocd ui
kubectl patch service -n argocd argocd-server -p '{"spec": {"type": "NodePort"}}'
obtain admin password
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo
cli End installation
https://github.com/argoproj/argo-cd/releases/download/v2.2.5/argocd-linux-amd64
mv argocd-linux-amd64 /usr/local/bin/argocd
cli End operation land argocd login ArgoCD_Address:Port
argocd login 192.168.8.68:30004
. from git Warehouse create a Application
Create a test-guesT app, Specify warehouse address 、 Application path 、 The goal is apiserver Address 、 The goal is namespace
argocd app create test-guest --repo http://git.rapha.top/jbjb/argo-cd.git --path test00 --dest-server https://kubernetes.default.svc --dest-namespace default
- List all app And designation app
argocd app list
argocd app get test-guest
- Manual from git Warehouse synchronization assignment app
argocd app sync test-guest
Sign in UI
Delete
argocd app delete test-guest
Be careful !!! Delete words pod Also delete
More instructions
https://argo-cd.readthedocs.io/en/stable/user-guide/commands/argocd_app/
Add a default repo Solve the problem that requires user password login git Warehouse
argocd repo add http://git.rapha.top/jbjb/test01.git --username admin --password 123456
Add the project to be published as before
argocd app create test01 --repo http://git.rapha.top/jbjb/test01.git --path test --dest-server https://kubernetes.default.svc --dest-namespace default
see
[[email protected] ~]# argocd repo list
TYPE NAME REPO INSECURE OCI LFS CREDS STATUS MESSAGE PROJECT
git http://git.rapha.top/jbjb/test01.git false false false true Successful
Manual sync
# see app
[[email protected] ~]# argocd app list
NAME CLUSTER NAMESPACE PROJECT STATUS HEALTH SYNCPOLICY CONDITIONS REPO PATH TARGET
test01 https://kubernetes.default.svc default default OutOfSync Missing <none> <none> http://git.rapha.top/jbjb/test01.git test
[[email protected] ~]# argocd app sync test01
TIMESTAMP GROUP KIND NAMESPACE NAME STATUS HEALTH HOOK MESSAGE
2022-02-13T02:34:21+08:00 Service default nginx-v1 OutOfSync Missing
2022-02-13T02:34:21+08:00 apps Deployment default nginx-v1 OutOfSync Missing
2022-02-13T02:34:21+08:00 Service default nginx-v1 OutOfSync Missing service/nginx-v1 created
2022-02-13T02:34:21+08:00 apps Deployment default nginx-v1 OutOfSync Missing deployment.apps/nginx-v1 created2022-02-13T02:34:21+08:00 Service default nginx-v1 Synced Healthy service/nginx-v1 created
2022-02-13T02:34:21+08:00 apps Deployment default nginx-v1 Synced Progressing deployment.apps/nginx-v1 created
Name: test01
Project: default
Server: https://kubernetes.default.svc
Namespace: default
URL: https://192.168.8.68:30004/applications/test01
Repo: http://git.rapha.top/jbjb/test01.git
Target:
Path: test
SyncWindow: Sync Allowed
Sync Policy: <none>
Sync Status: Synced to (898fa24)
Health Status: Progressing
Operation: Sync
Sync Revision: 898fa24a27981fb23a5f6e154fed9796e1d7937e
Phase: Succeeded
Start: 2022-02-13 02:34:21 +0800 CST
Finished: 2022-02-13 02:34:21 +0800 CST
Duration: 0s
Message: successfully synced (all tasks run)
GROUP KIND NAMESPACE NAME STATUS HEALTH HOOK MESSAGE
Service default nginx-v1 Synced Healthy service/nginx-v1 created
apps Deployment default nginx-v1 Synced Progressing deployment.apps/nginx-v1 created
Delete one repo Source
[[email protected] ~]# argocd repo list
TYPE NAME REPO INSECURE OCI LFS CREDS STATUS MESSAGE PROJECT
git http://git.rapha.top/jbjb/rook-ceph false false false true Successful
[[email protected] ~]# argocd repo rm http://git.rapha.top/jbjb/rook-ceph
Repository 'http://git.rapha.top/jbjb/rook-ceph' removed
[[email protected] ~]# argocd repo list
TYPE NAME REPO INSECURE OCI LFS CREDS STATUS MESSAGE PROJECT
More command reference links : Click the official website to connect .
边栏推荐
- Leetcode dynamic programming
- LeetCode 0108. Convert an ordered array into a binary search tree - the median of the array is the root, and the left and right of the median are the left and right subtrees respectively
- Open source storage is so popular, why do we insist on self-development?
- 阿里巴巴成立企业数智服务公司“瓴羊”,聚焦企业数字化增长
- C Primer Plus Chapter 15 (bit operation)
- [BMZCTF-pwn] ectf-2014 seddit
- 1040 Longest Symmetric String
- How to set the drop-down arrow in the spinner- How to set dropdown arrow in spinner?
- LeetCode-54
- C - XOR to all (binary topic)
猜你喜欢
高斯消元 AcWing 884. 高斯消元解异或線性方程組
MySQL advanced part 1: View
Operator priority, one catch, no doubt
高斯消元 AcWing 884. 高斯消元解异或线性方程组
Alibaba established the enterprise digital intelligence service company "Lingyang" to focus on enterprise digital growth
There are three kinds of SQL connections: internal connection, external connection and cross connection
[2020]GRAF: Generative Radiance Fields for 3D-Aware Image Synthesis
Redis publish subscribe command line implementation
Is it impossible for lamda to wake up?
Quickly use Amazon memorydb and build your own redis memory database
随机推荐
Regulations for network security events of vocational group in 2022 Guizhou Vocational College skill competition
高斯消元 AcWing 884. 高斯消元解异或线性方程组
MySQL advanced part 2: optimizing SQL steps
Leetcode divide and conquer / dichotomy
How to generate an image from text on fly at runtime
博弈论 AcWing 891. Nim游戏
LeetCode-54
博弈论 AcWing 894. 拆分-Nim游戏
Operator priority, one catch, no doubt
求组合数 AcWing 889. 满足条件的01序列
Leetcode-6111: spiral matrix IV
【LeetCode】Easy | 20. Valid parentheses
Golang uses context gracefully
[rust notes] 14 set (Part 1)
Liunx starts redis
SQLMAP使用教程(二)实战技巧一
2021apmcm post game Summary - edge detection
Leetcode stack related
SQLMAP使用教程(一)
1039 Course List for Student