Add platform infrastructure configuration

This commit is contained in:
donghyeon-ka
2026-08-28 17:35:41 +09:00
parent fa76531e5b
commit 16c337bcc9
302 changed files with 83259 additions and 1 deletions
@@ -0,0 +1,8 @@
# k3s 내부 Split DNS
k3s CoreDNS의 기존 /etc/coredns/custom/*.server 확장점을 이용해
learn.hyeonworks.com의 다섯 서비스 이름을 호스트 Nginx가 있는
192.168.0.107로 해석합니다.
이 구성이 적용되고 Pod 검증이 끝나면 Gitea의 임시 hostAliases는
필요하지 않습니다. 다른 DNS 영역은 기존 CoreDNS 전달 경로를 유지합니다.
@@ -0,0 +1,24 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: coredns-custom
namespace: kube-system
labels:
app.kubernetes.io/name: coredns
app.kubernetes.io/component: private-dns
app.kubernetes.io/part-of: platform
data:
learn-hyeonworks.server: |
learn.hyeonworks.com:53 {
errors
cache 30
hosts {
192.168.0.107 git.learn.hyeonworks.com
192.168.0.107 id.learn.hyeonworks.com
192.168.0.107 storage-admin.learn.hyeonworks.com
192.168.0.107 db-admin.learn.hyeonworks.com
192.168.0.107 grafana.learn.hyeonworks.com
fallthrough
}
forward . /etc/resolv.conf
}
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- coredns-custom.yaml