1# Default values for coredns k8s gateway.
2# This is a YAML-formatted file.
3# Declare variables to be passed into your templates.
7 repository: chainguard-private/k8s_gateway
8 # Overrides the image tag whose default is the chart appVersion.
9 tag: 1.8.2-r16@sha256:099c004ed7f895c28ac3c905bf4334f8905fd1f93f3db97c594d489fdc691f1d
10 pullPolicy: IfNotPresent
11 ## Optionally specify an array of imagePullSecrets.
12 ## Secrets must be manually created in the namespace.
13 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
17 # - name: myRegistryKeySecretName
20 # If true, create & use RBAC resources
32terminationGracePeriodSeconds: 30
35serviceType: "LoadBalancer"
40 prometheus.io/scrape: "true"
58 # loadBalancerClass: ""
60 # externalTrafficPolicy: ""
62 # trafficDistribution: PreferClose
63 # The name of the Service
64 # If not set, a name is generated using the fullname template
71 # The name of the ServiceAccount to use
72 # If not set and create is true, a name is generated using the fullname template
75# Optional priority class to be used for the coredns k8s gateway pods.
77# Configure the pod level securityContext.
79# Configure SecurityContext for Pod.
81# Default zone is what Kubernetes recommends:
82# https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/#coredns-configmap-options
88 # -- expose the service on a different port
90 # If serviceType is nodePort you can specify nodePort here
95 # Serves a /health endpoint on :8080, required for livenessProbe
99 # Serves a /ready endpoint on :8181, required for readinessProbe
101 # Required to query kubernetes API for data
103 parameters: example.com
107 resources Service HTTPRoute
108 fallthrough in-addr.arpa ip6.arpa
109 # Serves a /metrics endpoint on :9153, required for serviceMonitor
111 parameters: 0.0.0.0:9153
113 parameters: . /etc/resolv.conf
119# Complete example with all the options:
120# - zones: # the `zones` block can be left out entirely, defaults to "."
121# - zone: hello.world. # optional, defaults to "."
122# scheme: tls:// # optional, defaults to "" (which equals "dns://" in CoreDNS k8s gateway)
125# use_tcp: true # set this parameter to optionally expose the port on tcp as well as udp for the DNS protocol
126# # Note that this will not work if you are also exposing tls or grpc on the same server
127# port: 12345 # optional, defaults to "" (which equals 53 in CoreDNS k8s gateway)
128# plugins: # the plugins to use for this server block
129# - name: k8s_gateway # name of plugin, if used multiple times ensure that the plugin supports it!
130# parameters: foo bar # list of parameters after the plugin
131# configBlock: |- # if the plugin supports extra block style config, supply it here
135# Extra configuration that is applied outside of the default zone block.
136# Example to include additional config files, which may come from extraVolumes:
139# parameters: /opt/coredns/*.conf
141# To use the livenessProbe, the health plugin needs to be enabled in CoreDNS k8s gateway' server config
144 initialDelaySeconds: 60
149# To use the readinessProbe, the ready plugin needs to be enabled in CoreDNS k8s gateway' server config
152 initialDelaySeconds: 30
157# expects input structure as per specification https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#affinity-v1-core
161# requiredDuringSchedulingIgnoredDuringExecution:
164# - key: foo.bar.com/role
169# expects input structure as per specification https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.21/#topologyspreadconstraint-v1-core
170# and supports Helm templating.
172# topologySpreadConstraints:
175# app.kubernetes.io/name: '{{ template "k8s-gateway.name" . }}'
176# app.kubernetes.io/instance: '{{ .Release.Name }}'
177# topologyKey: topology.kubernetes.io/zone
179# whenUnsatisfiable: ScheduleAnyway
182# app.kubernetes.io/name: '{{ template "k8s-gateway.name" . }}'
183# app.kubernetes.io/instance: '{{ .Release.Name }}'
184# topologyKey: kubernetes.io/hostname
186# whenUnsatisfiable: ScheduleAnyway
187topologySpreadConstraints: []
188# Node labels for pod assignment
189# Ref: https://kubernetes.io/docs/user-guide/node-selection/
191# expects input structure as per specification https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#toleration-v1-core
194# - key: foo.bar.com/role
199# https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget
200podDisruptionBudget: {}
201# configure custom zone files as per https://coredns.io/2017/05/08/custom-dns-entries-for-kubernetes/
203# - filename: example.db
206# example.com. IN SOA sns.dns.icann.com. noc.dns.icann.com. 2015082541 7200 3600 1209600 3600
207# example.com. IN NS b.iana-servers.net.
208# example.com. IN NS a.iana-servers.net.
209# example.com. IN A 192.168.99.102
210# *.example.com. IN A 192.168.99.102
212# optional array of sidecar containers
214# - name: some-container-name
215# image: some-image:latest
216# imagePullPolicy: Always
217# optional array of extra volumes to create
219# - name: some-volume-name
221# optional array of mount points for extraVolumes
223# - name: some-volume-name
224# mountPath: /etc/wherever
226# optional array of secrets to mount inside coredns k8s gateway container
227# possible usecase: need for secure connection with etcd backend
229# - name: etcd-client-certs
230# mountPath: /etc/coredns/tls/etcd
232# - name: some-fancy-secret
233# mountPath: /etc/wherever
236# optional array of environment variables for coredns k8s gateway container
237# possible usecase: provides username and password for etcd user authentications
239# - name: WHATEVER_ENV
241# - name: SOME_SECRET_ENV
244# name: some-secret-name
247# Custom labels to apply to Deployment, Pod, Configmap, Service
249# Custom annotations to apply to Deployment, Pod, Configmap, Service.
251## Create HorizontalPodAutoscaler object.
263# averageUtilization: 60
269# averageUtilization: 60
279 ## Annotations for the coredns k8s gateway deployment
281 # dnsPolicy determines how DNS resolution is handled for the pod.
282 # Options: Default, ClusterFirst, ClusterFirstWithHostNet, None
283 # If set to "None", you must provide dnsConfig.
285 # dnsConfig allows fine-grained DNS configuration for the pod.
286 # Only used when dnsPolicy is set to "None" or when custom DNS settings are needed.
292 # - my.dns.search.suffix
297# Configures initcontainers for the coredns k8s gateway deployment.