From 0e527cf0c90edf59921cb1b83a0c93bc09377cc1 Mon Sep 17 00:00:00 2001 From: Viva La Vida Date: Mon, 10 Feb 2020 21:49:57 +0800 Subject: [PATCH] jsonnet: fix bucket port Bucket web listen on 0.0.0.0:10902 by default. Change bucket port from 8080 to 10902 Signed-off-by: wujie1993 --- examples/all/manifests/thanos-bucket-deployment.yaml | 6 +++--- examples/all/manifests/thanos-bucket-service.yaml | 2 +- jsonnet/kube-thanos/kube-thanos-bucket.libsonnet | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/all/manifests/thanos-bucket-deployment.yaml b/examples/all/manifests/thanos-bucket-deployment.yaml index e439bf07..f5bb35d5 100644 --- a/examples/all/manifests/thanos-bucket-deployment.yaml +++ b/examples/all/manifests/thanos-bucket-deployment.yaml @@ -39,18 +39,18 @@ spec: failureThreshold: 4 httpGet: path: /-/healthy - port: 8080 + port: 10902 scheme: HTTP periodSeconds: 30 name: thanos-bucket ports: - - containerPort: 8080 + - containerPort: 10902 name: http readinessProbe: failureThreshold: 20 httpGet: path: /-/ready - port: 8080 + port: 10902 scheme: HTTP periodSeconds: 5 terminationGracePeriodSeconds: 120 diff --git a/examples/all/manifests/thanos-bucket-service.yaml b/examples/all/manifests/thanos-bucket-service.yaml index 598093f3..fe57d9ec 100644 --- a/examples/all/manifests/thanos-bucket-service.yaml +++ b/examples/all/manifests/thanos-bucket-service.yaml @@ -11,7 +11,7 @@ metadata: spec: ports: - name: http - port: 8080 + port: 10902 targetPort: http selector: app.kubernetes.io/component: object-store-bucket-debugging diff --git a/jsonnet/kube-thanos/kube-thanos-bucket.libsonnet b/jsonnet/kube-thanos/kube-thanos-bucket.libsonnet index 8e6a6adf..c2fad928 100644 --- a/jsonnet/kube-thanos/kube-thanos-bucket.libsonnet +++ b/jsonnet/kube-thanos/kube-thanos-bucket.libsonnet @@ -31,7 +31,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet'; service.new( tb.config.name, tb.config.podLabelSelector, - [ports.newNamed('http', 8080, 'http')], + [ports.newNamed('http', 10902, 'http')], ) + service.mixin.metadata.withNamespace(tb.config.namespace) + service.mixin.metadata.withLabels(tb.config.commonLabels),