Skip to content

Commit 1f9dbe3

Browse files
Kirill KlinchenkovKirill Klinchenkov
authored andcommitted
add coredns app
1 parent 5e98db2 commit 1f9dbe3

6 files changed

Lines changed: 103 additions & 0 deletions

File tree

‎packages/apps/coredns/.helmignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.helmignore
2+
/logos
3+
/Makefile

‎packages/apps/coredns/Chart.yaml‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
apiVersion: v2
2+
name: coredns
3+
description: Managed Coredns service
4+
icon: /logos/coredns.svg
5+
6+
# A chart can be either an 'application' or a 'library' chart.
7+
#
8+
# Application charts are a collection of templates that can be packaged into versioned archives
9+
# to be deployed.
10+
#
11+
# Library charts provide useful utilities or functions for the chart developer. They're included as
12+
# a dependency of application charts to inject those utilities and functions into the rendering
13+
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
14+
type: application
15+
16+
# This is the chart version. This version number should be incremented each time you make changes
17+
# to the chart and its templates, including the app version.
18+
# Versions are expected to follow Semantic Versioning (https://semver.org/)
19+
version: 0.0.1
20+
21+
# This is the version number of the application being deployed. This version number should be
22+
# incremented each time you make changes to the application. Versions are not expected to
23+
# follow Semantic Versioning. They should reflect the version the application is using.
24+
# It is recommended to use it with quotes.
25+
appVersion: "1.32.0"
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
apiVersion: helm.toolkit.fluxcd.io/v2
2+
kind: HelmRelease
3+
metadata:
4+
name: {{ .Release.Name }}-system
5+
spec:
6+
chart:
7+
spec:
8+
chart: cozy-coredns
9+
reconcileStrategy: Revision
10+
sourceRef:
11+
kind: HelmRepository
12+
name: cozystack-system
13+
namespace: cozy-system
14+
version: '{{ .Chart.AppVersion }}'
15+
interval: 1m0s
16+
timeout: 5m0s
17+
values:
18+
servers:
19+
- zones:
20+
- zone: .
21+
port: 53
22+
plugins:
23+
- name: errors
24+
- name: health
25+
configBlock: |-
26+
lameduck 5s
27+
- name: ready
28+
- name: kubernetes
29+
parameters: cluster.local in-addr.arpa ip6.arpa
30+
configBlock: |-
31+
pods insecure
32+
fallthrough in-addr.arpa ip6.arpa
33+
ttl 30
34+
- name: prometheus
35+
parameters: 0.0.0.0:9153
36+
- name: forward
37+
parameters: {{ .Values.forward_parametr | default ". /etc/resolv.conf" }}
38+
- name: cache
39+
parameters: 30
40+
- name: loop
41+
- name: reload
42+
- name: loadbalance
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "Helm Values Schema",
4+
"type": "object",
5+
"properties": {
6+
"forward_params": {
7+
"description": "DNS forward parameter. If set to null, the default . /etc/resolv.conf will be used.",
8+
"type": ["string", "null"],
9+
"default": null,
10+
"examples": [". 1.1.1.1", null]
11+
}
12+
},
13+
"required": [],
14+
"additionalProperties": false
15+
}

‎packages/apps/coredns/values.yaml‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## @section Common parameters
2+
##
3+
## @param forward_params Set the `forward` parameter for CoreDNS.
4+
## This parameter can either be a DNS server (e.g., "1.1.1.1")
5+
## or set to null to use the default forwarder (". /etc/resolv.conf").
6+
##
7+
## Example Usage:
8+
##
9+
## To forward DNS queries to Cloudflare's DNS server:
10+
##
11+
## forward_params: ". 1.1.1.1"
12+
##
13+
## To use the default resolver configuration:
14+
##
15+
## forward_params: null
16+
##
17+
forward_params: null

0 commit comments

Comments
 (0)