Repository navigation
Expand file tree
/
Copy pathclaude-code-config-configmap.example.yaml
More file actions
69 lines (69 loc) · 3.89 KB
/
Copy pathclaude-code-config-configmap.example.yaml
File metadata and controls
69 lines (69 loc) · 3.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Example ConfigMap for the claude-code workload's non-credential settings, the
# counterpart of the credentials-only `claude-code-credentials` Secret
# (claude-code-credentials-secret.example.yaml). The control plane names it
# with CLAUDE_CODE_CONFIG_CONFIGMAP (default `claude-code-config`).
#
# base-url (required for claude-code in CLAUDE_CODE_AUTH_MODE=gateway)
# The provider's HTTPS endpoint,
# projected only into a credential-proxy beside auth-token. A
# subscription-mode claude-code session reaches its provider
# directly and does not read it (AC-E7).
# model, models The gateway's model ids. Gateway-mode claude-code reads
# them; a subscription-mode claude-code does not.
# subscription-model, subscription-models (optional) The same pair for
# CLAUDE_CODE_AUTH_MODE=subscription: Claude subscription models
# (for example opus, sonnet). The control plane reads them as
# CLAUDE_CODE_SUBSCRIPTION_DEFAULT_MODEL / _MODELS (AC-E7).
# model (optional) Projected into the tool-running container as
# CLAUDE_CODE_MODEL only for platform-default sessions, and into the
# control plane as CLAUDE_CODE_DEFAULT_MODEL for its UI snapshot.
# models (optional) JSON string array, projected only into the control
# plane as CLAUDE_CODE_MODELS (the UI picker catalog).
# ca-cert (optional) PEM bundle for a provider base-url served by a private
# gateway whose issuer no public store knows. The credential proxy
# adds it to the system roots rather than replacing them, so a
# publicly issued endpoint keeps working; omit the key entirely and
# the proxy uses the system pool. It reaches the proxy container
# only, like base-url. A CA certificate is public, so it is not a
# credential.
# k3s-mcp-url, plugin-marketplace-url (optional) The two addresses the
# session pod's k3s-mcp-proxy sidecar reaches, projected there as
# K3S_MCP_URL and PLUGIN_SEED_MARKETPLACE_URL (k3s-mcp-url also
# reaches the tool-running container, which reads its path). Omit
# them and the sidecar keeps the production defaults
# (https://homelab-k3s-mcp.llkm.nl/mcp and
# https://github.com/dlddu/plugin-marketplace.git), which is why the
# example below leaves them out. The K3s MCP address must be https;
# the short-lived GitHub token's Git auth header is scoped to
# whichever marketplace URL is configured (AC-E6).
#
# Omit model (or set it to an empty string) to let the installed Claude Code
# CLI choose its own default without a --model flag. Explicit concrete models
# selected on a session are injected literally and take precedence over this
# platform default. Omit models (or set it to []) to keep the free-text picker.
# Non-empty model and models entries must match
# ^(~[A-Za-z0-9][A-Za-z0-9._:/-]{0,126}|[A-Za-z0-9][A-Za-z0-9._:/-]{0,127})$.
# A single leading ~ is supported for OpenRouter moving aliases.
#
# This file is EXAMPLE-ONLY and is deliberately NOT listed in kustomization.yaml:
# real values are provisioned out-of-band —
# - production: external-secrets renders the `claude-code-config` ConfigMap
# from SSM (flux-cd-apps),
# - otherwise create it directly, e.g.
#
# kubectl create configmap claude-code-config \
# --from-literal=base-url=https://api.anthropic.com \
# --from-literal=model=sonnet \
# --from-literal=models='["sonnet","opus"]'
apiVersion: v1
kind: ConfigMap
metadata:
name: claude-code-config
labels:
app: control-plane
data:
base-url: "https://api.anthropic.com"
model: "~anthropic/claude-sonnet-latest"
models: '["~anthropic/claude-sonnet-latest","~anthropic/claude-opus-latest"]'
subscription-model: "sonnet"
subscription-models: '["opus","sonnet","haiku"]'