Skip to content

Releases

v1.1.0: KISS Consolidation and Native Salt 3008 Cleanup

Choose a tag to compare

@iasonliu iasonliu released this 06 Dec 09:51
4c82743

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 as kube-prometheus-stack via 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 3008 cmd.run with retry:, x509.certificate_managed with retry:, salt['pillar.get'], and built-in grains['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, static salt/pillar/prod/*, and legacy tests/e2e/run.sh).

Single-File Formulas and Reusable Orchestration Macros

  • Consolidated split init/install/configure/backup states into single-file init.sls formulas for caserver, etcd, containerd, kube-apiserver, kube-controller-manager, kube-scheduler, kubelet, kube-proxy, kube-apiserver-lb, chrony, and kube-cni/cilium.
  • Extracted kube_binary, orch_state, orch_fn, and etcd_health_gate macros in salt/_macros/kubectl.jinja to 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

  • Makefile and scripts/download.sh now read component versions and SHA256 checksums directly from versions.yaml instead of duplicating them across files.
  • Simplified Makefile (pattern rules deploy-% and lab-%), 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 .sls files), 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.yaml consistency, 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, online aesgcm Secret encryption key rotation, and 3-master HAProxy failover drill (8m49s)

v1.0.0: Salt 3008 + Kubernetes v1.32.3 Production Automation

Choose a tag to compare

@iasonliu iasonliu released this 06 Dec 02:19
a9b353c

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 stream proxy 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, and haproxy -c -f config validation before reload.
  • Upgraded PKI automation to Salt 3008 x509_v2 with explicit auto_accept: False, peer-signing policies, SAN validation, and 2048-bit RSA leaf certificates.
  • Added aesgcm Secret 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 3008 mask_pillar=True and Python 3.13/3.14 VERIFY_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 under lab/, 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 (CI run 47596741725):
    • Static lint, 302-template render validation, versions.yaml consistency, 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, sklite health/certs/drift, forced cert rotation)
    • Live 4th-node add-node and remove-node, online aesgcm Secret encryption key rotation, and 3-master HAProxy failover drill

Upgrade Kubernetes to v1.21.3

Choose a tag to compare

@iasonliu iasonliu released this 10 Aug 11:13

Update package versions:

  • Kubernetes v1.21.3
  • etcd v3.5.0
  • Containerd 1.5.5

salt-kube v0.1.2

Choose a tag to compare

@iasonliu iasonliu released this 05 Apr 03:22

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

Choose a tag to compare

@iasonliu iasonliu released this 04 Apr 12:20
0cad8dc
  • upgrade saltstack version to 3003
  • upgrade Ubuntu to 20.04
  • upgrade kubernetes to v1.17.17