forked from k-space/kube
		
	Elaborate how to configure additional domains for Bind
This commit is contained in:
		| @@ -1,10 +1,21 @@ | ||||
| --- | ||||
| apiVersion: v1 | ||||
| kind: ConfigMap | ||||
| metadata: | ||||
|   name: bind-secondary-config-local | ||||
| data: | ||||
|   named.conf.local: | | ||||
|     zone "codemowers.ee" { type slave; masters { 172.20.0.2 key readonly; }; }; | ||||
|     zone "codemowers.eu" { type slave; masters { 172.20.0.2 key readonly; }; }; | ||||
|     zone "codemowers.cloud" { type slave; masters { 172.20.0.2 key readonly; }; }; | ||||
| --- | ||||
| apiVersion: v1 | ||||
| kind: ConfigMap | ||||
| metadata: | ||||
|   name: bind-secondary-config | ||||
| data: | ||||
|   named.conf: | | ||||
|     include "/etc/bind/named.conf.local"; | ||||
|     include "/etc/bind/readonly.key"; | ||||
|     options { | ||||
|         recursion no; | ||||
| @@ -13,6 +24,7 @@ data: | ||||
|         allow-notify { 172.20.0.2; }; | ||||
|         allow-transfer { none; }; | ||||
|         check-names slave ignore; | ||||
|         notify no; | ||||
|     }; | ||||
|     zone "k-space.ee" { type slave; masters { 172.20.0.2 key readonly; }; }; | ||||
|     zone "k6.ee" { type slave; masters { 172.20.0.2 key readonly; }; }; | ||||
| @@ -60,6 +72,9 @@ spec: | ||||
|             sources: | ||||
|               - configMap: | ||||
|                   name: bind-secondary-config | ||||
|               - configMap: | ||||
|                   name: bind-secondary-config-local | ||||
|                   optional: true | ||||
|               - secret: | ||||
|                   name: bind-readonly-secret | ||||
|         - name: bind-data | ||||
|   | ||||
		Reference in New Issue
	
	Block a user