Merge branch 'main' into fix-cluster-role-in-argo-rollouts-dashboard
Signed-off-by: Tal Yitzhak <yitzhtal@gmail.com>
This commit is contained in:
commit
93f8a05da3
12 changed files with 160 additions and 6 deletions
|
@ -89,6 +89,8 @@ For full list of changes please check ArtifactHub [changelog].
|
||||||
| controller.metrics.serviceMonitor.additionalAnnotations | object | `{}` | Annotations to be added to the ServiceMonitor |
|
| controller.metrics.serviceMonitor.additionalAnnotations | object | `{}` | Annotations to be added to the ServiceMonitor |
|
||||||
| controller.metrics.serviceMonitor.additionalLabels | object | `{}` | Labels to be added to the ServiceMonitor |
|
| controller.metrics.serviceMonitor.additionalLabels | object | `{}` | Labels to be added to the ServiceMonitor |
|
||||||
| controller.metrics.serviceMonitor.enabled | bool | `false` | Enable a prometheus ServiceMonitor |
|
| controller.metrics.serviceMonitor.enabled | bool | `false` | Enable a prometheus ServiceMonitor |
|
||||||
|
| controller.metrics.serviceMonitor.metricRelabelings | list | `[]` | MetricRelabelConfigs to apply to samples before ingestion |
|
||||||
|
| controller.metrics.serviceMonitor.relabelings | list | `[]` | RelabelConfigs to apply to samples before scraping |
|
||||||
| controller.nodeSelector | object | `{}` | [Node selector] |
|
| controller.nodeSelector | object | `{}` | [Node selector] |
|
||||||
| controller.pdb.annotations | object | `{}` | Annotations to be added to controller [Pod Disruption Budget] |
|
| controller.pdb.annotations | object | `{}` | Annotations to be added to controller [Pod Disruption Budget] |
|
||||||
| controller.pdb.enabled | bool | `false` | Deploy a [Pod Disruption Budget] for the controller |
|
| controller.pdb.enabled | bool | `false` | Deploy a [Pod Disruption Budget] for the controller |
|
||||||
|
|
|
@ -17,6 +17,14 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
endpoints:
|
endpoints:
|
||||||
- port: metrics
|
- port: metrics
|
||||||
|
{{- with .Values.controller.metrics.serviceMonitor.relabelings }}
|
||||||
|
relabelings:
|
||||||
|
{{- toYaml . | nindent 6 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.controller.metrics.serviceMonitor.metricRelabelings }}
|
||||||
|
metricRelabelings:
|
||||||
|
{{- toYaml . | nindent 6 }}
|
||||||
|
{{- end }}
|
||||||
namespaceSelector:
|
namespaceSelector:
|
||||||
matchNames:
|
matchNames:
|
||||||
- {{ .Release.Namespace }}
|
- {{ .Release.Namespace }}
|
||||||
|
|
|
@ -116,6 +116,10 @@ controller:
|
||||||
additionalLabels: {}
|
additionalLabels: {}
|
||||||
# -- Annotations to be added to the ServiceMonitor
|
# -- Annotations to be added to the ServiceMonitor
|
||||||
additionalAnnotations: {}
|
additionalAnnotations: {}
|
||||||
|
# -- RelabelConfigs to apply to samples before scraping
|
||||||
|
relabelings: []
|
||||||
|
# -- MetricRelabelConfigs to apply to samples before ingestion
|
||||||
|
metricRelabelings: []
|
||||||
|
|
||||||
# -- Configure liveness [probe] for the controller
|
# -- Configure liveness [probe] for the controller
|
||||||
# @default -- See [values.yaml]
|
# @default -- See [values.yaml]
|
||||||
|
|
|
@ -3,7 +3,7 @@ appVersion: v3.4.7
|
||||||
name: argo-workflows
|
name: argo-workflows
|
||||||
description: A Helm chart for Argo Workflows
|
description: A Helm chart for Argo Workflows
|
||||||
type: application
|
type: application
|
||||||
version: 0.24.1
|
version: 0.25.1
|
||||||
icon: https://raw.githubusercontent.com/argoproj/argo-workflows/master/docs/assets/argo.png
|
icon: https://raw.githubusercontent.com/argoproj/argo-workflows/master/docs/assets/argo.png
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
sources:
|
sources:
|
||||||
|
@ -14,4 +14,4 @@ maintainers:
|
||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: added
|
- kind: added
|
||||||
description: Add option for workflow controller to read all secrets.
|
description: Add Prometheus ServiceMonitor relabelings, metricRelabelings & targetLabels
|
||||||
|
|
|
@ -153,13 +153,16 @@ Fields to note:
|
||||||
| controller.logging.level | string | `"info"` | Set the logging level (one of: `debug`, `info`, `warn`, `error`) |
|
| controller.logging.level | string | `"info"` | Set the logging level (one of: `debug`, `info`, `warn`, `error`) |
|
||||||
| controller.metricsConfig.enabled | bool | `false` | Enables prometheus metrics server |
|
| controller.metricsConfig.enabled | bool | `false` | Enables prometheus metrics server |
|
||||||
| controller.metricsConfig.ignoreErrors | bool | `false` | Flag that instructs prometheus to ignore metric emission errors. |
|
| controller.metricsConfig.ignoreErrors | bool | `false` | Flag that instructs prometheus to ignore metric emission errors. |
|
||||||
|
| controller.metricsConfig.metricRelabelings | list | `[]` | ServiceMonitor metric relabel configs to apply to samples before ingestion |
|
||||||
| controller.metricsConfig.metricsTTL | string | `""` | How often custom metrics are cleared from memory |
|
| controller.metricsConfig.metricsTTL | string | `""` | How often custom metrics are cleared from memory |
|
||||||
| controller.metricsConfig.path | string | `"/metrics"` | Path is the path where metrics are emitted. Must start with a "/". |
|
| controller.metricsConfig.path | string | `"/metrics"` | Path is the path where metrics are emitted. Must start with a "/". |
|
||||||
| controller.metricsConfig.port | int | `9090` | Port is the port where metrics are emitted |
|
| controller.metricsConfig.port | int | `9090` | Port is the port where metrics are emitted |
|
||||||
| controller.metricsConfig.portName | string | `"metrics"` | Container metrics port name |
|
| controller.metricsConfig.portName | string | `"metrics"` | Container metrics port name |
|
||||||
|
| controller.metricsConfig.relabelings | list | `[]` | ServiceMonitor relabel configs to apply to samples before scraping |
|
||||||
| controller.metricsConfig.secure | bool | `false` | Flag that use a self-signed cert for TLS |
|
| controller.metricsConfig.secure | bool | `false` | Flag that use a self-signed cert for TLS |
|
||||||
| controller.metricsConfig.servicePort | int | `8080` | Service metrics port |
|
| controller.metricsConfig.servicePort | int | `8080` | Service metrics port |
|
||||||
| controller.metricsConfig.servicePortName | string | `"metrics"` | Service metrics port name |
|
| controller.metricsConfig.servicePortName | string | `"metrics"` | Service metrics port name |
|
||||||
|
| controller.metricsConfig.targetLabels | list | `[]` | ServiceMonitor will add labels from the service to the Prometheus metric |
|
||||||
| controller.name | string | `"workflow-controller"` | Workflow controller name string |
|
| controller.name | string | `"workflow-controller"` | Workflow controller name string |
|
||||||
| controller.namespaceParallelism | string | `nil` | Limits the maximum number of incomplete workflows in a namespace |
|
| controller.namespaceParallelism | string | `nil` | Limits the maximum number of incomplete workflows in a namespace |
|
||||||
| controller.navColor | string | `""` | Set ui navigation bar background color |
|
| controller.navColor | string | `""` | Set ui navigation bar background color |
|
||||||
|
@ -237,6 +240,12 @@ Fields to note:
|
||||||
| Key | Type | Default | Description |
|
| Key | Type | Default | Description |
|
||||||
|-----|------|---------|-------------|
|
|-----|------|---------|-------------|
|
||||||
| server.affinity | object | `{}` | Assign custom [affinity] rules |
|
| server.affinity | object | `{}` | Assign custom [affinity] rules |
|
||||||
|
| server.autoscaling.behavior | object | `{}` | Configures the scaling behavior of the target in both Up and Down directions. This is only available on HPA apiVersion `autoscaling/v2beta2` and newer |
|
||||||
|
| server.autoscaling.enabled | bool | `false` | Enable Horizontal Pod Autoscaler ([HPA]) for the Argo Server |
|
||||||
|
| server.autoscaling.maxReplicas | int | `5` | Maximum number of replicas for the Argo Server [HPA] |
|
||||||
|
| server.autoscaling.minReplicas | int | `1` | Minimum number of replicas for the Argo Server [HPA] |
|
||||||
|
| server.autoscaling.targetCPUUtilizationPercentage | int | `50` | Average CPU utilization percentage for the Argo Server [HPA] |
|
||||||
|
| server.autoscaling.targetMemoryUtilizationPercentage | int | `50` | Average memory utilization percentage for the Argo Server [HPA] |
|
||||||
| server.baseHref | string | `"/"` | Value for base href in index.html. Used if the server is running behind reverse proxy under subpath different from /. |
|
| server.baseHref | string | `"/"` | Value for base href in index.html. Used if the server is running behind reverse proxy under subpath different from /. |
|
||||||
| server.clusterWorkflowTemplates.enableEditing | bool | `true` | Give the server permissions to edit ClusterWorkflowTemplates. |
|
| server.clusterWorkflowTemplates.enableEditing | bool | `true` | Give the server permissions to edit ClusterWorkflowTemplates. |
|
||||||
| server.clusterWorkflowTemplates.enabled | bool | `true` | Create a ClusterRole and CRB for the server to access ClusterWorkflowTemplates. |
|
| server.clusterWorkflowTemplates.enabled | bool | `true` | Create a ClusterRole and CRB for the server to access ClusterWorkflowTemplates. |
|
||||||
|
|
|
@ -15,11 +15,31 @@ spec:
|
||||||
- port: metrics
|
- port: metrics
|
||||||
path: {{ .Values.controller.metricsConfig.path }}
|
path: {{ .Values.controller.metricsConfig.path }}
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
{{- with .Values.controller.metricsConfig.relabelings }}
|
||||||
|
relabelings:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.controller.metricsConfig.metricRelabelings }}
|
||||||
|
metricRelabelings:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.controller.telemetryConfig.enabled }}
|
{{- if .Values.controller.telemetryConfig.enabled }}
|
||||||
- port: telemetry
|
- port: telemetry
|
||||||
path: {{ .Values.controller.telemetryConfig.path }}
|
path: {{ .Values.controller.telemetryConfig.path }}
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
{{- with .Values.controller.metricsConfig.relabelings }}
|
||||||
|
relabelings:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.controller.metricsConfig.metricRelabelings }}
|
||||||
|
metricRelabelings:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.controller.metricsConfig.targetLabels }}
|
||||||
|
targetLabels:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
namespaceSelector:
|
namespaceSelector:
|
||||||
matchNames:
|
matchNames:
|
||||||
|
|
|
@ -0,0 +1,45 @@
|
||||||
|
{{- if and .Values.server.enabled .Values.server.autoscaling.enabled }}
|
||||||
|
apiVersion: autoscaling/v2beta1
|
||||||
|
kind: HorizontalPodAutoscaler
|
||||||
|
metadata:
|
||||||
|
name: {{ template "argo-workflows.server.fullname" . }}
|
||||||
|
namespace: {{ .Release.Namespace | quote }}
|
||||||
|
labels:
|
||||||
|
{{- include "argo-workflows.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 4 }}
|
||||||
|
spec:
|
||||||
|
scaleTargetRef:
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
name: {{ template "argo-workflows.server.fullname" . }}
|
||||||
|
minReplicas: {{ .Values.server.autoscaling.minReplicas }}
|
||||||
|
maxReplicas: {{ .Values.server.autoscaling.maxReplicas }}
|
||||||
|
metrics:
|
||||||
|
{{- with .Values.server.autoscaling.targetMemoryUtilizationPercentage }}
|
||||||
|
- type: Resource
|
||||||
|
resource:
|
||||||
|
name: memory
|
||||||
|
{{- if eq (include "argo-workflows.apiVersion.autoscaling" $) "autoscaling/v2beta1" }}
|
||||||
|
targetAverageUtilization: {{ . }}
|
||||||
|
{{- else }}
|
||||||
|
target:
|
||||||
|
averageUtilization: {{ . }}
|
||||||
|
type: Utilization
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.server.autoscaling.targetCPUUtilizationPercentage }}
|
||||||
|
- type: Resource
|
||||||
|
resource:
|
||||||
|
name: cpu
|
||||||
|
{{- if eq (include "argo-workflows.apiVersion.autoscaling" $) "autoscaling/v2beta1" }}
|
||||||
|
targetAverageUtilization: {{ . }}
|
||||||
|
{{- else }}
|
||||||
|
target:
|
||||||
|
averageUtilization: {{ . }}
|
||||||
|
type: Utilization
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.server.autoscaling.behavior }}
|
||||||
|
behavior:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
|
@ -12,7 +12,9 @@ metadata:
|
||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
|
{{- if not .Values.server.autoscaling.enabled }}
|
||||||
replicas: {{ .Values.server.replicas }}
|
replicas: {{ .Values.server.replicas }}
|
||||||
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "argo-workflows.selectorLabels" (dict "context" . "name" .Values.server.name) | nindent 6 }}
|
{{- include "argo-workflows.selectorLabels" (dict "context" . "name" .Values.server.name) | nindent 6 }}
|
||||||
|
|
|
@ -111,6 +111,15 @@ controller:
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
# -- Service metrics port name
|
# -- Service metrics port name
|
||||||
servicePortName: metrics
|
servicePortName: metrics
|
||||||
|
# -- ServiceMonitor relabel configs to apply to samples before scraping
|
||||||
|
## Ref: https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
|
||||||
|
relabelings: []
|
||||||
|
# -- ServiceMonitor metric relabel configs to apply to samples before ingestion
|
||||||
|
## Ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#endpoint
|
||||||
|
metricRelabelings: []
|
||||||
|
# -- ServiceMonitor will add labels from the service to the Prometheus metric
|
||||||
|
## Ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#servicemonitorspec
|
||||||
|
targetLabels: []
|
||||||
# -- the controller container's securityContext
|
# -- the controller container's securityContext
|
||||||
securityContext:
|
securityContext:
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
|
@ -431,6 +440,32 @@ server:
|
||||||
resources: {}
|
resources: {}
|
||||||
# -- The number of server pods to run
|
# -- The number of server pods to run
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
## Argo Server Horizontal Pod Autoscaler
|
||||||
|
autoscaling:
|
||||||
|
# -- Enable Horizontal Pod Autoscaler ([HPA]) for the Argo Server
|
||||||
|
enabled: false
|
||||||
|
# -- Minimum number of replicas for the Argo Server [HPA]
|
||||||
|
minReplicas: 1
|
||||||
|
# -- Maximum number of replicas for the Argo Server [HPA]
|
||||||
|
maxReplicas: 5
|
||||||
|
# -- Average CPU utilization percentage for the Argo Server [HPA]
|
||||||
|
targetCPUUtilizationPercentage: 50
|
||||||
|
# -- Average memory utilization percentage for the Argo Server [HPA]
|
||||||
|
targetMemoryUtilizationPercentage: 50
|
||||||
|
# -- Configures the scaling behavior of the target in both Up and Down directions.
|
||||||
|
# This is only available on HPA apiVersion `autoscaling/v2beta2` and newer
|
||||||
|
behavior: {}
|
||||||
|
# scaleDown:
|
||||||
|
# stabilizationWindowSeconds: 300
|
||||||
|
# policies:
|
||||||
|
# - type: Pods
|
||||||
|
# value: 1
|
||||||
|
# periodSeconds: 180
|
||||||
|
# scaleUp:
|
||||||
|
# stabilizationWindowSeconds: 300
|
||||||
|
# policies:
|
||||||
|
# - type: Pods
|
||||||
|
# value: 2
|
||||||
pdb:
|
pdb:
|
||||||
# -- Configure [Pod Disruption Budget] for the server pods
|
# -- Configure [Pod Disruption Budget] for the server pods
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
|
@ -2,7 +2,7 @@ apiVersion: v2
|
||||||
name: argocd-apps
|
name: argocd-apps
|
||||||
description: A Helm chart for managing additional Argo CD Applications and Projects
|
description: A Helm chart for managing additional Argo CD Applications and Projects
|
||||||
type: application
|
type: application
|
||||||
version: 0.0.9
|
version: 1.0.0
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
|
icon: https://argo-cd.readthedocs.io/en/stable/assets/logo.png
|
||||||
keywords:
|
keywords:
|
||||||
|
@ -14,5 +14,5 @@ maintainers:
|
||||||
url: https://argoproj.github.io/
|
url: https://argoproj.github.io/
|
||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: added
|
- kind: fixed
|
||||||
description: Multiple sources for Application and ApplicationSet
|
description: Changed the project field of the applicationset from a tpl function to a string.
|
||||||
|
|
|
@ -42,3 +42,32 @@ applicationsets:
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
# Set Application finalizer
|
# Set Application finalizer
|
||||||
preserveResourcesOnDeletion: false
|
preserveResourcesOnDeletion: false
|
||||||
|
- name: applicationset-list-generator
|
||||||
|
generators:
|
||||||
|
- list:
|
||||||
|
elements:
|
||||||
|
- cluster: engineering-dev
|
||||||
|
url: https://kubernetes.default.svc
|
||||||
|
template:
|
||||||
|
metadata: {}
|
||||||
|
spec:
|
||||||
|
project: '{{cluster}}'
|
||||||
|
source:
|
||||||
|
targetRevision: HEAD
|
||||||
|
repoURL: https://github.com/argoproj/argo-cd.git
|
||||||
|
# New path value is generated here:
|
||||||
|
path: 'applicationset/examples/template-override/{{cluster}}-override'
|
||||||
|
destination: {}
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
name: '{{cluster}}-guestbook'
|
||||||
|
spec:
|
||||||
|
project: '{{cluster}}'
|
||||||
|
source:
|
||||||
|
repoURL: https://github.com/argoproj/argo-cd.git
|
||||||
|
targetRevision: HEAD
|
||||||
|
# This 'default' value is not used: it is is replaced by the generator's template path, above
|
||||||
|
path: applicationset/examples/template-override/default
|
||||||
|
destination:
|
||||||
|
server: '{{url}}'
|
||||||
|
namespace: guestbook
|
||||||
|
|
|
@ -51,7 +51,7 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .spec }}
|
{{- with .spec }}
|
||||||
spec:
|
spec:
|
||||||
project: {{ tpl .project $ }}
|
project: {{ .project | squote }}
|
||||||
{{- with .source }}
|
{{- with .source }}
|
||||||
source:
|
source:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
|
Loading…
Reference in a new issue