Skip to content

chore(k8s): apply the DeepSeek price to the live devops-cli-config #4423

Closed as not planned

Description

@devops-cli-service

Split from #4403.

Problem

The pull request adds deepseek-v4.1-flash-1017:floor to ai.price_overrides in k8s/devops/configmap.example.yaml, but the live ConfigMap devops/devops-cli-config is not under Argo CD and is patched by hand (k8s/README.md:703). Until the live ConfigMap holds the entry, the Service keeps recording DeepSeek spend at $0.

Why this part is deferred

A pull request cannot change the live cluster; a person with cluster access applies the entry and restarts the deployment.

Acceptance criteria

  • The live ConfigMap devops/devops-cli-config holds, under ai.price_overrides, these lines:
        deepseek-v4.1-flash-1017:floor:
          prompt_usd_per_million: 0.05
          completion_usd_per_million: 0.192
  • The person runs kubectl -n devops rollout restart deployment/roadmap-service.
  • After the restart, a DeepSeek call through the gateway adds a non-zero cost to devops_cli_ai_spend_usd_total{model="deepseek-v4.1-flash-1017"} and devops ai cost shows it.

Proposed design

Problem statement

The live ConfigMap devops/devops-cli-config does not hold the DeepSeek floor price under ai.price_overrides. A pull request adds the entry to k8s/devops/configmap.example.yaml, but the live ConfigMap is not under Argo CD and a person patches it by hand. The Service records DeepSeek spend at $0 until the live entry is there. A pull request cannot change the live cluster.

Acceptance criteria

Requirement: Live ConfigMap holds the DeepSeek price

The live ConfigMap devops/devops-cli-config MUST hold the deepseek-v4.1-flash-1017:floor entry under ai.price_overrides, with prompt_usd_per_million 0.05 and completion_usd_per_million 0.192.

Scenario: Read the patched ConfigMap

  • WHEN a person runs kubectl -n devops get configmap devops-cli-config -o yaml after the patch
  • THEN the output holds the deepseek-v4.1-flash-1017:floor entry with both prices.

Requirement: Deployment restarts after the patch

The deployment roadmap-service MUST restart after the ConfigMap patch.

Scenario: Watch the rollout

  • WHEN the person runs kubectl -n devops rollout restart deployment/roadmap-service
  • THEN kubectl -n devops rollout status deployment/roadmap-service reports the rollout complete.

Requirement: DeepSeek spend is non-zero

A DeepSeek call through the gateway MUST add a non-zero cost to devops_cli_ai_spend_usd_total{model="deepseek-v4.1-flash-1017"}.

Scenario: Check the spend after a call

  • WHEN a DeepSeek call goes through the gateway after the restart
  • THEN the metric increases and devops ai cost shows the cost.

Existing Tool Considered

No alternatives check has run. kubectl covers the need: kubectl -n devops patch configmap devops-cli-config writes the DeepSeek entry, and kubectl -n devops rollout restart deployment/roadmap-service restarts the deployment. It lacks nothing for this task. genai-prices does not know deepseek-v4.1-flash-1017:floor, so the price lives in ai.price_overrides.

Key questions

  • Does the deployed image accept the ai.price_overrides key?: Only an image at feat(ai): a setting holds the price of a reference model #4242 or newer. The README says ai.price_overrides is a declared key of the ai section, and an image older than feat(ai): a setting holds the price of a reference model #4242 refuses the key and does not start. Apply the key after the new image runs or at the same time. [sources: k8s/README.md]
  • Which commands patch the live ConfigMap and restart the deployment?: kubectl -n devops patch configmap devops-cli-config writes the entry, and kubectl -n devops rollout restart deployment/roadmap-service restarts the deployment. The CronJobs read the ConfigMap at each run. [sources: k8s/README.md]
  • Should the live ConfigMap move under Argo CD instead of the hand patch?: Keep the hand patch for this issue. The README says the ConfigMap is not under Argo CD. Moving it under Argo CD is a separate change that needs its own issue. (best practice) [sources: k8s/README.md]
    • Chosen: Hand patch with kubectl. The README documents this procedure, and the issue's scope is the live entry only.
    • Rejected: Move the ConfigMap under Argo CD. This is a separate change that needs its own issue and plan.

Fit

Fits in one pull request.

Suspected block

A person with cluster access must patch devops/devops-cli-config and restart deployment/roadmap-service.

Dependencies

None.

Activity

  1. added
    source/agent
    type/chore
    scope/k8s
    status/new
    value/medium
    effort/low
    on Nov 10, 2026
  2. devops-cli-service commented on Nov 10, 2026

    @devops-cli-service
    ContributorAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/chore. The chore prefix of the title gives the type.
    • Scope: scope/k8s. The (k8s) scope of the title gives the scope.
    • Priority: P2-Medium. The spend counter records DeepSeek cost as zero until a person applies the entry.
    • Value: Medium. Correct DeepSeek cost data improves spend reports and alerts, but no user-facing feature changes.
    • Effort: Low. A person adds three lines to one ConfigMap and restarts one deployment.
    • Related: fix(ai): price the DeepSeek models in the price table #4403, which asks for a different change. Both items price deepseek-v4.1-flash-1017, but #4403 edits the repository price table and the candidate applies the entry to the live ConfigMap.
  3. devops-cli-service commented on Nov 10, 2026

    @devops-cli-service
    ContributorAuthor

    Refine cannot set this item to Ready at 1ca0133 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • A person with cluster access must patch devops/devops-cli-config and restart deployment/roadmap-service.
  4. dan-petty commented on Nov 11, 2026

    @dan-petty
    Owner

    #4454 (for #4403) replaces this item. Do not apply these lines to the live ConfigMap.

    • fix(ai): price the DeepSeek group and its cached input #4454 puts the price of deepseek-v4.1-flash-1017 in the code (_HOSTED_GROUP_PRICES in src/devops_cli/ai/spend/pricing.py), under the route name and the deployment model. Every process (Service, runner Jobs, workstation) records it with no hand step.
    • An ai.price_overrides entry wins over the built-in price. The rates in this item (0.05 and 0.192 USD per million tokens) differ from the cost that the gateway recorded from OpenRouter from 2026-11-08 to 2026-11-11 by 20% to 117%, and they have no cached input rate. 94% of the prompt tokens of the group come from the cache.
    • The key deepseek-v4.1-flash-1017:floor does not match the 2,469 agent_run rows of the ledger, which name the route name deepseek-v4.1-flash-1017.
    • On 2026-11-11 the live ConfigMap devops/devops-cli-config holds no DeepSeek entry, so it needs no change.

    I close this item as not planned.

  5. removed
    status/new
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/k8ssource/agenttype/chorevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions