Skip to content

Commit

Permalink
add coredns app
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Klinchenkov authored and Kirill Klinchenkov committed Aug 31, 2024
1 parent 5e98db2 commit 1f9dbe3
Show file tree
Hide file tree
Showing 6 changed files with 103 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/apps/coredns/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.helmignore
/logos
/Makefile
25 changes: 25 additions & 0 deletions packages/apps/coredns/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: v2
name: coredns
description: Managed Coredns service
icon: /logos/coredns.svg

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.32.0"
1 change: 1 addition & 0 deletions packages/apps/coredns/logos/coredns.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions packages/apps/coredns/templates/coredns.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: {{ .Release.Name }}-system
spec:
chart:
spec:
chart: cozy-coredns
reconcileStrategy: Revision
sourceRef:
kind: HelmRepository
name: cozystack-system
namespace: cozy-system
version: '{{ .Chart.AppVersion }}'
interval: 1m0s
timeout: 5m0s
values:
servers:
- zones:
- zone: .
port: 53
plugins:
- name: errors
- name: health
configBlock: |-
lameduck 5s
- name: ready
- name: kubernetes
parameters: cluster.local in-addr.arpa ip6.arpa
configBlock: |-
pods insecure
fallthrough in-addr.arpa ip6.arpa
ttl 30
- name: prometheus
parameters: 0.0.0.0:9153
- name: forward
parameters: {{ .Values.forward_parametr | default ". /etc/resolv.conf" }}
- name: cache
parameters: 30
- name: loop
- name: reload
- name: loadbalance
15 changes: 15 additions & 0 deletions packages/apps/coredns/values.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Helm Values Schema",
"type": "object",
"properties": {
"forward_params": {
"description": "DNS forward parameter. If set to null, the default . /etc/resolv.conf will be used.",
"type": ["string", "null"],
"default": null,
"examples": [". 1.1.1.1", null]
}
},
"required": [],
"additionalProperties": false
}
17 changes: 17 additions & 0 deletions packages/apps/coredns/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## @section Common parameters
##
## @param forward_params Set the `forward` parameter for CoreDNS.
## This parameter can either be a DNS server (e.g., "1.1.1.1")
## or set to null to use the default forwarder (". /etc/resolv.conf").
##
## Example Usage:
##
## To forward DNS queries to Cloudflare's DNS server:
##
## forward_params: ". 1.1.1.1"
##
## To use the default resolver configuration:
##
## forward_params: null
##
forward_params: null

0 comments on commit 1f9dbe3

Please sign in to comment.