update thanos
This commit is contained in:
		| @@ -31,7 +31,7 @@ datasources: | ||||
|     datasources: | ||||
|       - name: Thanos | ||||
|         type: prometheus | ||||
|         url: http://thanos-querier.prometheus.svc:9090 | ||||
|         url: http://thanos-querier.prometheus.svc:10902 | ||||
|         isDefault: true | ||||
|       - name: Prometheus | ||||
|         type: prometheus | ||||
|   | ||||
| @@ -4,7 +4,7 @@ metadata: | ||||
|   name: prometheus | ||||
| --- | ||||
| apiVersion: rbac.authorization.k8s.io/v1 | ||||
| knd: ClusterRole | ||||
| kind: ClusterRole | ||||
| metadata: | ||||
|   name: prometheus | ||||
| rules: | ||||
| @@ -52,26 +52,17 @@ spec: | ||||
|     requests: | ||||
|       memory: 400Mi | ||||
|   retention: 730d | ||||
|   retentionSize: 50Gi | ||||
|   retentionSize: 3GiB | ||||
|   serviceAccountName: prometheus | ||||
|   enableAdminAPI: false | ||||
|   serviceMonitorNamespaceSelector: {} | ||||
|   serviceMonitorSelector: {} | ||||
|   thanos: | ||||
|     version: v0.33.0 | ||||
|     version: v0.34.1 | ||||
|     objectStorageConfig: | ||||
|       # loads the config from a secret named thanos-objstore-config in the same namespace | ||||
|       key: thanos.yaml | ||||
|       name: thanos-objstore-config | ||||
|   volumeClaimTemplate: | ||||
|     metadata: | ||||
|       name: prometheus-data | ||||
|     spec: | ||||
|       accessModes: | ||||
|       - ReadWriteOnce | ||||
|       resources: | ||||
|         requests: | ||||
|           storage: 50Gi | ||||
| --- | ||||
| apiVersion: v1 | ||||
| kind: Service | ||||
|   | ||||
| @@ -52,16 +52,4 @@ spec: | ||||
|     - name: grpc | ||||
|       protocol: TCP | ||||
|       port: 10901 | ||||
|       targetPort: grpc | ||||
| metadata: | ||||
|   labels: | ||||
|     app: thanos-querier | ||||
|   name: thanos-querier | ||||
| spec: | ||||
|   ports: | ||||
|   - port: 9090 | ||||
|     protocol: TCP | ||||
|     targetPort: http | ||||
|     name: http | ||||
|   selector: | ||||
|     app: thanos-querier | ||||
|       targetPort: grpc | ||||
| @@ -1,33 +1,32 @@ | ||||
| apiVersion: apps/v1 | ||||
| kind: StatefulSet | ||||
| kind: Deployment | ||||
| metadata: | ||||
|   name: thanos-store-gateway | ||||
|   name: thanos-store | ||||
|   labels: | ||||
|     app: thanos-store-gateway | ||||
|     app: thanos-store | ||||
| spec: | ||||
|   replicas: 1 | ||||
|   selector: | ||||
|     matchLabels: | ||||
|       app: thanos-store-gateway | ||||
|   serviceName: thanos-store-gateway | ||||
|       app: thanos-store | ||||
|   template: | ||||
|     metadata: | ||||
|       labels: | ||||
|         app: thanos-store-gateway | ||||
|         app: thanos-store | ||||
|         thanos-store-api: "true" | ||||
|     spec: | ||||
|       containers: | ||||
|         - name: thanos | ||||
|           image: thanos | ||||
|           args: | ||||
|           - "store" | ||||
|           - "--log.level=debug" | ||||
|           - "--data-dir=/data" | ||||
|           - "--grpc-address=0.0.0.0:10901" | ||||
|           - "--http-address=0.0.0.0:10902" | ||||
|           - "--objstore.config-file=/etc/secret/thanos.yaml" | ||||
|           - "--index-cache-size=500MB" | ||||
|           - "--chunk-pool-size=500MB" | ||||
|           - store | ||||
|           - --log.level=debug | ||||
|           - --data-dir=/data | ||||
|           - --grpc-address=0.0.0.0:10901 | ||||
|           - --http-address=0.0.0.0:10902 | ||||
|           - --objstore.config-file=/etc/secret/thanos.yaml | ||||
|           - --index-cache-size=500MB | ||||
|           - --chunk-pool-size=500MB | ||||
|           ports: | ||||
|           - name: http | ||||
|             containerPort: 10902 | ||||
| @@ -61,7 +60,6 @@ metadata: | ||||
|     app.kubernetes.io/name: thanos-store | ||||
|   name: thanos-store | ||||
| spec: | ||||
|   clusterIP: None | ||||
|   ports: | ||||
|   - name: grpc | ||||
|     port: 10901 | ||||
| @@ -70,4 +68,4 @@ spec: | ||||
|     port: 10902 | ||||
|     targetPort: 10902 | ||||
|   selector: | ||||
|     app: thanos-store-gateway | ||||
|     app: thanos-store | ||||
|   | ||||
		Reference in New Issue
	
	Block a user