72 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			72 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
apiVersion: apps/v1
 | 
						|
kind: Deployment
 | 
						|
metadata:
 | 
						|
  name: thanos-store
 | 
						|
  labels:
 | 
						|
    app: thanos-store
 | 
						|
spec:
 | 
						|
  replicas: 1
 | 
						|
  selector:
 | 
						|
    matchLabels:
 | 
						|
      app: thanos-store
 | 
						|
  template:
 | 
						|
    metadata:
 | 
						|
      labels:
 | 
						|
        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
 | 
						|
          ports:
 | 
						|
          - name: http
 | 
						|
            containerPort: 10902
 | 
						|
          - name: grpc
 | 
						|
            containerPort: 10901
 | 
						|
          livenessProbe:
 | 
						|
            httpGet:
 | 
						|
              port: 10902
 | 
						|
              path: /-/healthy
 | 
						|
          readinessProbe:
 | 
						|
            httpGet:
 | 
						|
              port: 10902
 | 
						|
              path: /-/ready
 | 
						|
          volumeMounts:
 | 
						|
            - name: thanos-objstore-config
 | 
						|
              mountPath: /etc/secret
 | 
						|
              readOnly: true
 | 
						|
            - name: thanos-data
 | 
						|
              mountPath: /data
 | 
						|
      volumes:
 | 
						|
        - name: thanos-objstore-config
 | 
						|
          secret:
 | 
						|
            secretName: thanos-objstore-config
 | 
						|
        - name: thanos-data
 | 
						|
          emptyDir: {}
 | 
						|
---
 | 
						|
apiVersion: v1
 | 
						|
kind: Service
 | 
						|
metadata:
 | 
						|
  labels:
 | 
						|
    app.kubernetes.io/name: thanos-store
 | 
						|
  name: thanos-store
 | 
						|
spec:
 | 
						|
  ports:
 | 
						|
  - name: grpc
 | 
						|
    port: 10901
 | 
						|
    targetPort: 10901
 | 
						|
  - name: http
 | 
						|
    port: 10902
 | 
						|
    targetPort: 10902
 | 
						|
  selector:
 | 
						|
    app: thanos-store
 |