""
                  
                  
                  
                  
                  
                  replicaCount: ""
                  
                  
                  
                  
                  
                  image:
                  
                  
                    repository: nginx
                  
                  
                    pullPolicy: IfNotPresent
                  
                  
                    # Overrides the image tag whose default is the chart appVersion.
                  
                  
                    tag: ""
                  
                  
                  
                  
                  
                  ### INGRESS ############################
                  
                  
                  ingress1:
                  
                  
                    entrypoints: ""
                  
                  
                    port: 80
                  
                  
                  
                  
                  
                  ingress2:
                  
                  
                    enabled: false
                  
                  
                    entrypoints: ""
                  
                  
                    port: ""
                  
                  
                  
                  
                  
                  middlewares:
                  
                  
                    enabled: false
                  
                  
                  ### КОНЕЦ. INGRESS ######################
                  
                  
                  
                  
                  
                  Дочерний values.yaml:
                  
                  
                  helm_new:
                  
                  
                    stand: front-office-admin-panel-dev
                  
                  
                    replicaCount: 3
                  
                  
                    ingress1:
                  
                  
                      entrypoints: adm
                  
                  
                      port: 80
                  
                  
                    image:
                  
                  
                      repository: nexus.domain.ru:8444/adm/admin-panel/front-office-admin-panel
                  
                  
                      tag: develop-argocd
                  
                  
                  
                  
                  
                  И собственно сам Application
                  
                  
                  ---
                  
                  
                  apiVersion: argoproj.io/v1alpha1
                  
                  
                  kind: Application
                  
                  
                  metadata:
                  
                  
                    name: front-office-admin-panel-dev
                  
                  
                    namespace: argocd
                  
                  
                    annotations:
                  
                  
                      argocd-image-updater.argoproj.io/alias_image1.helm.image-name: helm_new.image.repository
                  
                  
                      argocd-image-updater.argoproj.io/alias_image1.helm.image-tag: helm_new.image.tag
                  
                  
                      argocd-image-updater.argoproj.io/alias_image1.update-strategy: digest
                  
                  
                      argocd-image-updater.argoproj.io/image-list: alias_image1=nexus.domain.ru:8444/adm/admin-panel/front-office-admin-panel:develop-argocd
                  
                  
                      argocd-image-updater.argoproj.io/write-back-method: git:secret:argocd/git-creds
                  
                  
                  
                  
                  
                  spec:
                  
                  
                    project: default
                  
                  
                    source:
                  
                  
                      repoURL: 'https://gitlab.domain.ru/adm/admin-panel.git'
                  
                  
                      path: ./kube/helm/dev
                  
                  
                      targetRevision: develop-argocd
                  
                  
                      helm:
                  
                  
                        valueFiles:
                  
                  
                          - values.yaml
                  
                  
                    destination:
                  
                  
                      server: 'https://kubernetes.default.svc'
                  
                  
                      namespace: demo-app
                  
                  
                    syncPolicy:
                  
                  
                      automated:
                  
                  
                        prune: true
                  
                  
                        selfHeal: true
                  
                  
                  
                  
                  
                  
                  
                  
                  На выходе создается под с:
                  
                  
                    stand: front-office-admin-panel-dev
                  
                  
                    replicaCount: 3
                  
                  
                    ingress1:
                  
                  
                      entrypoints: adm
                  
                  
                      port: 80
                  
                  
                    image:
                  
                  
                      repository: nexus.domain.ru:8444/adm/admin-panel/front-office-admin-panel
                  
                  
                      tag: develop-argocd
                  
                  
                  
                  
                  
                  Но вот реплика всегда одна!
                  
                  
                  
                  
                  
                  Не могу понять. почему не подхватывается переменная replicaCount?
                  
                  
                  
                  
                  
                  В самом deployment.yaml
                  
                  
                  apiVersion: apps/v1
                  
                  
                  kind: Deployment
                  
                  
                  metadata:
                  
                  
                    name: {{ .Values.stand }}-deployment
                  
                  
                    labels:
                  
                  
                      stand: {{ .Values.stand }}
                  
                  
                  spec:
                  
                  
                    {{- if not .Values.autoscaling.enabled }}
                  
                  
                    replicas: {{ .Values.replicaCount }}
                  
                  
                    {{- end }}
                  
                  
                  
                  
                  
                  Автоскейлинг - false
                  
                  
                
покажи chart.yaml - как ты там указываешь зависимости
--- apiVersion: v2 name: subchart-dev type: application version: 1.0.0 appVersion: "1.0.0" dependencies: - name: helm_new version: "1.*.*" repository: "https://nexus.domain.ru/repository/helm-hosted"
Обсуждают сегодня