Repository navigation
Releases
v1.1.0: KISS Consolidation and Native Salt 3008 Cleanup
Overview
salt-kube-lite v1.1.0 applies a full KISS cleanup across the repository, reducing the codebase from 174 files / 12,106 lines to 106 files / 5,732 lines (-52.7% LOC) while preserving every provisioning, HA, security, and Day-2 capability.
What Changed
Removed Unused Modules and Legacy Wrappers
- Removed the unused static
salt/formulas/kube-monitoring/formula and all references (users deploy cluster monitoring such askube-prometheus-stackvia Helm as needed). - Removed legacy SUSE CaaSP Python wrappers (
salt/_states/caasp_cmd.py,salt/_states/caasp_retriable.py,salt/_modules/caasp_filters.py,salt/_modules/caasp_pillar.py,salt/_grains/node_name.py) and migrated all states to native Salt 3008cmd.runwithretry:,x509.certificate_managedwithretry:,salt['pillar.get'], and built-ingrains['nodename']. - Removed dead states and stale files (
etcd/setting_networks.sls,kubelet/configure-{labels,taints}.sls,salt/{pkgrepo,pin,init}.sls,cert/cert-bundle.jinja,kube-addons/namespace.yaml.jinja,salt/pillar/local/salt/{beacons,salt,schedule}.sls, staticsalt/pillar/prod/*, and legacytests/e2e/run.sh).
Single-File Formulas and Reusable Orchestration Macros
- Consolidated split
init/install/configure/backupstates into single-fileinit.slsformulas forcaserver,etcd,containerd,kube-apiserver,kube-controller-manager,kube-scheduler,kubelet,kube-proxy,kube-apiserver-lb,chrony, andkube-cni/cilium. - Extracted
kube_binary,orch_state,orch_fn, andetcd_health_gatemacros insalt/_macros/kubectl.jinjato simplify all Day-0 and Day-2 orchestrations (orch.kubernetes,orch.upgrade,orch.rotate-certs,orch.rotate-encryption-key,orch.add-node,orch.remove-node).
Single Source of Truth for Versions and Streamlined Tooling
Makefileandscripts/download.shnow read component versions and SHA256 checksums directly fromversions.yamlinstead of duplicating them across files.- Simplified
Makefile(pattern rulesdeploy-%andlab-%),scripts/deploy-baremetal.sh,scripts/render-inventory.py,scripts/bump-versions.py,lab/lab.sh,salt/_modules/sklite.py,tests/render_test.py(auto-discovers all.slsfiles),tests/lint.sh, and paired EN / ZH-CN docs.
Verification
Verified green on GitHub Actions (CI run 47634143519, commit 4c82743):
- Static lint, 193-template render validation,
versions.yamlconsistency, and inventory pipeline tests (8s) - Bare-metal SSH E2E on Ubuntu 24.04 (5m3s) and Rocky Linux 9 (4m59s)
- Live 4th-node
add-node/remove-node, onlineaesgcmSecret encryption key rotation, and 3-master HAProxy failover drill (8m49s)
v1.0.0: Salt 3008 + Kubernetes v1.32.3 Production Automation
Overview
salt-kube-lite v1.0.0 modernizes bare-metal Kubernetes provisioning from Salt 3002 and Kubernetes v1.21.3 to SaltStack 3008 LTS and Kubernetes v1.32.3, with HAProxy L4 load balancing, SRE-hardened Day-2 orchestrations, multi-architecture SHA256-verified binaries, an interactive Docker and Podman lab, and paired English and Simplified Chinese documentation.
Component Versions
| Component | Version | Architectures |
|---|---|---|
| SaltStack | 3008 LTS | amd64, arm64 |
| Kubernetes | v1.32.3 | amd64, arm64 |
| etcd | v3.5.36 | amd64, arm64 |
| containerd | 2.2.10 | amd64, arm64 |
| runc | v1.4.4 | amd64, arm64 |
| crictl | v1.32.0 | amd64, arm64 |
| CNI plugins | v1.6.2 | amd64, arm64 |
| CoreDNS | v1.11.3 | amd64, arm64 |
| HAProxy (local L4 LB) | 2.8 LTS | Ubuntu 24.04, Rocky Linux 9 |
All binary versions and SHA256 checksums live in versions.yaml and are checked by scripts/bump-versions.py --check.
Highlights
Architecture and HA Load Balancing
- Replaced the Nginx
streamproxy with HAProxy 2.8 LTS (salt/formulas/kube-apiserver-lb/) using active TCP health checks (option tcp-check),on-marked-down shutdown-sessions,Type=notify, andhaproxy -c -fconfig validation before reload. - Upgraded PKI automation to Salt 3008
x509_v2with explicitauto_accept: False, peer-signing policies, SAN validation, and 2048-bit RSA leaf certificates. - Added
aesgcmSecret encryption at rest, structured Kubernetes audit logging, Kubernetes v1.32.3 service flags, and dual OS support (Ubuntu 24.04 LTS and Rocky Linux 9).
SRE and Salt 3008 Hardening
- Added custom execution module
salt/_modules/sklite.py(sklite.health,sklite.certs,sklite.drift) compatible with Salt 3008mask_pillar=Trueand Python 3.13/3.14VERIFY_X509_STRICT. - Added etcd quorum preflight gates and atomic config validation before rolling certificate rotation (
orch.rotate-certs), online Secret encryption key rotation (orch.rotate-encryption-key), rolling upgrades (orch.upgrade), and live worker scale-out and removal (orch.add-node,orch.remove-node). - Added automated systemd timers for etcd snapshot backups, periodic defragmentation, non-destructive snapshot restore drills (
etcd-restore-verify.sh), Prometheus scrape/alert configs, and enriched cluster status MOTD. - Added Salt reactor templates (
salt/reactor/) and a single-YAML inventory renderer (scripts/render-inventory.py) plus SSH deployment driver (scripts/deploy-baremetal.sh) and air-gapped offline bundle builder (scripts/offline-bundle.sh).
Clean Layout and Documentation
- Consolidated all Salt content under
salt/(_grains,_macros,_modules,_states,formulas,pillar,reactor,states) and lab tooling underlab/, leaving 6 top-level directories (docs,inventory,lab,salt,scripts,tests). - Added paired English and Simplified Chinese documentation (
README.md,README.zh-CN.md,docs/BAREMETAL_DEPLOYMENT.md,docs/BAREMETAL_DEPLOYMENT.zh-CN.md,salt/pillar/prod/README.md,salt/pillar/prod/README.zh-CN.md,salt/reactor/README.md,salt/reactor/README.zh-CN.md).
Fast Local Lab and Verified CI
- Added a Docker and Podman systemd SSH lab (
lab/lab.sh,make lab-e2e,make lab-scale,make lab-ha-failover) with parallel node startup, OCI image caching, and failure diagnostics. - Verified green on GitHub Actions (
CIrun47596741725):- Static lint, 302-template render validation,
versions.yamlconsistency, and inventory pipeline tests - Full 3-node bare-metal SSH E2E on Ubuntu 24.04 and Rocky Linux 9 (provision, KTHW smoke test, etcd backup and restore drill,
sklitehealth/certs/drift, forced cert rotation) - Live 4th-node
add-nodeandremove-node, onlineaesgcmSecret encryption key rotation, and 3-master HAProxy failover drill
- Static lint, 302-template render validation,
Upgrade Kubernetes to v1.21.3
Update package versions:
- Kubernetes v1.21.3
- etcd v3.5.0
- Containerd 1.5.5
salt-kube v0.1.2
Upgrade
- Etcd v3.4.10
- Containerd 1.4.4
- Cilium v1.9.5
- Kubernetes v1.18.6
- CoreDNS v1.7.0
salt-kube v0.1.1
- upgrade saltstack version to 3003
- upgrade Ubuntu to 20.04
- upgrade kubernetes to v1.17.17