modified: README.md
This commit is contained in:
39
README.md
39
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
|
||||
<service-name>.<namespace>.svc.<cluster-domain>
|
||||
<SERVICE_NAME>.<NAMESPACE>.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
|
||||
|
||||
Reference in New Issue
Block a user