mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-02-03 07:49:03 +00:00
Add probes for LanCache DNS. (#1434)
This commit is contained in:
parent
1a0a42cff0
commit
d73f54fbd7
@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
appVersion: 1.0.0
|
appVersion: 1.0.0
|
||||||
description: LanCache Monolithic - a caching proxy server for game download content
|
description: LanCache Monolithic - a caching proxy server for game download content
|
||||||
name: lancache
|
name: lancache
|
||||||
version: 0.3.0
|
version: 0.4.0
|
||||||
kubeVersion: ">=1.16.0-0"
|
kubeVersion: ">=1.16.0-0"
|
||||||
keywords:
|
keywords:
|
||||||
- lancache
|
- lancache
|
||||||
@ -21,5 +21,5 @@ dependencies:
|
|||||||
version: 4.3.0
|
version: 4.3.0
|
||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |
|
artifacthub.io/changes: |
|
||||||
- kind: changed
|
- kind: added
|
||||||
description: Upgraded `common` chart dependency to version `4.3.0`.
|
description: Added probes for LanCache DNS container.
|
||||||
|
@ -44,6 +44,45 @@ additionalContainers:
|
|||||||
- name: dns
|
- name: dns
|
||||||
containerPort: 53
|
containerPort: 53
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
|
livenessProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- bash
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
# Check if LanCache DNS entries are set up.
|
||||||
|
dig @127.0.0.1 "${LANCACHE_DNSDOMAIN}" SOA | grep localhost
|
||||||
|
|
||||||
|
# Check if upstream DNS server is reachable.
|
||||||
|
dig "${LANCACHE_DNSDOMAIN}" SOA
|
||||||
|
readinessProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- bash
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
# Check if LanCache DNS entries are set up.
|
||||||
|
dig @127.0.0.1 "${LANCACHE_DNSDOMAIN}" SOA | grep localhost
|
||||||
|
|
||||||
|
# Check if upstream DNS server is reachable.
|
||||||
|
dig "${LANCACHE_DNSDOMAIN}" SOA
|
||||||
|
startupProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- bash
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
# Check if LanCache DNS entries are set up.
|
||||||
|
dig @127.0.0.1 "${LANCACHE_DNSDOMAIN}" SOA | grep localhost
|
||||||
|
|
||||||
|
# Check if upstream DNS server is reachable.
|
||||||
|
dig "${LANCACHE_DNSDOMAIN}" SOA
|
||||||
|
|
||||||
service:
|
service:
|
||||||
dns:
|
dns:
|
||||||
|
@ -40,7 +40,7 @@ service:
|
|||||||
port: 53
|
port: 53
|
||||||
|
|
||||||
# -- LanCache uses custom upstream nameservers, overridable with the `UPSTREAM_DNS` variable.
|
# -- LanCache uses custom upstream nameservers, overridable with the `UPSTREAM_DNS` variable.
|
||||||
dnsPolicy: 'None'
|
dnsPolicy: None
|
||||||
dnsConfig:
|
dnsConfig:
|
||||||
nameservers:
|
nameservers:
|
||||||
- 127.0.0.1
|
- 127.0.0.1
|
||||||
|
Loading…
Reference in New Issue
Block a user