Skip to content

[DOCS] Gateway spec.service.type and annotations now take effect #791

Closed

Description

Summary

The operator ignored Gateway spec.service.type and spec.service.annotations - every Service was created as the API server default (ClusterIP) with no annotations, and later spec changes never reached the Service. inference-gateway/operator#260 fixes this, so the documented Service configuration (ClusterIP / NodePort / LoadBalancer plus cloud load balancer annotations) now behaves as described.

Notes for the docs:

  • Annotations are authoritative on the operator-owned Service: removing a key from the spec removes it from the Service.
  • The fix ships in the next operator release; users on older operator versions should not expect these fields to work.

Affected pages: any Gateway CRD reference / networking page covering spec.service.

Related PR: inference-gateway/operator#260

Acceptance Criteria

  • Gateway spec.service.type and spec.service.annotations documented as functional, with the minimum operator version noted
  • A LoadBalancer example with cloud provider annotations is present and accurate
  • Authoritative annotation behavior is called out

Activity

  1. added
    documentation
    on Sep 25, 2026
  2. added theissue type on Sep 25, 2026
  3. edenreich commented on Sep 25, 2026

    @edenreich
    Contributor

    @infer can you work on this? use /ponytail:ponytail

  4. moved this to Todo in 2026on Sep 25, 2026
  5. inference-gateway-maintainer commented on Sep 25, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Model: ollama_cloud/glm-5.3-flash · View Job

    Todos

    Pull Request

    #799

    ✅ Infer Result: Success

    Done. PR: #799 (ready for review, fix/issue-791 -> main).

    What changed

    operator.md (the only page covering the Gateway CRD's spec.service):

    • New subsection "Gateway Service (spec.service)" after the Gateway field table, with the service.{type,port,annotations} row now linking to it.
    • Documents the fields as functional with the minimum operator version: operator v0.26.1 or later (the fix merged as fix(gateway): apply service type and annotations after v0.26.0, so it ships in the patch release; older operators silently ignore the fields and leave the Service as the API-server default - ClusterIP, no annotations).
    • LoadBalancer example with AWS NLB annotations (service.beta.kubernetes.io/aws-load-balancer-type: nlb, ...-scheme: internet-facing).
    • Calls out authoritative annotation behavior: the reconcile loop matches the Service's annotations exactly to spec.service.annotations, so removing a key from the spec removes it from the Service.

    Acceptance criteria all met. Validation: bun run lint:md, bun run format:check, bun run build pass. Issue tracked on Roadmap 2026 (In progress -> QA). Skipped: enumerating all Service types and nodePort-preservation internals in the docs - add only if the CRD's supported types narrow from the standard four.

    Model: ollama_cloud/glm-5.3-flash · Exit Code: 0 · Duration: 3m 13s

    Tokens: 1,205,178 in · 10,913 out · 1,216,091 total (30 requests)

    Tool calls: 40 total · 100% success rate

    Traces
    Session: 1790379809-38644cb3
    
    session (headless, success)                                                                         3m6s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.9s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.9s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.9s
    ├── execute_tool Read call_hf6ek958                                                                135µs
    ├── execute_tool Memory call_uuoypbd7                                                               51µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.6s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.5s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.5s
    ├── execute_tool Memory call_020z3i5h                                                              116µs
    ├── execute_tool Grep call_4thfvv2q                                                                 1.2s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 5.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       5.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     5.5s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             5.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 5.5s
    ├── execute_tool TodoWrite call_52eotcl1                                                            50µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.8s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.8s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.8s
    ├── execute_tool Grep call_ci4ccr56                                                                 1.3s
    ├── execute_tool Grep call_7o7inc2a                                                                 1.9s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.8s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.8s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.8s
    ├── execute_tool Read call_nm8i9kis                                                                  1ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 7.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.8s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.7s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             7.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.7s
    ├── execute_tool Bash call_odqyz5nt                                                                506ms
    ├── execute_tool Read call_xtg7rtbo                                                                139µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 4.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.7s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.7s
    ├── execute_tool Memory call_xetws8w5                                                               57µs
    ├── execute_tool Bash call_us6g44yq                                                                956ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 6.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       6.4s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     6.4s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             6.4s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 6.4s
    ├── execute_tool Bash call_dzxmvyun                                                                442ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.1s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.2s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.2s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.2s
    ├── execute_tool Bash call_s5hrp46l                                                                452ms [error: tool_error]
    ├── chat ollama_cloud/glm-5.3-flash                                                                 3.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       3.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     3.2s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             3.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 3.2s
    ├── execute_tool Bash call_hq3rnstu                                                                471ms
    ├── execute_tool Bash call_a2g78bu1                                                                336ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.0s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.0s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.0s
    ├── execute_tool Bash call_lzubdm37                                                                 1.3s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.0s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.0s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.0s
    ├── execute_tool Bash call_fchjjlct                                                                523ms
    ├── execute_tool Bash call_126r4n19                                                                 53ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                13.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      13.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    13.1s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            13.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                13.1s
    ├── execute_tool Bash call_24r2tm5s                                                                 1.4s
    ├── chat ollama_cloud/glm-5.3-flash                                                                14.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                      14.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]    14.0s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                            14.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                14.0s
    ├── execute_tool Bash call_jas773o4                                                                413ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 4.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.7s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.7s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.7s
    ├── execute_tool MultiEdit call_uczyhuo6                                                           956µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.8s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.8s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.8s
    ├── execute_tool TodoWrite call_dc5v5elx                                                            48µs
    ├── execute_tool Bash call_blr07id3                                                                 4.4s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.9s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.9s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.9s
    ├── execute_tool Bash call_xkaf6auc                                                                 1.7s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.8s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.8s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.8s
    ├── execute_tool Bash call_6wu7hl90                                                                 4.3s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.2s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.2s
    ├── execute_tool Bash call_fdl91vqz                                                                32.2s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.2s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.2s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.2s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.2s
    ├── execute_tool Bash call_vulfnj7d                                                                  5ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.8s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.8s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.8s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.8s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.8s
    ├── execute_tool Bash call_s1ktln8b                                                                  5ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.5s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.5s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.5s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.5s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.5s
    ├── execute_tool Bash call_llui1wyg                                                                  6ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.7s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.6s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.6s
    ├── execute_tool Bash call_vze79mml                                                                 1.4s
    ├── execute_tool Write call_6gjk7951                                                               688µs
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.1s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.0s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.0s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.0s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.0s
    ├── execute_tool Bash call_qqtzxbn7                                                                 1.9s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 7.3s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.3s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.3s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             7.3s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.3s
    ├── execute_tool Bash call_av9knh5o                                                                781ms
    ├── execute_tool Bash call_5urhg4zl                                                                  4ms
    ├── chat ollama_cloud/glm-5.3-flash                                                                 1.9s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       1.9s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     1.9s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             1.9s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 1.9s
    ├── execute_tool Bash call_v52gvnw7                                                                 1.1s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 7.2s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       7.1s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     7.1s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             7.1s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 7.1s
    ├── execute_tool Bash call_mynizoji                                                                456ms
    ├── execute_tool Memory call_nw0169xj                                                               1.4s
    ├── chat ollama_cloud/glm-5.3-flash                                                                 2.7s
    │   ╰── POST /v1/chat/completions [inference-gateway, server]                                       2.6s
    │       ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     2.6s
    │           ╰── POST /proxy/:provider/*path [inference-gateway, server]                             2.6s
    │               ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 2.6s
    ├── execute_tool TodoWrite call_7fn1iocl                                                            43µs
    ╰── chat ollama_cloud/glm-5.3-flash                                                                 4.3s
        ╰── POST /v1/chat/completions [inference-gateway, server]                                       4.3s
            ╰── POST 127.0.0.1:8080/proxy/ollama_cloud/chat/completions [inference-gateway, client]     4.3s
                ╰── POST /proxy/:provider/*path [inference-gateway, server]                             4.3s
                    ╰── POST ollama.com/v1/chat/completions [inference-gateway, client]                 4.3s
    
    Stats
    Tool Calls
    
    ╭───────────┬───────┬───────┬────────╮
    │ Tool      │ Calls │ Fail% │ Avg    │
    ├───────────┼───────┼───────┼────────┤
    │ Bash      │ 24    │ 4%    │ 2290ms │
    │ Memory    │ 4     │ 0%    │ 339ms  │
    │ Read      │ 3     │ 0%    │ 429µs  │
    │ TodoWrite │ 3     │ 0%    │ 49µs   │
    │ Grep      │ 3     │ 0%    │ 1505ms │
    │ MultiEdit │ 1     │ 0%    │ 928µs  │
    │ Write     │ 1     │ 0%    │ 722µs  │
    ╰───────────┴───────┴───────┴────────╯
    
    Token Usage
    
    ╭────────────────────────────┬─────────┬────────┬────────────┬─────────┬──────╮
    │ Model                      │ Prompt  │ Cached │ Completion │ Total   │ Cost │
    ├────────────────────────────┼─────────┼────────┼────────────┼─────────┼──────┤
    │ ollama_cloud/glm-5.3-flash │ 1205178 │ 887040 │ 10913      │ 1216091 │ -    │
    ╰────────────────────────────┴─────────┴────────┴────────────┴─────────┴──────╯
    
    Sessions
    
    ╭───────────┬──────────┬──────────╮
    │ Execution │ Mode     │ Sessions │
    ├───────────┼──────────┼──────────┤
    │ headless  │ headless │ 1        │
    ╰───────────┴──────────┴──────────╯
    

    Triggered by edenreich · Infer Action · OSS

  6. moved this from Todo to In progress in 2026on Sep 25, 2026
  7. inference-gateway-releaser commented on Sep 26, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.17 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

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

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions