Skip to content

Commit

Permalink
Remove resource requests and limits
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
  • Loading branch information
metalmatze committed Jan 28, 2020
1 parent b6a6a41 commit b193461
Show file tree
Hide file tree
Showing 14 changed files with 0 additions and 68 deletions.
7 changes: 0 additions & 7 deletions examples/all/manifests/thanos-bucket-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,4 @@ spec:
port: 8080
scheme: HTTP
periodSeconds: 5
resources:
limits:
cpu: 250m
memory: 512Mi
requests:
cpu: 100m
memory: 256Mi
terminationGracePeriodSeconds: 120
7 changes: 0 additions & 7 deletions examples/all/manifests/thanos-compactor-statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,6 @@ spec:
port: 10902
scheme: HTTP
periodSeconds: 5
resources:
limits:
cpu: 500m
memory: 2Gi
requests:
cpu: 100m
memory: 1Gi
volumeMounts:
- mountPath: /var/thanos/compactor
name: thanos-compactor-data
Expand Down
7 changes: 0 additions & 7 deletions examples/all/manifests/thanos-querier-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,4 @@ spec:
port: 9090
scheme: HTTP
periodSeconds: 5
resources:
limits:
cpu: "1"
memory: 1Gi
requests:
cpu: 100m
memory: 256Mi
terminationGracePeriodSeconds: 120
7 changes: 0 additions & 7 deletions examples/all/manifests/thanos-receive-statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,6 @@ spec:
port: 10902
scheme: HTTP
periodSeconds: 5
resources:
limits:
cpu: "1"
memory: 1Gi
requests:
cpu: 100m
memory: 512Mi
volumeMounts:
- mountPath: /var/thanos/receive
name: thanos-receive-data
Expand Down
7 changes: 0 additions & 7 deletions examples/all/manifests/thanos-ruler-statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,6 @@ spec:
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 5
resources:
limits:
cpu: "1"
memory: 1Gi
requests:
cpu: 100m
memory: 256Mi
volumeMounts:
- mountPath: /var/thanos/ruler
name: thanos-ruler-data
Expand Down
7 changes: 0 additions & 7 deletions examples/all/manifests/thanos-store-statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,6 @@ spec:
port: 10902
scheme: HTTP
periodSeconds: 5
resources:
limits:
cpu: "2"
memory: 8Gi
requests:
cpu: 500m
memory: 1Gi
volumeMounts:
- mountPath: /var/thanos/store
name: thanos-store-data
Expand Down
2 changes: 0 additions & 2 deletions jsonnet/kube-thanos/kube-thanos-bucket.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
tb.objectStorageConfig.key,
),
]) +
container.mixin.resources.withRequests({ cpu: '100m', memory: '256Mi' }) +
container.mixin.resources.withLimits({ cpu: '250m', memory: '512Mi' }) +
container.withPorts([
{ name: 'http', containerPort: tb.ports.http },
]) +
Expand Down
2 changes: 0 additions & 2 deletions jsonnet/kube-thanos/kube-thanos-compactor.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
container.withPorts([
{ name: 'http', containerPort: $.thanos.compactor.service.spec.ports[0].port },
]) +
container.mixin.resources.withRequests({ cpu: '100m', memory: '1Gi' }) +
container.mixin.resources.withLimits({ cpu: '500m', memory: '2Gi' }) +
container.withVolumeMounts([
containerVolumeMount.new('thanos-compactor-data', '/var/thanos/compactor', false),
]) +
Expand Down
2 changes: 0 additions & 2 deletions jsonnet/kube-thanos/kube-thanos-querier.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
'--grpc-address=0.0.0.0:%d' % $.thanos.querier.service.spec.ports[0].port,
'--http-address=0.0.0.0:%d' % $.thanos.querier.service.spec.ports[1].port,
]) +
container.mixin.resources.withRequests({ cpu: '100m', memory: '256Mi' }) +
container.mixin.resources.withLimits({ cpu: '1', memory: '1Gi' }) +
container.withPorts([
{ name: 'grpc', containerPort: $.thanos.querier.service.spec.ports[0].port },
{ name: 'http', containerPort: $.thanos.querier.service.spec.ports[1].port },
Expand Down
2 changes: 0 additions & 2 deletions jsonnet/kube-thanos/kube-thanos-receive.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
{ name: 'http', containerPort: $.thanos.receive.service.spec.ports[1].port },
{ name: 'remote-write', containerPort: $.thanos.receive.service.spec.ports[2].port },
]) +
container.mixin.resources.withRequests({ cpu: '100m', memory: '512Mi' }) +
container.mixin.resources.withLimits({ cpu: '1', memory: '1Gi' }) +
container.withVolumeMounts([
containerVolumeMount.new(tr.name + '-data', '/var/thanos/receive', false),
]) +
Expand Down
2 changes: 0 additions & 2 deletions jsonnet/kube-thanos/kube-thanos-ruler.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
tr.objectStorageConfig.key,
),
]) +
container.mixin.resources.withRequests({ cpu: '100m', memory: '256Mi' }) +
container.mixin.resources.withLimits({ cpu: '1', memory: '1Gi' }) +
container.withVolumeMounts([
containerVolumeMount.new('thanos-ruler-data', '/var/thanos/ruler', false),
]) +
Expand Down
2 changes: 0 additions & 2 deletions jsonnet/kube-thanos/kube-thanos-store.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet';
{ name: 'grpc', containerPort: $.thanos.store.service.spec.ports[0].port },
{ name: 'http', containerPort: $.thanos.store.service.spec.ports[1].port },
]) +
container.mixin.resources.withRequests({ cpu: '500m', memory: '1Gi' }) +
container.mixin.resources.withLimits({ cpu: '2', memory: '8Gi' }) +
container.withVolumeMounts([
containerVolumeMount.new(ts.name + '-data', '/var/thanos/store', false),
]) +
Expand Down
7 changes: 0 additions & 7 deletions manifests/thanos-querier-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,4 @@ spec:
port: 9090
scheme: HTTP
periodSeconds: 5
resources:
limits:
cpu: "1"
memory: 1Gi
requests:
cpu: 100m
memory: 256Mi
terminationGracePeriodSeconds: 120
7 changes: 0 additions & 7 deletions manifests/thanos-store-statefulSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,6 @@ spec:
port: 10902
scheme: HTTP
periodSeconds: 5
resources:
limits:
cpu: "2"
memory: 8Gi
requests:
cpu: 500m
memory: 1Gi
volumeMounts:
- mountPath: /var/thanos/store
name: thanos-store-data
Expand Down

0 comments on commit b193461

Please sign in to comment.