Skip to content

Commit

Permalink
fix(app-template): fix liveness and readiness probes for esphome and …
Browse files Browse the repository at this point in the history
…flux-system
  • Loading branch information
tyriis committed Mar 11, 2024
1 parent 1d7a35d commit 09aa123
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ spec:
probes:
startup:
enabled: false
liveness: &probes
liveness:
enabled: true
custom: true
spec:
Expand All @@ -66,6 +66,7 @@ spec:
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3

resources:
requests:
cpu: 200m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ spec:
- name: http
containerPort: 6052
protocol: TCP
probes:
liveness:
enabled: true
readiness:
enabled: true
startup:
enabled: true

service:
app:
Expand Down Expand Up @@ -80,29 +87,26 @@ spec:

persistence:
config:
enabled: true
existingClaim: esphome-config
advancedMounts:
main:
main:
esphome:
app:
- path: /config
secrets:
enabled: true
type: secret
name: esphome-secrets
advancedMounts:
main:
main:
esphome:
app:
- path: /config/secrets.yaml
subPath: secrets.yaml

esphome-config:
enabled: true
type: configMap
name: esphome-config
advancedMounts:
main:
main:
esphome:
app:
- path: /config/light-alexroom.yaml
subPath: light-alexroom.yaml
- path: /config/light-stairs.yaml
Expand Down

0 comments on commit 09aa123

Please sign in to comment.