From bb3d2113b52a21f708fef02d1e79c02f631ac9bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Sat, 11 Apr 2026 14:48:54 +0000 Subject: [PATCH] modified: README.md --- README.md | 39 +++++++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e89fa5c..206ab57 100644 --- a/README.md +++ b/README.md @@ -44,8 +44,10 @@ Kubernetes is an open‑source platform that automates the deployment, scaling, - [list all certs](#list-all-certs) - [get cert end date](#get-cert-end-date) - [service accounts](#service-accounts) +- [Services DNS Name](#services-dns-name) - [core-dns](#core-dns) - - [Services DNS Name](#services-dns-name) + - [Overrides](#overrides) + - [Remove warning from logs](#remove-warning-from-logs) - [Custom Resource Definitions](#custom-resource-definitions) - [k3s](#k3s) - [Install / Setup](#install--setup) @@ -57,6 +59,7 @@ Kubernetes is an open‑source platform that automates the deployment, scaling, - [troubleshooting](#troubleshooting) - [host cli](#host-cli) - [host cli - check port usage](#host-cli---check-port-usage) + - [kill all connections](#kill-all-connections) - [cert-manager](#cert-manager) - [Removing cert‑manager Metadata from Secrets](#removing-certmanager-metadata-from-secrets) @@ -593,18 +596,35 @@ kubectl get secret certificate-name-tls -o "jsonpath={.data['tls\.crt']}" | base kubectl get secret continuous-deploy -o jsonpath='{.data.token}' | base64 -d ``` -## core-dns +## Services DNS Name Kubernetes automatically provides DNS names for Services and Pods, and CoreDNS serves these records. This allows workloads to communicate using stable, predictable names instead of changing IP addresses. -### Services DNS Name - ```text ..svc. ..svc.cluster.local ``` -Remove warning from logs. +## core-dns + +### Overrides + +``` yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: coredns-custom + namespace: kube-system +data: + empty.server: | + # empty file, to remove warning: No files matching import glob pattern: /etc/coredns/custom/*.server + split_dns.override: | + rewrite name exact requested.domain.tldr target.domain.tldr + # wild card. works like *.requested.domain.tldr + rewrite name regex (.*)\.requested\.domain\.tldr target.domain.tldr +``` + +### Remove warning from logs ```log [WARNING] No files matching import glob pattern: /etc/coredns/custom/*.server @@ -624,9 +644,9 @@ data: # stub.server: | # - ``` + ## Custom Resource Definitions - **Definition:** A Custom Resource Definition (CRD) is an extension of the Kubernetes API. @@ -774,6 +794,13 @@ systemctl restart k3s-agent ``` bash # example: port 32329 ss -ltnp | grep 32329 + +``` + +### kill all connections + +``` bash +ss -K dst SERVER_IP:6443 ``` ## cert-manager