2409a4d3a0
Reduce reserved-but-unused CPU requests across several workloads (limits unchanged). | Workload | CPU request | |---|---| | vmstorage (vmcluster) | 1 → 250m | | vmagent | 500m → 250m | | authentik server | 250m → 50m | | authentik worker | 250m → 100m | | bind authoritative | 100m → 20m | | bind externaldns | 100m → 20m | | bind resolvers | 100m → 20m | | woodpecker agent | 100m → 50m | Reviewed-on: #248 Co-authored-by: Ben Vincent <ben@unkin.net> Co-committed-by: Ben Vincent <ben@unkin.net>
50 lines
1.5 KiB
YAML
50 lines
1.5 KiB
YAML
---
|
|
# Authoritative masters (replaces the 3x Puppet authoritative servers).
|
|
# pod-0 is the primary; pods 1-2 replicate via the catalog zone + AXFR/IXFR.
|
|
apiVersion: bind.unkin.net/v1alpha1
|
|
kind: BindCluster
|
|
metadata:
|
|
name: bind-authoritative
|
|
namespace: bind-internal
|
|
spec:
|
|
mode: authoritative
|
|
replicas: 3
|
|
storageClassName: cephrbd-fast-delete
|
|
storageSize: 2Gi
|
|
# Restrict queries to internal networks (puppet acl-main.unkin.net).
|
|
# 10.42.0.0/16 (pod net) is required so secondaries can SOA-refresh
|
|
# from the primary during catalog replication.
|
|
extraOptions:
|
|
- "allow-query { auth-acl-main; 10.42.0.0/16; }"
|
|
service:
|
|
type: LoadBalancer
|
|
externalTrafficPolicy: Local
|
|
annotations:
|
|
purelb.io/service-group: common
|
|
purelb.io/addresses: 198.18.200.6
|
|
external-dns.alpha.kubernetes.io/hostname: bind-authoritative.k8s.syd1.au.unkin.net
|
|
primaryService:
|
|
type: LoadBalancer
|
|
annotations:
|
|
purelb.io/service-group: common
|
|
purelb.io/addresses: 198.18.200.9
|
|
external-dns.alpha.kubernetes.io/hostname: bind-authoritative-primary.k8s.syd1.au.unkin.net
|
|
resources:
|
|
requests:
|
|
cpu: 20m
|
|
memory: 128Mi
|
|
limits:
|
|
cpu: "1"
|
|
memory: 512Mi
|
|
---
|
|
# Catalog zone so new BindZones auto-provision onto the secondaries.
|
|
apiVersion: bind.unkin.net/v1alpha1
|
|
kind: BindCatalogZone
|
|
metadata:
|
|
name: bind-authoritative-catalog
|
|
namespace: bind-internal
|
|
spec:
|
|
clusterRef: bind-authoritative
|
|
zoneName: catalog.internal
|
|
transferKeyRef: transfer-key
|