c2487ec0b6
- Create Chart.yaml with application metadata and keywords - Add _helpers.tpl with name, fullname, labels, and DNS template functions - Generate ConfigMap with all gitks configuration environment variables - Implement StatefulSet with persistent volume claims for repository data - Create headless service for pod DNS and cluster communication - Add gRPC service for client connections and metrics service - Include HorizontalPodAutoscaler for dynamic scaling - Add PodDisruptionBudget to maintain cluster availability - Create ServiceAccount with proper security context - Add test connection pod using grpcurl for health checks - Generate NOTES.txt with installation instructions and quick start guide - Create .helmignore file to exclude common development files - Configure persistence, resource limits, and security settings - Add support for cluster mode with etcd service discovery
36 lines
1.8 KiB
YAML
36 lines
1.8 KiB
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ include "gitks.fullname" . }}
|
|
labels:
|
|
{{- include "gitks.labels" . | nindent 4 }}
|
|
data:
|
|
RUST_LOG: {{ .Values.gitks.rustLog | quote }}
|
|
REPO_PREFIX_PATH: {{ .Values.gitks.repoPrefixPath | quote }}
|
|
GITKS_HOST: {{ .Values.gitks.grpc.host | quote }}
|
|
GITKS_PORT: {{ .Values.gitks.grpc.port | quote }}
|
|
GITKS_METRICS_PORT: {{ .Values.gitks.metrics.port | quote }}
|
|
GITKS_CLUSTER_PORT: {{ .Values.gitks.cluster.port | quote }}
|
|
GITKS_CLUSTER_COOKIE: {{ .Values.gitks.cluster.cookie | quote }}
|
|
{{- if .Values.gitks.etcd.endpoints }}
|
|
GITKS_ETCD_ENDPOINTS: {{ .Values.gitks.etcd.endpoints | quote }}
|
|
{{- end }}
|
|
GITKS_ETCD_CONNECT_TIMEOUT: {{ .Values.gitks.etcd.connectTimeout | quote }}
|
|
GITKS_LEASE_TTL: {{ .Values.gitks.etcd.leaseTtl | quote }}
|
|
GITKS_HEALTH_CHECK_INTERVAL: {{ .Values.gitks.healthCheck.interval | quote }}
|
|
GITKS_MAX_HEALTH_FAILURES: {{ .Values.gitks.healthCheck.maxFailures | quote }}
|
|
GITKS_DISK_CACHE_ENABLED: {{ .Values.gitks.diskCache.enabled | quote }}
|
|
GITKS_DISK_CACHE_MAX_AGE: {{ .Values.gitks.diskCache.maxAge | quote }}
|
|
GITKS_PACK_CACHE_ENABLED: {{ .Values.gitks.packCache.enabled | quote }}
|
|
GITKS_PACK_CACHE_BACKPRESSURE: {{ .Values.gitks.packCache.backpressure | quote }}
|
|
GITKS_HOOKS_ENABLED: {{ .Values.gitks.hooks.enabled | quote }}
|
|
GITKS_HOOK_TIMEOUT: {{ .Values.gitks.hooks.timeout | quote }}
|
|
GITKS_ALLOW_CUSTOM_HOOKS: {{ .Values.gitks.hooks.allowCustomHooks | quote }}
|
|
{{- if .Values.gitks.hooks.serverHooksDir }}
|
|
GITKS_SERVER_HOOKS_DIR: {{ .Values.gitks.hooks.serverHooksDir | quote }}
|
|
{{- end }}
|
|
{{- if .Values.gitks.hooks.callbackAddr }}
|
|
GITKS_HOOK_CALLBACK_ADDR: {{ .Values.gitks.hooks.callbackAddr | quote }}
|
|
{{- end }}
|
|
GITKS_RATE_LIMIT_MAX_CONCURRENT: {{ .Values.gitks.rateLimit.maxConcurrent | quote }}
|