Skip to content

Commit

Permalink
TACODEV-774: enable metric on argo series
Browse files Browse the repository at this point in the history
  • Loading branch information
sungil committed Jul 2, 2021
1 parent 36aadcc commit 619b514
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 15 deletions.
23 changes: 8 additions & 15 deletions roles/decapod/tasks/argo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,16 @@
ignore_errors: true
become: false

- name: install argo chart
- name: templating values file for argo-wf chart
template:
src: "{{ role_path }}/templates/argowf_values.j2"
dest: "{{ role_path }}/files/argowf.vo"
become: false

- name: install argo-wf chart
shell: >-
{{ bin_dir }}/helm install argo {{ argo_chart_source }} -n argo \
--set workflowArchive.enabled={{ argo_workflow_archive_enabled }} \
--set mysql.enabled={{ argo_workflow_archive_enabled }} \
--set workflowController.image.repository={{ argo_workflow_controller_image_repo }} \
--set workflowController.image.tag={{ argo_version }} \
--set workflowController.executor.image.repository={{ argo_workflow_executor_image_repo }} \
--set workflowController.executor.image.tag={{ argo_version }} \
--set argoServer.image.repository={{ argo_server_image_repo }} \
--set argoServer.image.tag={{ argo_version }} \
--set nodeSelector={{ argo_node_selector }} \
--set mysql.image.repository={{ argo_mysql_image_repo }} \
--set mysql.image.tag={{ argo_mysql_version }} \
--set mysql.persistence.storageClass={{ taco_storageclass_name }} \
--set mysql.persistence.size={{ argo_archive_storage_size }} \
--set mysql.nodeSelector={{ argo_node_selector }}
-f {{ role_path }}/files/argowf.vo
become: false

- name: wait for argo pods become ready
Expand Down
6 changes: 6 additions & 0 deletions roles/decapod/templates/argocd_values.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ dex:
image:
repository: {{ argocd_dex_image_repo }}
tag: {{ argocd_dex_version }}
metrics:
enabled: true

redis:
image:
Expand All @@ -17,12 +19,16 @@ redis:

controller:
replicas: {{ argocd_app_ctrl_replicas }}
metrics:
enabled: true

repoServer:
replicas: {{ argocd_repo_server_replicas }}

server:
replicas: {{ argocd_server_replicas }}
metrics:
enabled: true
service:
type: NodePort
configEnabled: true
Expand Down
34 changes: 34 additions & 0 deletions roles/decapod/templates/argowf_values.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

workflowArchive:
enabled: {{ argo_workflow_archive_enabled }}
workflowController:
image:
repository: {{ argo_workflow_controller_image_repo }}
tag: {{ argo_version }}
executor:
image:
repository: {{ argo_workflow_executor_image_repo }}
tag: {{ argo_version }}
argoServer:
image:
repository: {{ argo_server_image_repo }}
tag: {{ argo_version }}
nodeSelector: {{ argo_node_selector }}
mysql:
enabled: {{ argo_workflow_archive_enabled }}
image:
repository: {{ argo_mysql_image_repo }}
tag: {{ argo_mysql_version }}
persistence:
storageClass: {{ taco_storageclass_name }}
size: {{ argo_archive_storage_size }}
nodeSelector: {{ argo_node_selector }}
server:
servicePortName: http
controller:
metricsConfig:
enabled: true
telemetryConfig:
enabled: true
metricsConfig:
enabled: true

0 comments on commit 619b514

Please sign in to comment.