Compare commits

...

3 commits

5 changed files with 98 additions and 1 deletions

View file

@ -69,7 +69,7 @@ spec:
app: app:
image: image:
repository: ghcr.io/bjw-s-labs/piped-frontend repository: ghcr.io/bjw-s-labs/piped-frontend
tag: latest@sha256:90356f6cc6dc4eb70a1f248f2509898fb1a11d1b5094d6237afe993e4f018273 tag: latest@sha256:04f5acd352d53cf19429490bcfa0ffa536430e82ff0e3b72460daea45e28226e
env: env:
HTTP_PORT: 8080 HTTP_PORT: 8080
HTTP_WORKERS: 4 HTTP_WORKERS: 4

View file

@ -0,0 +1,7 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- vmalert.yaml
- vmsingle.yaml

View file

@ -0,0 +1,32 @@
---
# yaml-language-server: $schema=https://ks.hsn.dev/operator.victoriametrics.com/vmalert_v1beta1.json
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMAlert
metadata:
name: cluster
spec:
datasource:
url: http://vmsingle-cluster.observability.svc:8429
evaluationInterval: 1m
notifiers:
- url: http://alertmanager.observability.svc:9093
remoteRead:
url: http://vmsingle-cluster.observability.svc:8429
remoteWrite:
url: http://vmsingle-cluster.observability.svc:8429
replicaCount: 1
resources:
requests:
cpu: 3m
limits:
memory: 128Mi
selectAllByDefault: true
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app.kubernetes.io/instance: cluster
app.kubernetes.io/name: vmalert
useStrictSecurity: true

View file

@ -0,0 +1,35 @@
---
# yaml-language-server: $schema=https://ks.hsn.dev/operator.victoriametrics.com/vmsingle_v1beta1.json
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMSingle
metadata:
name: cluster
spec:
extraArgs:
dedup.minScrapeInterval: 10s
maxLabelsPerTimeseries: "40"
search.minStalenessInterval: 5m
vmalert.proxyURL: http://vmalert-cluster.observability.svc:8080
replicaCount: 1
resources:
requests:
cpu: 5m
limits:
memory: 2Gi
# -- Data retention period. Possible units character: h(ours), d(ays), w(eeks), y(ears), if no unit character specified - month. The minimum retention period is 24h. See these [docs](https://docs.victoriametrics.com/single-server-victoriametrics/#retention)
retentionPeriod: "6"
storage:
accessModes: [ReadWriteOnce]
resources:
requests:
storage: 10Gi
storageClassName: openebs-hostpath
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app.kubernetes.io/instance: cluster
app.kubernetes.io/name: vmsingle
useStrictSecurity: true

View file

@ -18,3 +18,26 @@ spec:
wait: true wait: true
interval: 30m interval: 30m
retryInterval: 1m retryInterval: 1m
---
# yaml-language-server: $schema=https://ks.hsn.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app vm-cluster
namespace: flux-system
spec:
targetNamespace: observability
commonMetadata:
labels:
app.kubernetes.io/name: *app
dependsOn:
- name: openebs
- name: vm-operator
path: ./kubernetes/apps/observability/victoria-metrics/cluster
prune: true
sourceRef:
kind: GitRepository
name: theshire
wait: false
interval: 30m
retryInterval: 1m