Commit b482b69c authored by chatagiri's avatar chatagiri
Browse files

Update nsd.yaml

parents
---
apiVersion: v1
kind: Namespace
metadata:
name: nsd
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: nsd
name: nsd
namespace: nsd
spec:
replicas: 2
selector:
matchLabels:
app: nsd
template:
metadata:
labels:
app: nsd
spec:
containers:
- image: ghcr.io/the-kube-way/nsd:latest
name: nsd
ports:
- name: udp
containerPort: 53
volumeMounts:
- name: nsd-zones
mountPath: /zones
- name: nsd-conf
mountPath: /etc/nsd/nsd.conf
subPath: nsd.conf
volumes:
- name: nsd-zones
configMap:
name: nsd-zones
items:
- key: db.example.jp
path: example.jp.zone
mode: 0644
- name: nsd-conf
configMap:
name: nsd-conf
items:
- key: nsd.conf
path: nsd.conf
mode: 0644
---
apiVersion: v1
kind: Service
metadata:
name: nsd
namespace: nsd
labels:
app: nsd
spec:
ports:
- name: dns
port: 53
protocol: UDP
selector:
app: nsd
type: LoadBalancer
---
apiVersion: v1
kind: ConfigMap
metadata:
name: nsd-zones
namespace: nsd
data:
db.example.jp: |
$ORIGIN example.jp.
$TTL 800
; SOA
@ IN SOA ns1.example.jp. example.jp. (
1 ; Serial
3200 ; Refresh
1800 ; Retry
96000 ; Expire
86400 ) ; Minimum
; NAMESERVERS
@ IN NS ns.example.jp.
; A RECORDS
@ IN A 192.168.1.XX
k8s-master00 IN A 192.168.1.10
k8s-worker00 IN A 192.168.1.20
k8s-worker00 IN A 192.168.1.21
k8s-worker00 IN A 192.168.1.22
webapp00 IN A 192.168.1.200
webapp01 IN A 192.168.1.210
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment