Compare commits
3 commits
d5b2a38669
...
29924470ce
Author | SHA1 | Date | |
---|---|---|---|
29924470ce | |||
adde7e018b | |||
cd6b92cd9d |
1 changed files with 65 additions and 32 deletions
|
@ -1,18 +1,19 @@
|
||||||
---
|
---
|
||||||
# yaml-language-server: $schema=https://ks.hsn.dev/helm.toolkit.fluxcd.io/helmrelease_v2.json
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
name: &app influxdb
|
name: &app influxdb
|
||||||
|
namespace: monitoring
|
||||||
spec:
|
spec:
|
||||||
interval: 30m
|
interval: 30m
|
||||||
chart:
|
chart:
|
||||||
spec:
|
spec:
|
||||||
chart: influxdb2
|
chart: app-template
|
||||||
version: 2.1.2
|
version: 3.5.1
|
||||||
sourceRef:
|
sourceRef:
|
||||||
kind: HelmRepository
|
kind: HelmRepository
|
||||||
name: influxdata
|
name: bjw-s
|
||||||
namespace: flux-system
|
namespace: flux-system
|
||||||
install:
|
install:
|
||||||
remediation:
|
remediation:
|
||||||
|
@ -20,35 +21,67 @@ spec:
|
||||||
upgrade:
|
upgrade:
|
||||||
cleanupOnFail: true
|
cleanupOnFail: true
|
||||||
remediation:
|
remediation:
|
||||||
strategy: rollback
|
|
||||||
retries: 3
|
retries: 3
|
||||||
|
strategy: rollback
|
||||||
values:
|
values:
|
||||||
fullnameOverride: *app
|
controllers:
|
||||||
securityContext:
|
influxdb:
|
||||||
allowPrivilegeEscalation: false
|
annotations:
|
||||||
capabilities: { drop: ["ALL"] }
|
reloader.stakater.com/auto: "true"
|
||||||
fsGroup: 568
|
containers:
|
||||||
fsGroupChangePolicy: OnRootMismatch
|
app:
|
||||||
readOnlyRootFilesystem: true
|
image:
|
||||||
runAsNonRoot: true
|
repository: docker.io/influxdb
|
||||||
runAsUser: 568
|
tag: 2.7.10-alpine
|
||||||
runAsGroup: 568
|
pullPolicy: IfNotPresent
|
||||||
seccompProfile: { type: RuntimeDefault }
|
|
||||||
env:
|
env:
|
||||||
- name: INFLUXD_REPORTING_DISABLED
|
INFLUXDB_ADMIN_USER_PASSWORD: "admin"
|
||||||
value: "true"
|
INFLUXDB_ADMIN_USER_TOKEN: ""
|
||||||
persistence:
|
INFLUXD_REPORTING_DISABLED: true
|
||||||
storageClass: ceph-block
|
probes:
|
||||||
size: 50Gi
|
liveness: &probe
|
||||||
volumes:
|
type: "HTTP"
|
||||||
- name: tmp
|
path: "/health"
|
||||||
emptyDir: {}
|
port: &port 8086
|
||||||
mountPoints:
|
spec:
|
||||||
- name: tmp
|
initialDelaySeconds: 0
|
||||||
mountPath: /tmp
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 1
|
||||||
|
failureThreshold: 3
|
||||||
|
|
||||||
|
readiness: *probe
|
||||||
|
|
||||||
|
startup:
|
||||||
|
enabled: false
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 50Mi
|
||||||
|
|
||||||
service:
|
service:
|
||||||
port: 8086
|
app:
|
||||||
|
controller: influxdb
|
||||||
|
ports:
|
||||||
|
http:
|
||||||
|
port: *port
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
main:
|
||||||
className: internal-nginx
|
className: internal-nginx
|
||||||
hostname: "{{ Release.Name }}.jahanson.tech"
|
hosts:
|
||||||
|
- host: &host "{{ Release.Name }}.jahanson.tech"
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
service:
|
||||||
|
identifier: app
|
||||||
|
port: http
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- *host
|
||||||
|
|
||||||
|
persistence:
|
||||||
|
config:
|
||||||
|
enabled: true
|
||||||
|
existingClaim: *app
|
||||||
|
globalMounts:
|
||||||
|
- path: /var/lib/influxdb2
|
||||||
|
|
Loading…
Reference in a new issue