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/23 16:00]
val [Добавление корпоративного корневого сертификата]
контроллер_argocd [2026/01/27 11:32] (current)
val
Line 26: Line 26:
   * [[https://​localhost:​8080/​]]   * [[https://​localhost:​8080/​]]
  
-===== Установка,​ подключение и управление приложениями через утилиту argocd ​=====+===== Развертывание приложений ===== 
 + 
 +==== Установка,​ подключение и управление приложениями через утилиту argocd ====
  
 <​code>​ <​code>​
Line 64: Line 66:
 </​code>​ </​code>​
  
-===== Управление приложениями через kubectl ​=====+==== Управление приложениями через kubectl ====
  
   * [[https://​argo-cd.readthedocs.io/​en/​release-1.8/​user-guide/​private-repositories/#​managing-tls-certificates-using-the-argocd-web-ui|Managing TLS certificates using the ArgoCD web UI]]   * [[https://​argo-cd.readthedocs.io/​en/​release-1.8/​user-guide/​private-repositories/#​managing-tls-certificates-using-the-argocd-web-ui|Managing TLS certificates using the ArgoCD web UI]]
Line 77: Line 79:
   namespace: argocd   namespace: argocd
   finalizers:   finalizers:
-  - resources-finalizer.argocd.argoproj.io+  - resources-finalizer.argocd.argoproj.io/background
 spec: spec:
   project: default   project: default
Line 111: Line 113:
 kube1# ### kubectl delete -f application.yaml kube1# ### kubectl delete -f application.yaml
 </​code>​ </​code>​
-===== Тестирование приложения ​=====+ 
 +==== Тестирование приложения ====
 <​code>​ <​code>​
 $ curl http://​kube1 -H "Host: gowebd.corpX.un"​ $ curl http://​kube1 -H "Host: gowebd.corpX.un"​
Line 128: Line 131:
     Chart.yaml ​     Chart.yaml ​
       appVersion: "​ver1.N"​       appVersion: "​ver1.N"​
 +</​code>​
 +
 +==== Развертывание множества приложений через ApplicationSet ====
 +<​code>​
 +kube1:​~/​webd-k8s#​ cat argocd/​application-s.yaml
 +</​code><​code>​
 +apiVersion: argoproj.io/​v1alpha1
 +kind: ApplicationSet
 +metadata:
 +  name: my-webd-s
 +  namespace: argocd
 +spec:
 +  generators:
 +  - git:
 +      repoURL: '​https://​gitlab.corpX.un/​student/​webd-k8s.git'​
 +      revision: main
 +      directories:​
 +      - path: apps/*
 +
 +  template:
 +    metadata:
 +      name: '​{{path.basename}}'​
 +      labels:
 +        name: apps
 +      finalizers:
 +        - resources-finalizer.argocd.argoproj.io/​background
 +    spec:
 +      project: default
 +      sources:
 +      - repoURL: '​https://​gitlab.corpX.un/​student/​webd-k8s.git'​
 +        targetRevision:​ main
 +        path: uni-webd-chart
 +        helm:
 +          valueFiles:
 +          - $values/​apps/​{{path.basename}}/​values.yaml
 +          - $values/​env.yaml
 +      - repoURL: '​https://​gitlab.corpX.un/​student/​webd-k8s.git'​
 +        targetRevision:​ main
 +        ref: values
 +
 +      destination:​
 +        server: '​https://​kubernetes.default.svc'​
 +        namespace: my-ns
 +      syncPolicy:
 +        automated:
 +          prune: true
 +          selfHeal: true
 +
 +        syncOptions:​
 +        - CreateNamespace=true
 </​code>​ </​code>​
  
Line 140: Line 193:
   Repository certificates and known hosts->   Repository certificates and known hosts->
     ADD TLS CERTIFICATE     ADD TLS CERTIFICATE
-      Repository Server Name: corpX.un+      Repository Server Name: gitlab.corpX.un
       TLS Certificate (PEM format): cat /.../ca.crt       TLS Certificate (PEM format): cat /.../ca.crt
       ​       ​
контроллер_argocd.1769173259.txt.gz · Last modified: 2026/01/23 16:00 by val