Skip to content

Commit

Permalink
Merge pull request #89 from metalmatze/no-resources
Browse files Browse the repository at this point in the history
Remove resource requests and limits
  • Loading branch information
metalmatze authored Jan 28, 2020
2 parents b6a6a41 + b571301 commit 14ecdd5
Show file tree
Hide file tree
Showing 16 changed files with 8 additions and 71 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
vendor/
jb
vendor/
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@ manifests: vendor example.jsonnet build.sh
rm -rf manifests
./build.sh

vendor: jsonnetfile.json jsonnetfile.lock.json
jb:
curl -L -o jb "https://github.com/jsonnet-bundler/jsonnet-bundler/releases/download/v0.2.0/jb-$(shell go env GOOS)-$(shell go env GOARCH)"
chmod +x jb

vendor: jb jsonnetfile.json jsonnetfile.lock.json
rm -rf vendor
jb install
./jb install

.PHONY: fmt
fmt:
Expand Down
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 14ecdd5

Please sign in to comment.