-
Notifications
You must be signed in to change notification settings - Fork 6
/
hr.yaml
69 lines (69 loc) · 1.79 KB
/
hr.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# 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
kind: HelmRelease
metadata:
name: mosquitto
spec:
chart:
spec:
chart: app-template
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
version: 3.2.1
values:
controllers:
mosquitto:
type: statefulset
replicas: 2
containers:
app:
args:
- sh
- -c
- exec mosquitto -c "/config/$(hostname).conf"
image:
repository: ghcr.io/vaskozl/mosquitto
tag: 2.0.18@sha256:51c69591ecc52b33d3b1ea3dcf922d6dd8ca887c546af4c33e9fe8b89e79ab98
probes:
liveness:
enabled: true
readiness:
enabled: true
resources:
limits:
memory: 200Mi
requests:
cpu: 2m
memory: 8Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
defaultPodOptions:
securityContext:
fsGroup: 568
runAsGroup: 568
runAsNonRoot: true
runAsUser: 568
seccompProfile:
type: RuntimeDefault
persistence:
config:
name: mosquitto-config
type: configMap
service:
app:
annotations:
coredns.io/hostname: mqtt
controller: mosquitto
loadBalancerIP: ${EI_MQTT}
externalTrafficPolicy: Local
ports:
mqtt:
port: 1883
type: LoadBalancer