このコンテンツは選択した言語では利用できません。

Chapter 7. Configuring traffic management and metric plugins in Argo Rollouts


Argo Rollouts supports configuring traffic management and metric plugins directly through the RolloutManager Custom Resource (CR). The native support for these plugins in Argo Rollouts eliminates the need to modify the config map manually, ensuring a consistent configuration across the system. As a result, Argo Rollouts no longer preserves user-defined plugins in the config map. Instead, it only applies to the plugins specified within the RolloutManager CR. By managing plugins directly within the RolloutManager CR, you can do the following:

  • Centralize plugin configuration control.
  • Avoid conflicts between the RolloutManager CR and config map.
  • Simplify plugin management by allowing easy addition, removal, or modification of plugins without editing the config map directly.

The traffic management plugin controls how traffic routes between different versions of your application during a rollout, while the metric plugin collects and evaluates metrics to determine the success or failure of a rollout.

7.1. Prerequisites

  • You have logged in to the OpenShift Container Platform cluster as an administrator.
  • You have access to the OpenShift Container Platform web console.
  • You have installed Red Hat OpenShift GitOps on your OpenShift Container Platform cluster.
  • You have installed Argo Rollouts on your OpenShift Container Platform cluster.

7.2. Enabling traffic management and metric plugins in Argo Rollouts

To enable traffic management and metric plugins in Argo Rollouts, complete the following steps.

Procedure

  1. Log in to the OpenShift Container Platform web console as a cluster administrator.
  2. In the Administrator perspective, click Operators Installed Operators.
  3. Create or select the project where you want to create and configure a RolloutManager custom resource (CR) from the Project drop-down menu.
  4. Select Red Hat OpenShift GitOps from the Installed Operators.
  5. In the Details tab, under the Provided APIs section, click Create instance in the RolloutManager pane.
  6. On the Create RolloutManager page, select the YAML view and edit the YAML.

    Example adding the traffic management and metric plugins configuration in the RolloutManager CR

    apiVersion: argoproj.io/v1alpha1
    kind: RolloutManager
    metadata:
      name: argo-rollouts
    spec:
      plugins:
        trafficManagement:
          - name: argoproj-labs/gatewayAPI 
    1
    
            location: https://github.com/sample-metric-plugin 
    2
    
        metric:
          - name: argoproj-labs/sample-prometheus 
    3
    
            location: https://github.com/sample-trafficrouter-plugin 
    4
    
            sha256: dac10cbf57633c9832a17f8c27d2ca34aa97dd3d 
    5
    Copy to Clipboard Toggle word wrap

    1
    Specifies the name of the trafficManagement plugin.
    2
    Specifies the location of the trafficManagement plugin.
    3
    Specifies the name of the metric plugin.
    4
    Specifies the location of the metric plugin.
    5
    Optional: Specifies the SHA256 signature of the plugin binary, which is downloaded and installed by the Rollouts controller.
  7. Click Create.
  8. In the RolloutManager tab, under the RolloutManagers section, verify that the Status field of the RolloutManager instance shows as Phase: Available.
  9. Verify that the traffic management and metric plugins are installed correctly by completing the following steps:

    1. In the Administrator perspective, click Workloads ConfigMaps.
    2. Click the argo-rollouts-config config map.

      As a result, the plugins defined in the RolloutManager CR are updated in the argo-rollouts-config config map.

      Example updated traffic management and metric plugins in the argo-rollouts-config ConfigMap

      kind: ConfigMap
      apiVersion: v1
      metadata:
        name: argo-rollouts-config
        namespace: argo-rollouts
        labels:
          app.kubernetes.io/component: argo-rollouts
          app.kubernetes.io/name: argo-rollouts
          app.kubernetes.io/part-of: argo-rollouts
      data:
        metricPlugins: |
            - name: "argoproj-labs/sample-prometheus" 
      1
      
              location: https://github.com/sample-metric-plugin 
      2
      
              sha256: dac10cbf57633c9832a17f8c27d2ca34aa97dd3d 
      3
      
        trafficRouterPlugins: |
          - name: argoproj-labs/gatewayAPI 
      4
      
            location: https://github.com/sample-metric-plugin 
      5
      
            sha256: "" 
      6
      
          - name: argoproj-labs/openshift 
      7
      
            location: file:/plugins/rollouts-trafficrouter-openshift/openshift-route-plugin 
      8
      
            sha256: "" 
      9
      Copy to Clipboard Toggle word wrap

      1
      Specifies the name of the metric plugin.
      2
      Specifies the location of the metric plugin.
      3
      Specifies the sha256 signature of the metric plugin.
      4
      Specifies the name of the trafficmanagement plugin.
      5
      Specifies the location of the trafficmanagement plugin.
      6
      Specifies the sha256 signature of the trafficmanagement plugin.
      7
      Specifies the name of the default trafficmanagement plugin.
      8
      Specifies the location of the default trafficmanagement plugin.
      9
      Specifies the sha256 signature of the trafficmanagement plugin.

    By configuring traffic and metric plugins directly through the RolloutManager CR, you streamline the rollout process, reduce the chance of errors, and ensure consistent plugin management across your environment. This enhances control and flexibility while simplifying deployment procedures.

トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2025 Red Hat