User Tools

Site Tools


контроллер_argocd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
контроллер_argocd [2026/01/24 11:34]
val [Развертывание множества приложений через ApplicationSet]
контроллер_argocd [2026/03/17 13:27] (current)
val [Развертывание множества приложений через ApplicationSet]
Line 9: Line 9:
  
   * [[https://​habr.com/​ru/​articles/​674704/​|Рабочий пример использования ArgoCD]]   * [[https://​habr.com/​ru/​articles/​674704/​|Рабочий пример использования ArgoCD]]
 +
 +  * [[https://​argo-cd.readthedocs.io/​en/​stable/​operator-manual/​secret-management/​|argo-cd secret management]]
 +  * [[https://​itnext.io/​integrating-sops-in-argocd-to-handle-kubernetes-secrets-e797b167d791|Integrating SOPS in ArgoCD to handle Kubernetes Secrets]]
 +  * [[https://​vieitesss.github.io/​posts/​ArgoCD-and-SOPS/​|ArgoCD & SOPS]]
 +  * [[https://​medium.com/​@stylishavocado/​managing-sops-secrets-for-kubernetes-deployments-ft-argocd-84fff20d882d|Managing SOPS secrets for Kubernetes deployments ft. ArgoCD]]
 ===== Развертывание и подключение к контроллеру ArgoCD ===== ===== Развертывание и подключение к контроллеру ArgoCD =====
 +
 +  * [[https://​github.com/​argoproj/​argo-cd/​releases]]
 +
 <​code>​ <​code>​
 kube1:~# kubectl create namespace argocd kube1:~# kubectl create namespace argocd
  
-kube1:~# kubectl apply -n argocd -f https://​raw.githubusercontent.com/​argoproj/​argo-cd/​stable/​manifests/​install.yaml+kube1:~# ###kubectl apply -n argocd -f https://​raw.githubusercontent.com/​argoproj/​argo-cd/​stable/​manifests/​install.yaml 
 +kube1:~# kubectl apply -n argocd --server-side --force-conflicts -f https://​raw.githubusercontent.com/​argoproj/​argo-cd/​v3.3.2/​manifests/​install.yaml
  
 kube1:~# watch kubectl get pods -n argocd kube1:~# watch kubectl get pods -n argocd
Line 93: Line 102:
 #        image: #        image:
 #          tag: "​ver1.2"​ #          tag: "​ver1.2"​
-#        ​REALM_NAME: "corp"+#        ​env: 
 +#          VARIABLE: "value"
 #      valueFiles: #      valueFiles:
-#      - ../apps/gowebd/​values.yaml+#      - ../apps/htwebd/​values.yaml
 #      - ../env.yaml #      - ../env.yaml
  
Line 145: Line 155:
   generators:   generators:
   - git:   - git:
-      repoURL: '​https://​gitlab.corp13.un/​student/​webd-k8s.git'​+      repoURL: '​https://​gitlab.corpX.un/​student/​webd-k8s.git'​
       revision: main       revision: main
       directories:​       directories:​
Line 160: Line 170:
       project: default       project: default
       sources:       sources:
-      - repoURL: '​https://​gitlab.corp13.un/​student/​webd-k8s.git'​+      - repoURL: '​https://​gitlab.corpX.un/​student/​webd-k8s.git'​
         targetRevision:​ main         targetRevision:​ main
         path: uni-webd-chart         path: uni-webd-chart
Line 167: Line 177:
           - $values/​apps/​{{path.basename}}/​values.yaml           - $values/​apps/​{{path.basename}}/​values.yaml
           - $values/​env.yaml           - $values/​env.yaml
-      - repoURL: '​https://​gitlab.corp13.un/​student/​webd-k8s.git'​+      - repoURL: '​https://​gitlab.corpX.un/​student/​webd-k8s.git'​
         targetRevision:​ main         targetRevision:​ main
         ref: values         ref: values
Line 181: Line 191:
         syncOptions:​         syncOptions:​
         - CreateNamespace=true         - CreateNamespace=true
 +</​code><​code>​
 +kube1:​~/​webd-k8s#​ kubectl apply -f argocd/​application-s.yaml
 +
 +kube1:​~/​webd-k8s#​ kubectl get ApplicationSet -n argocd -o yaml | less
 </​code>​ </​code>​
  
Line 194: Line 208:
     ADD TLS CERTIFICATE     ADD TLS CERTIFICATE
       Repository Server Name: gitlab.corpX.un       Repository Server Name: gitlab.corpX.un
-      TLS Certificate (PEM format): cat /.../ca.crt+      TLS Certificate (PEM format): cat /usr/​local/​share/​ca-certificates/ca.crt
       ​       ​
 kube1:​~/​webd-k8s#​ kubectl -n argocd get configmaps argocd-tls-certs-cm -o yaml | less kube1:​~/​webd-k8s#​ kubectl -n argocd get configmaps argocd-tls-certs-cm -o yaml | less
контроллер_argocd.1769243642.txt.gz · Last modified: 2026/01/24 11:34 by val