extraccion de DNS/ revision de ACLs
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: coredns-custom
|
||||
namespace: apolo
|
||||
data:
|
||||
Corefile: |
|
||||
.:53 {
|
||||
log
|
||||
errors
|
||||
health
|
||||
reload
|
||||
hosts {
|
||||
192.168.200.10 backend.apolo.c2et.net
|
||||
192.168.200.10 portal.apolo.c2et.net
|
||||
192.168.200.10 colossus.apolo.c2et.net
|
||||
192.168.200.13 chat.apolo.c2et.net
|
||||
192.168.200.13 muc.chat.apolo.c2et.net
|
||||
192.168.200.12 streaming.apolo.c2et.net
|
||||
192.168.200.14 meeting.apolo.c2et.net
|
||||
|
||||
# === ARGOS (videovigilancia) ===
|
||||
192.168.200.15 mqtt.argos.interna
|
||||
192.168.200.16 mediamtx.argos.interna
|
||||
192.168.200.10 s3.argos.interna
|
||||
192.168.200.10 minio.argos.interna
|
||||
192.168.200.10 panel.argos.c2et.net
|
||||
fallthrough
|
||||
}
|
||||
forward . /etc/resolv.conf
|
||||
cache 120
|
||||
# prometheus 0.0.0.0:9153 # <- activa si quieres métricas
|
||||
}
|
||||
@@ -1,49 +0,0 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: coredns-custom
|
||||
namespace: apolo
|
||||
labels:
|
||||
app: coredns-custom
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: coredns-custom
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: coredns-custom
|
||||
spec:
|
||||
containers:
|
||||
- name: coredns
|
||||
image: coredns/coredns:1.11.1
|
||||
args: ["-conf", "/etc/coredns/Corefile"]
|
||||
ports:
|
||||
- name: dns-udp
|
||||
containerPort: 53
|
||||
protocol: UDP
|
||||
- name: dns-tcp
|
||||
containerPort: 53
|
||||
protocol: TCP
|
||||
- name: metrics
|
||||
containerPort: 9153
|
||||
protocol: TCP
|
||||
readinessProbe:
|
||||
httpGet: { path: /health, port: 8080 }
|
||||
initialDelaySeconds: 3
|
||||
periodSeconds: 10
|
||||
livenessProbe:
|
||||
httpGet: { path: /health, port: 8080 }
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 20
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /etc/coredns
|
||||
volumes:
|
||||
- name: config
|
||||
configMap:
|
||||
name: coredns-custom
|
||||
items:
|
||||
- key: Corefile
|
||||
path: Corefile
|
||||
@@ -1,19 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: coredns-custom
|
||||
namespace: apolo
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
loadBalancerIP: 192.168.200.11
|
||||
selector:
|
||||
app: coredns-custom
|
||||
ports:
|
||||
- name: dns-udp
|
||||
port: 53
|
||||
targetPort: 53
|
||||
protocol: UDP
|
||||
- name: dns-tcp
|
||||
port: 53
|
||||
targetPort: 53
|
||||
protocol: TCP
|
||||
Reference in New Issue
Block a user