-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Kemal Akkoyun <[email protected]>
- Loading branch information
Showing
14 changed files
with
388 additions
and
363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -217,5 +217,4 @@ function(params) { | |
], | ||
}, | ||
}, | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
jsonnet/kube-thanos/kube-thanos-receive-default-params.libsonnet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// These are the defaults for this components configuration. | ||
// When calling the function to generate the component's manifest, | ||
// you can pass an object structured like the default to overwrite default values. | ||
{ | ||
local defaults = self, | ||
name: 'thanos-receive', | ||
namespace: error 'must provide namespace', | ||
version: error 'must provide version', | ||
image: error 'must provide image', | ||
replicas: error 'must provide replicas', | ||
replicationFactor: error 'must provide replication factor', | ||
objectStorageConfig: error 'must provide objectStorageConfig', | ||
podDisruptionBudgetMaxUnavailable: (std.floor(defaults.replicationFactor / 2)), | ||
hashringConfigMapName: '', | ||
volumeClaimTemplate: {}, | ||
retention: '15d', | ||
logLevel: 'info', | ||
resources: {}, | ||
serviceMonitor: false, | ||
ports: { | ||
grpc: 10901, | ||
http: 10902, | ||
'remote-write': 19291, | ||
}, | ||
tracing: {}, | ||
|
||
commonLabels:: { | ||
'app.kubernetes.io/name': 'thanos-receive', | ||
'app.kubernetes.io/instance': defaults.name, | ||
'app.kubernetes.io/version': defaults.version, | ||
'app.kubernetes.io/component': 'database-write-hashring', | ||
}, | ||
|
||
podLabelSelector:: { | ||
[labelName]: defaults.commonLabels[labelName] | ||
for labelName in std.objectFields(defaults.commonLabels) | ||
if !std.setMember(labelName, ['app.kubernetes.io/version']) | ||
}, | ||
} |
Oops, something went wrong.