
This commit adds two new collectors to the adapter: - ClusterScalingScheduleCollector; and - ScalingScheduleCollector Also, it introduces the required collectors plugins, initialization logic in the server startup, documentation and deployment example (including the helm chart). A new config flag is created, `-scaling-schedule`, and allows to enable and to disable the collection of such metrics. It's disabled by default. This collectors are the required logic to utilise the CRDs introduced in the #284 pull request. It makes use of the kubernetes go-client implementations of a [Store][0] and [Reflector][1]. [0]: https://pkg.go.dev/k8s.io/client-go/tools/cache#Store [1]: https://pkg.go.dev/k8s.io/client-go/tools/cache#Reflector Signed-off-by: Jonathan Juares Beber <jonathanbeber@gmail.com>
98 lines
1.4 KiB
YAML
98 lines
1.4 KiB
YAML
namespace: kube-system
|
|
|
|
replicas: 1
|
|
|
|
registry:
|
|
image: registry.opensource.zalan.do/teapot/kube-metrics-adapter
|
|
imageTag: v0.1.10
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
service:
|
|
port: 443
|
|
internalPort: 443
|
|
|
|
addDirectoryHeader:
|
|
contentionProfiling:
|
|
profiling:
|
|
enableCustomMetricsApi:
|
|
enableExternalMetricsApi:
|
|
credentialsDirectory:
|
|
disregardIncompatibleHPAs:
|
|
http2MaxStreamsPerConnection:
|
|
listerKubeConfig:
|
|
skipperBackendsAnnotation:
|
|
skipperIngressMetrics:
|
|
token:
|
|
vmodule:
|
|
|
|
authentication:
|
|
kubeConfig:
|
|
skipLookup:
|
|
tokenWebhookCacheTtl:
|
|
tolerateLookupFailure:
|
|
|
|
authorization:
|
|
kubeConfig:
|
|
alwaysAllowPaths:
|
|
webhookCache:
|
|
authorizedTtl:
|
|
unauthorizedTtl:
|
|
|
|
aws:
|
|
externalMetrics:
|
|
region:
|
|
|
|
influxDB:
|
|
address:
|
|
organization:
|
|
token:
|
|
|
|
log:
|
|
alsoToStderr:
|
|
toStderr:
|
|
flushFrequency:
|
|
backtraceAtTraceLocation:
|
|
directory:
|
|
file:
|
|
fileMaxSize:
|
|
level:
|
|
stderrThreshold:
|
|
skipHeaders:
|
|
skipLogHeaders:
|
|
|
|
prometheus:
|
|
server: http://prometheus.kube-system.svc.cluster.local
|
|
metricsAddress:
|
|
|
|
requestHeader:
|
|
allowedNames:
|
|
clientCaFile:
|
|
extraHeadersPrefix:
|
|
groupHeaders:
|
|
usernameHeaders:
|
|
|
|
tls:
|
|
skipTLSVerify: true
|
|
certificateDirectory:
|
|
clientCaFile:
|
|
certFile:
|
|
cipherSuites:
|
|
minVersion:
|
|
privateKeyFile:
|
|
sniCertKey:
|
|
|
|
zmon:
|
|
kariosdbEndpoint:
|
|
tokenName:
|
|
|
|
resources:
|
|
limits:
|
|
cpu: 100m
|
|
memory: 100Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 100Mi
|
|
|
|
scalingSchedule:
|
|
enabled: false
|