diff --git a/argocd/thanos/monitoring/templates/thanos-receive-ingestor-default-service.yaml b/argocd/thanos/monitoring/templates/thanos-receive-ingestor-default-service.yaml deleted file mode 100644 index 08b8ba2..0000000 --- a/argocd/thanos/monitoring/templates/thanos-receive-ingestor-default-service.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app.kubernetes.io/component: database-write-hashring - app.kubernetes.io/instance: thanos-receive-ingestor-default - app.kubernetes.io/name: thanos-receive - app.kubernetes.io/version: v0.31.0 - controller.receive.thanos.io/hashring: default - name: thanos-receive-ingestor-default - namespace: {{ .Release.Namespace }} -spec: - clusterIP: None - ports: - - name: grpc - port: 10901 - targetPort: 10901 - - name: http - port: 10902 - targetPort: 10902 - - name: remote-write - port: 19291 - targetPort: 19291 - selector: - app.kubernetes.io/component: database-write-hashring - app.kubernetes.io/instance: thanos-receive-ingestor-default - app.kubernetes.io/name: thanos-receive - controller.receive.thanos.io/hashring: default diff --git a/argocd/thanos/monitoring/templates/thanos-receive-ingestor-default-statefulSet.yaml b/argocd/thanos/monitoring/templates/thanos-receive-ingestor-default-statefulSet.yaml deleted file mode 100644 index 8e03bd7..0000000 --- a/argocd/thanos/monitoring/templates/thanos-receive-ingestor-default-statefulSet.yaml +++ /dev/null @@ -1,153 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - labels: - app.kubernetes.io/component: database-write-hashring - app.kubernetes.io/instance: thanos-receive-ingestor-default - app.kubernetes.io/name: thanos-receive - app.kubernetes.io/version: v0.31.0 - controller.receive.thanos.io: thanos-receive-controller - controller.receive.thanos.io/hashring: default - name: thanos-receive-ingestor-default - namespace: {{ .Release.Namespace }} -spec: - minReadySeconds: 0 - replicas: 1 - selector: - matchLabels: - app.kubernetes.io/component: database-write-hashring - app.kubernetes.io/instance: thanos-receive-ingestor-default - app.kubernetes.io/name: thanos-receive - controller.receive.thanos.io/hashring: default - serviceName: thanos-receive-ingestor-default - template: - metadata: - labels: - app.kubernetes.io/component: database-write-hashring - app.kubernetes.io/instance: thanos-receive-ingestor-default - app.kubernetes.io/name: thanos-receive - app.kubernetes.io/version: v0.31.0 - controller.receive.thanos.io/hashring: default - spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: app.kubernetes.io/name - operator: In - values: - - thanos-receive - - key: app.kubernetes.io/instance - operator: In - values: - - thanos-receive-ingestor-default - namespaces: - - {{ .Release.Namespace }} - topologyKey: kubernetes.io/hostname - weight: 100 - - podAffinityTerm: - labelSelector: - matchExpressions: - - key: app.kubernetes.io/name - operator: In - values: - - thanos-receive - - key: app.kubernetes.io/instance - operator: In - values: - - thanos-receive-ingestor-default - namespaces: - - {{ .Release.Namespace }} - topologyKey: topology.kubernetes.io/zone - weight: 100 - containers: - - args: - - receive - - --log.level=info - - --log.format=logfmt - - --grpc-address=0.0.0.0:10901 - - --http-address=0.0.0.0:10902 - - --remote-write.address=0.0.0.0:19291 - - --receive.replication-factor=1 - - --tsdb.path=/var/thanos/receive - - --tsdb.retention=15d - - --label=replica="$(NAME)" - - --label=receive="true" - - --receive.local-endpoint=$(NAME).thanos-receive-ingestor-default.$(NAMESPACE).svc.cluster.local:10901 - - --receive.hashrings-file=/var/lib/thanos-receive/hashrings.json - env: - - name: NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - - name: HOST_IP_ADDRESS - valueFrom: - fieldRef: - fieldPath: status.hostIP - image: quay.io/thanos/thanos:v0.31.0 - imagePullPolicy: IfNotPresent - livenessProbe: - failureThreshold: 8 - httpGet: - path: /-/healthy - port: 10902 - scheme: HTTP - periodSeconds: 30 - name: thanos-receive - ports: - - containerPort: 10901 - name: grpc - - containerPort: 10902 - name: http - - containerPort: 19291 - name: remote-write - readinessProbe: - failureThreshold: 20 - httpGet: - path: /-/ready - port: 10902 - scheme: HTTP - periodSeconds: 5 - resources: {} - terminationMessagePolicy: FallbackToLogsOnError - volumeMounts: - - mountPath: /var/thanos/receive - name: data - readOnly: false - - mountPath: /var/lib/thanos-receive - name: hashring-config - nodeSelector: - kubernetes.io/os: linux - securityContext: - fsGroup: 65534 - runAsGroup: 65532 - runAsNonRoot: true - runAsUser: 65534 - seccompProfile: - type: RuntimeDefault - serviceAccountName: thanos-receive-ingestor - terminationGracePeriodSeconds: 900 - volumes: - - configMap: - name: hashring-config - name: hashring-config - volumeClaimTemplates: - - metadata: - labels: - app.kubernetes.io/component: database-write-hashring - app.kubernetes.io/instance: thanos-receive-ingestor-default - app.kubernetes.io/name: thanos-receive - controller.receive.thanos.io/hashring: default - name: data - spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 10Gi diff --git a/argocd/thanos/monitoring/templates/thanos-receive-ingestor-serviceAccount.yaml b/argocd/thanos/monitoring/templates/thanos-receive-ingestor-serviceAccount.yaml deleted file mode 100644 index f602f8d..0000000 --- a/argocd/thanos/monitoring/templates/thanos-receive-ingestor-serviceAccount.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - annotations: {} - labels: - app.kubernetes.io/component: database-write-hashring - app.kubernetes.io/instance: thanos-receive-ingestor - app.kubernetes.io/name: thanos-receive - app.kubernetes.io/version: v0.31.0 - name: thanos-receive-ingestor - namespace: {{ .Release.Namespace }} diff --git a/argocd/thanos/monitoring/templates/thanos-receive-ingestor-serviceMonitor.yaml b/argocd/thanos/monitoring/templates/thanos-receive-ingestor-serviceMonitor.yaml deleted file mode 100644 index 94e7451..0000000 --- a/argocd/thanos/monitoring/templates/thanos-receive-ingestor-serviceMonitor.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: monitoring.coreos.com/v1 -kind: ServiceMonitor -metadata: - labels: - app.kubernetes.io/component: database-write-hashring - app.kubernetes.io/instance: thanos-receive-ingestor - app.kubernetes.io/name: thanos-receive - app.kubernetes.io/version: v0.31.0 - name: thanos-receive-ingestor - namespace: {{ .Release.Namespace }} -spec: - endpoints: - - port: http - relabelings: - - action: replace - separator: / - sourceLabels: - - namespace - - pod - targetLabel: instance - - action: replace - sourceLabels: - - __meta_kubernetes_service_label_controller_receive_thanos_io_shard - targetLabel: hashring - selector: - matchLabels: - app.kubernetes.io/component: database-write-hashring - app.kubernetes.io/name: thanos-receive diff --git a/argocd/thanos/monitoring/templates/thanos-receive-router-configmap.yaml b/argocd/thanos/monitoring/templates/thanos-receive-router-configmap.yaml deleted file mode 100644 index 05a4e0b..0000000 --- a/argocd/thanos/monitoring/templates/thanos-receive-router-configmap.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: v1 -data: - hashrings.json: '[{"endpoints": ["thanos-receive-ingestor-default-0.thanos-receive-ingestor-default.thanos.svc.cluster.local:10901"], "hashring": "default", "tenants": [ ]}]' -kind: ConfigMap -metadata: - name: hashring-config - namespace: {{ .Release.Namespace }} diff --git a/argocd/thanos/monitoring/templates/thanos-receive-router-deployment.yaml b/argocd/thanos/monitoring/templates/thanos-receive-router-deployment.yaml deleted file mode 100644 index 673d3be..0000000 --- a/argocd/thanos/monitoring/templates/thanos-receive-router-deployment.yaml +++ /dev/null @@ -1,106 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.kubernetes.io/component: thanos-receive-router - app.kubernetes.io/instance: thanos-receive - app.kubernetes.io/name: thanos-receive - app.kubernetes.io/version: v0.31.0 - name: thanos-receive-router - namespace: {{ .Release.Namespace }} -spec: - replicas: 1 - selector: - matchLabels: - app.kubernetes.io/component: thanos-receive-router - app.kubernetes.io/instance: thanos-receive - app.kubernetes.io/name: thanos-receive - app.kubernetes.io/version: v0.31.0 - template: - metadata: - labels: - app.kubernetes.io/component: thanos-receive-router - app.kubernetes.io/instance: thanos-receive - app.kubernetes.io/name: thanos-receive - app.kubernetes.io/version: v0.31.0 - spec: - containers: - - args: - - receive - - --log.level=info - - --log.format=logfmt - - --grpc-address=0.0.0.0:10901 - - --http-address=0.0.0.0:10902 - - --remote-write.address=0.0.0.0:19291 - - --receive.replication-factor=1 - - --receive.hashrings-file=/var/lib/thanos-receive/hashrings.json - - --label=replica="$(NAME)" - - --label=receive="true" - env: - - name: NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - - name: HOST_IP_ADDRESS - valueFrom: - fieldRef: - fieldPath: status.hostIP - image: quay.io/thanos/thanos:v0.31.0 - imagePullPolicy: IfNotPresent - livenessProbe: - failureThreshold: 8 - httpGet: - path: /-/healthy - port: 10902 - scheme: HTTP - periodSeconds: 30 - name: thanos-receive - ports: - - containerPort: 10901 - name: grpc - - containerPort: 10902 - name: http - - containerPort: 19291 - name: remote-write - readinessProbe: - failureThreshold: 20 - httpGet: - path: /-/ready - port: 10902 - scheme: HTTP - periodSeconds: 5 - resources: {} - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - readOnlyRootFilesystem: true - runAsGroup: 65532 - runAsNonRoot: true - runAsUser: 65534 - seccompProfile: - type: RuntimeDefault - terminationMessagePolicy: FallbackToLogsOnError - volumeMounts: - - mountPath: /var/lib/thanos-receive - name: hashring-config - nodeSelector: - kubernetes.io/os: linux - securityContext: - fsGroup: 65534 - runAsGroup: 65532 - runAsNonRoot: true - runAsUser: 65534 - seccompProfile: - type: RuntimeDefault - serviceAccountName: thanos-receive-router - terminationGracePeriodSeconds: 30 - volumes: - - configMap: - name: hashring-config - name: hashring-config diff --git a/argocd/thanos/monitoring/templates/thanos-receive-router-service.yaml b/argocd/thanos/monitoring/templates/thanos-receive-router-service.yaml deleted file mode 100644 index a50a4cd..0000000 --- a/argocd/thanos/monitoring/templates/thanos-receive-router-service.yaml +++ /dev/null @@ -1,26 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app.kubernetes.io/component: thanos-receive-router - app.kubernetes.io/instance: thanos-receive - app.kubernetes.io/name: thanos-receive - app.kubernetes.io/version: v0.31.0 - name: thanos-receive-router - namespace: {{ .Release.Namespace }} -spec: - ports: - - name: grpc - port: 10901 - targetPort: 10901 - - name: http - port: 10902 - targetPort: 10902 - - name: remote-write - port: 19291 - targetPort: 19291 - selector: - app.kubernetes.io/component: thanos-receive-router - app.kubernetes.io/instance: thanos-receive - app.kubernetes.io/name: thanos-receive - app.kubernetes.io/version: v0.31.0 diff --git a/argocd/thanos/monitoring/templates/thanos-receive-router-serviceAccount.yaml b/argocd/thanos/monitoring/templates/thanos-receive-router-serviceAccount.yaml deleted file mode 100644 index 5c14f4c..0000000 --- a/argocd/thanos/monitoring/templates/thanos-receive-router-serviceAccount.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - annotations: {} - labels: - app.kubernetes.io/component: thanos-receive-router - app.kubernetes.io/instance: thanos-receive - app.kubernetes.io/name: thanos-receive - app.kubernetes.io/version: v0.31.0 - name: thanos-receive-router - namespace: {{ .Release.Namespace }}