generated from onedr0p/cluster-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(scrutiny): use kruise advancedcronjob
- Loading branch information
Showing
4 changed files
with
58 additions
and
193 deletions.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
kubernetes/apps/observability-agents/scrutiny-collector/app/advancedcronjob.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
apiVersion: apps.kruise.io/v1alpha1 | ||
kind: AdvancedCronJob | ||
metadata: | ||
name: scrutiny-collector | ||
annotations: | ||
kustomize.toolkit.fluxcd.io/force: enabled | ||
spec: | ||
schedule: "30 * * * *" # every hour on the half hour | ||
template: | ||
broadcastJobTemplate: | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: collector | ||
image: ghcr.io/analogj/scrutiny:v0.8.1-collector@sha256:5f6536d68be2d7424627647cdd658e6b4c1f69751a21622fb97b999a3155ba86 | ||
imagePullPolicy: IfNotPresent | ||
command: | ||
- /opt/scrutiny/bin/scrutiny-collector-metrics | ||
- run | ||
env: | ||
- name: COLLECTOR_API_ENDPOINT | ||
value: http://scrutiny.observability.svc.cluster.local:8080 | ||
- name: COLLECTOR_HOST_ID | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: spec.nodeName | ||
securityContext: | ||
priviledged: true | ||
runAsUser: 0 | ||
readOnlyRootFilesystem: true | ||
volumeMounts: | ||
- mountPath: /opt/scrutiny/config | ||
name: config | ||
- mountPath: /run/udev | ||
name: udev | ||
readOnly: true | ||
- mountPath: /dev | ||
name: dev | ||
readOnly: true | ||
restartPolicy: Never | ||
volumes: | ||
- name: config | ||
emptyDir: | ||
sizeLimit: 10Mi | ||
- name: udev | ||
hostPath: | ||
path: /run/udev | ||
- name: dev | ||
hostPath: | ||
path: /dev | ||
completionPolicy: | ||
type: Always | ||
ttlSecondsAfterFinished: 30 |
192 changes: 0 additions & 192 deletions
192
kubernetes/apps/observability-agents/scrutiny-collector/app/helmrelease.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters