zorgzerg

Untitled

Aug 30th, 2022
1,743
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.48 KB | None | 0 0
  1. kind: StatefulSet
  2. apiVersion: apps/v1
  3. metadata:
  4.   annotations:
  5.     operator.victoriametrics/last-applied-spec: >-
  6.       {"retentionPeriod":"14","replicationFactor":1,"clusterVersion":"v1.80.0-cluster","vmselect":{"image":{},"replicaCount":3,"resources":{},"topologySpreadConstraints":[{"maxSkew":1,"topologyKey":"topology.kubernetes.io/zone","whenUnsatisfiable":"DoNotSchedule","labelSelector":{"matchLabels":{"node-role":"monitoring"}}}]},"vminsert":{"image":{},"replicaCount":3,"resources":{},"topologySpreadConstraints":[{"maxSkew":1,"topologyKey":"topology.kubernetes.io/zone","whenUnsatisfiable":"DoNotSchedule","labelSelector":{"matchLabels":{"node-role":"monitoring"}}}]},"vmstorage":{"image":{},"replicaCount":3,"resources":{},"topologySpreadConstraints":[{"maxSkew":1,"topologyKey":"topology.kubernetes.io/zone","whenUnsatisfiable":"DoNotSchedule","labelSelector":{"matchLabels":{"node-role":"monitoring"}}}],"storage":{"volumeClaimTemplate":{"metadata":{},"spec":{"resources":{"requests":{"storage":"50Gi"}},"storageClassName":"yc-network-ssd"},"status":{}}}}}
  7.   resourceVersion: '100784506'
  8.   name: vmstorage-vm
  9.   uid: 700e8713-e51f-4ad3-b7f1-5e146dd5e440
  10.   creationTimestamp: '2022-08-30T09:03:13Z'
  11.   generation: 2  
  12.   namespace: monitoring
  13.   ownerReferences:
  14.     - apiVersion: operator.victoriametrics.com/v1beta1
  15.       kind: VMCluster
  16.       name: vm
  17.       uid: aa5faa01-53d0-4a39-849e-8e1ec4fac064
  18.       controller: true
  19.       blockOwnerDeletion: true
  20.   finalizers:
  21.    - apps.victoriametrics.com/finalizer
  22.   labels:
  23.     app.kubernetes.io/component: monitoring
  24.     app.kubernetes.io/instance: vm
  25.     app.kubernetes.io/name: vmstorage
  26.     managed-by: vm-operator
  27. spec:
  28.   replicas: 3
  29.   selector:
  30.     matchLabels:
  31.       app.kubernetes.io/component: monitoring
  32.       app.kubernetes.io/instance: vm
  33.       app.kubernetes.io/name: vmstorage
  34.       managed-by: vm-operator
  35.   template:
  36.     metadata:
  37.       creationTimestamp: null
  38.       labels:
  39.         app.kubernetes.io/component: monitoring
  40.         app.kubernetes.io/instance: vm
  41.         app.kubernetes.io/name: vmstorage
  42.         managed-by: vm-operator
  43.     spec:
  44.       restartPolicy: Always
  45.       serviceAccountName: vmcluster-vm
  46.       schedulerName: default-scheduler
  47.       terminationGracePeriodSeconds: 30
  48.       securityContext: {}
  49.       containers:
  50.         - resources:
  51.             limits:
  52.               cpu: '1'
  53.               memory: 1500Mi
  54.             requests:
  55.               cpu: 250m
  56.               memory: 500Mi
  57.           readinessProbe:
  58.             httpGet:
  59.               path: /health
  60.               port: 8482
  61.               scheme: HTTP
  62.             timeoutSeconds: 5
  63.             periodSeconds: 5
  64.             successThreshold: 1
  65.             failureThreshold: 10
  66.           terminationMessagePath: /dev/termination-log
  67.           name: vmstorage
  68.           ports:
  69.             - name: http
  70.               containerPort: 8482
  71.               protocol: TCP
  72.             - name: vminsert
  73.               containerPort: 8400
  74.               protocol: TCP
  75.             - name: vmselect
  76.               containerPort: 8401
  77.               protocol: TCP
  78.           imagePullPolicy: IfNotPresent
  79.           volumeMounts:
  80.             - name: vmstorage-db
  81.               mountPath: vmstorage-data
  82.           terminationMessagePolicy: FallbackToLogsOnError
  83.           image: >-
  84.             cr.yandex/crp6sqve85gkqb3gn13u/external/victoriametrics/vmstorage:v1.80.0-cluster
  85.           args:
  86.            - '-dedup.minScrapeInterval=1ms'
  87.             - '-httpListenAddr=:8482'
  88.             - '-retentionPeriod=14'
  89.             - '-storageDataPath=vmstorage-data'
  90.             - '-vminsertAddr=:8400'
  91.             - '-vmselectAddr=:8401'
  92.       topologySpreadConstraints:
  93.         - maxSkew: 1
  94.           topologyKey: topology.kubernetes.io/zone
  95.           whenUnsatisfiable: DoNotSchedule
  96.           labelSelector:
  97.             matchLabels:
  98.               node-role: monitoring
  99.       serviceAccount: vmcluster-vm
  100.       dnsPolicy: ClusterFirst
  101.   volumeClaimTemplates:
  102.     - kind: PersistentVolumeClaim
  103.       apiVersion: v1
  104.       metadata:
  105.         name: vmstorage-db
  106.         creationTimestamp: null
  107.       spec:
  108.         accessModes:
  109.          - ReadWriteOnce
  110.         resources:
  111.           requests:
  112.             storage: 50Gi
  113.         storageClassName: yc-network-ssd
  114.         volumeMode: Filesystem
  115.       status:
  116.         phase: Pending
  117.   serviceName: vmstorage-vm
  118.   podManagementPolicy: Parallel
  119.   updateStrategy:
  120.     type: OnDelete
  121.   revisionHistoryLimit: 10
Advertisement
Add Comment
Please, Sign In to add comment