Add probes for LanCache DNS. (#1434)

This commit is contained in:
Markus Reiter 2022-02-22 17:00:49 +01:00 committed by GitHub
parent 1a0a42cff0
commit d73f54fbd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 43 additions and 4 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
appVersion: 1.0.0
description: LanCache Monolithic - a caching proxy server for game download content
name: lancache
version: 0.3.0
version: 0.4.0
kubeVersion: ">=1.16.0-0"
keywords:
- lancache
@ -21,5 +21,5 @@ dependencies:
version: 4.3.0
annotations:
artifacthub.io/changes: |
- kind: changed
description: Upgraded `common` chart dependency to version `4.3.0`.
- kind: added
description: Added probes for LanCache DNS container.

View File

@ -44,6 +44,45 @@ additionalContainers:
- name: dns
containerPort: 53
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:
dns:

View File

@ -40,7 +40,7 @@ service:
port: 53
# -- LanCache uses custom upstream nameservers, overridable with the `UPSTREAM_DNS` variable.
dnsPolicy: 'None'
dnsPolicy: None
dnsConfig:
nameservers:
- 127.0.0.1