Skip to content

Commit

Permalink
chore(chart): coredns Corefile
Browse files Browse the repository at this point in the history
- forward 추가
- #3
  • Loading branch information
BaeKY committed Jan 12, 2023
1 parent b964666 commit a279f8e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
5 changes: 4 additions & 1 deletion chart/manifest/0002-dns.k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ data:
endpoint http://etcd:2379
fallthrough
}
forward {
. 8.8.8.8 8.8.4.4 1.1.1.1
}
cache 30
prometheus 0.0.0.0:9153
reload
Expand Down Expand Up @@ -219,7 +222,7 @@ spec:
template:
metadata:
annotations:
checksum/config: c969a43bf8545ee684ca9bacbaa5d82f0337a1543b1432e2191ff55cd4eb5a0f
checksum/config: c4621470c7da7e98431e7eac4f48b47a50f55ed851d251c7fd87546eb66aa384
labels:
app.kubernetes.io/instance: core-dns
app.kubernetes.io/name: coredns
Expand Down
4 changes: 4 additions & 0 deletions chart/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ export class KubeOpsApp extends App {
name: 'etcd',
configBlock: ['path /skydns', `endpoint ${etcdUrl}`, 'fallthrough'].join('\n')
},
{
name: 'forward',
configBlock: '. '.concat(['8.8.8.8', '8.8.4.4', '1.1.1.1'].join(' '))
},
{
name: 'cache',
parameters: 30
Expand Down
4 changes: 2 additions & 2 deletions chart/src/charts/argocd.chart.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AbsChart, HelmProps } from '@package/cdk8s-loader/src'
import { PartialRecursive, scope } from '@package/common/src'
import { AbsChart, HelmProps } from '@package/cdk8s-loader'
import { PartialRecursive, scope } from '@package/common'
import { ChartProps, Helm } from 'cdk8s'
import { ArgoCdHelmParam } from '../types'

Expand Down
4 changes: 2 additions & 2 deletions chart/src/charts/cert-manager.chart.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AbsChart, HelmProps } from '@package/cdk8s-loader/src'
import { PartialRecursive, scope } from '@package/common/src'
import { AbsChart, HelmProps } from '@package/cdk8s-loader'
import { PartialRecursive, scope } from '@package/common'
import { ClusterIssuer, ClusterIssuerProps, KubeSecret } from '@package/k8s-generated/generated'
import { ChartProps, Helm } from 'cdk8s'
import { CertManagerHelmParam } from '../types'
Expand Down

0 comments on commit a279f8e

Please sign in to comment.