Repository navigation
Expand file tree
/
Copy pathvalues.yaml
More file actions
189 lines (173 loc) · 7.67 KB
/
Copy pathvalues.yaml
File metadata and controls
189 lines (173 loc) · 7.67 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
# git-cache-proxy container image. Defaults to the published image; override
# repository/tag to point at a fork or mirror. An empty tag uses the chart
# appVersion, so the chart and the image it deploys stay in lockstep.
image:
repository: ghcr.io/rolandjitsu/git-cache-proxy
tag: ""
pullPolicy: IfNotPresent
# Pull secrets for a private registry. Empty for the public default image.
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
# Upstream git server base URL. Requested repo paths are appended to it, so
# `https://github.com` serves `github.com/<owner>/<repo>.git`. Point it at your
# own GitHub/GitLab/Gitea host to cache that.
upstream: https://github.com
# Optional auth for upstream clone/fetch. The proxy reads a full HTTP header from
# GITCACHEPROXY_UPSTREAM_AUTH_HEADER (injected via env so the token never lands in
# argv). Supply it from a Secret holding the full header value, for example
# `Authorization: Bearer <token>` or `Authorization: Basic <base64>` (GitLab: the
# base64 of `oauth2:<pat>`). Leave existingSecret empty to contact upstream
# anonymously - public repos only.
upstreamAuth:
existingSecret: ""
# Key in the Secret whose value is the full Authorization header line.
key: auth-header
# Optional bearer token clients must present (Authorization: Bearer <token>),
# sourced from a Secret. Empty serves anonymously; only safe on a
# network-restricted deployment (the token grants access to every mirrored repo -
# see the chart README).
serveToken:
existingSecret: ""
key: token
# Per-request client token validation: each request's credential is checked
# for the repo it names, so a client only reaches what its own credential could
# clone directly (short-lived CI tokens are the intended use). Disabled keeps
# the legacy anonymous/shared-token behavior.
clientAuth:
enabled: false
# Required when enabled: github | gitlab | custom. github and gitlab probe the
# upstream's own info/refs with the client's credential.
provider: ""
# Which credential the proxy presents upstream for clone/fetch and LFS: empty or
# `static` uses the shared upstreamAuth secret; `client` forwards the requesting
# client's own credential, so no long-lived upstream secret is held. `client`
# requires provider github or gitlab and must not be combined with
# upstreamAuth.existingSecret (which then becomes optional).
upstreamCredential: ""
# custom only: URL template with {repo}, e.g.
# http://auth.example.com/validate/{repo}. The token never goes in the URL.
validateUrl: ""
# custom only: header line presenting the client token, e.g.
# `PRIVATE-TOKEN: {token}`. Empty = Authorization: Bearer {token}.
tokenHeader: ""
# custom only: repo encoding for {repo} - `path` (owner/repo) or `encoded-path`
# (owner%2Frepo, GitLab-style). Empty = path.
repoForm: ""
# Total budget for one validation request. Empty = the binary default (10).
timeoutSeconds: ""
# Reuse a verdict per (credential, repo) for this many seconds. Empty = 0
# (validate every request); set a short TTL for submodule-heavy workloads.
ttlSeconds: ""
# Validation requests in flight at once; bounds the outbound calls a flood of
# junk credentials can cause. Empty = the binary default (32); 0 = unlimited.
maxConcurrent: ""
# Accept a plain http validation endpoint (upstream for github/gitlab,
# validateUrl for custom). Client credentials would travel in cleartext.
allowHttp: false
# HMAC key (at least 32 bytes) signing LFS download grants. Every replica
# behind one Service needs the same key; empty = a random key per pod.
signingKey:
existingSecret: ""
key: signing-key
# Proxy configuration (each maps to a GITCACHEPROXY_* env var / flag).
config:
# Skip the upstream fetch on info/refs if the mirror was refreshed within this
# many seconds; coalesces bursts of clones for one repo. 0 = always fetch.
fetchTtlSeconds: 10
# Total upstream command budget, including retries (positive seconds).
upstreamTimeoutSeconds: 3600
# Background refresh of recently requested mirrors: seconds between rounds.
# 0 = disabled; otherwise at least 3600.
refreshIntervalSeconds: 0
# Refresh only mirrors requested within this many seconds (at least 1).
refreshActiveWindowSeconds: 604800
# Max background fetches in flight (at least 1). Used only when refresh is on.
maxConcurrentRefreshes: 4
# Cap on total on-disk mirror cache, in MiB; evicts least-recently-used idle
# mirrors when exceeded. 0 = unlimited (no eviction). Set this whenever the
# cache volume is bounded.
cacheMaxMb: 0
# Max concurrent in-flight requests; excess queue. Bounds the upstream
# clone/fetch a burst can trigger. 0 = unlimited.
maxConcurrentRequests: 64
# Cap on a decoded upload-pack request body, in MiB (bounds memory, defuses a
# gzip bomb). Caps only the negotiation request, never the streamed packfile.
maxDecodedBodyMb: 512
# Log filter directive, e.g. `info` or `git_cache_proxy=debug,tower=warn`.
logLevel: info
# Log output: `text` (human) or `json` (for log shippers).
logFormat: text
# On-disk cache holding the bare mirrors.
persistence:
# true mounts a PersistentVolumeClaim so mirrors survive restarts; false uses an
# emptyDir (mirrors are lost on restart, then transparently re-cloned - fine for
# a pure accelerator).
enabled: true
# Mount this existing PVC instead of creating one. Empty creates one named after
# the release.
existingClaim: ""
size: 20Gi
# StorageClass for the created PVC. Empty uses the cluster default class.
storageClassName: ""
# ReadWriteOnce matches the single-writer design (one replica, see the README).
accessModes:
- ReadWriteOnce
# Size limit for the emptyDir when persistence is disabled.
emptyDirSizeLimit: 20Gi
service:
type: ClusterIP
# Serves both the git smart-HTTP endpoints and /healthz, /readyz, /metrics. Also
# the port the container binds to.
port: 8080
# Pod resource requests/limits. Empty by default; size to your repos and traffic.
resources: {}
# requests:
# cpu: 250m
# memory: 256Mi
# limits:
# memory: 1Gi
# Seconds Kubernetes waits for in-flight clones/fetches to drain on shutdown. The
# binary handles SIGTERM (stops accepting new requests, finishes in-flight ones);
# a large clone can take a while, so keep this generous.
terminationGracePeriodSeconds: 60
# Extra annotations on the pod, e.g. to opt a plain Prometheus scraper into
# /metrics on the service port. (For the Prometheus Operator use serviceMonitor.)
podAnnotations: {}
# Pod- and container-level security contexts. The image runs as UID/GID 10001;
# fsGroup makes the cache PVC writable for it, including a volume an older
# root-running release wrote.
podSecurityContext:
fsGroup: 10001
securityContext: {}
nodeSelector: {}
tolerations: []
affinity: {}
# Validate upstream TLS against a private CA. When enabled, mounts `key` from the
# named ConfigMap over the system CA bundle and points git at it. Off by default
# (public CAs).
caTrust:
enabled: false
configMapName: ""
key: ca-certificates.crt
# Prometheus Operator ServiceMonitor for /metrics. Off by default; use
# podAnnotations for a plain scraper instead.
serviceMonitor:
enabled: false
interval: 30s
scrapeTimeout: 10s
# Extra labels, e.g. to match your Prometheus `serviceMonitorSelector`.
labels: {}
# Optional standard networking.k8s.io/v1 Ingress in front of the Service. Off by
# default (reach the ClusterIP in-cluster or port-forward it). For a non-standard
# controller (e.g. a Traefik IngressRoute CRD), leave this off and manage the
# route as a separate manifest.
ingress:
enabled: false
className: ""
annotations: {}
host: git-cache.example.com
path: /
pathType: Prefix
# List of { secretName, hosts: [] } for TLS.
tls: []