Playbooks¶
Ejemplos ejecutables con casts reales, comandos directos y notas de escenario para el ecosistema Productive K3S.
Explorar por producto¶
- Addons: 8 escenarios
- Cli: 15 escenarios
- Core: 25 escenarios
- Infra: 27 escenarios
- Profiles: 13 escenarios
Ejemplos destacados¶
Addon Contract Nginx With Core
Cross-check the `nginx` add-on source package against the current `productive-k3s-core` source validation contract.
cd productive-k3s-addons
ADDON=nginx PRODUCTIVE_K3S_CORE_REPO_DIR=../productive-k3s-core make -C ./tests test-contractAddon Impact Metadata Review
Review the impact metadata that tells `core` and operators which add-ons imply cluster-local or host-local changes.
$\n for addon in addons/*;
do\n [[ -f "${addon}/addon.yaml" ]] || continue\n name="$(basename "${addon}")"\n cluster="$(awk "/^spec:/{in_spec=1;
next} in_spec && /^ impact:/{in_impact=1;
next} in_impact && /^ cluster:/{sub(/^ cluster:[[:space:]]*/, \\"\\", \\$0);
print;
exit}" "${addon}/addon.yaml")"\n host="$(awk "/^spec:/{in_spec=1;
next} in_spec && /^ impact:/{in_impact=1;
next} in_impact && /^ host:/{sub(/^ host:[[:space:]]*/, \\"\\", \\$0);
print;
exit}" "${addon}/addon.yaml")"\n summary="$(awk "/^spec:/{in_spec=1;
next} in_spec && /^ impact:/{in_impact=1;
next} in_impact && /^ summary:/{sub(/^ summary:[[:space:]]*/, \\"\\", \\$0);
print;
exit}" "${addon}/addon.yaml")"\n printf "%s|cluster=%s|host=%s|summary=%s\\n" "${name}" "${cluster}" "${host}" "${summary}"\n done | sort\nAddon List Basic
Review the catalog-backed addon listing exposed by `pk3s`.
cd productive-k3s-cli
bash -lc './pk3s addon list'Bundle Info Local
Inspect local sibling bundle resolution for both `core` and `infra` through `pk3s`.
cd productive-k3s-cli
bash -lc 'PRODUCTIVE_K3S_SOURCE=local ./pk3s bundle core info --json && printf "\n" && PRODUCTIVE_K3S_SOURCE=local ./pk3s bundle infra info --json'Addon Install Packaged Public Host
Install a packaged addon and request a basic public ingress host.
Addon Validate Package
Validate an addon package before installation.
Apply Dry Run Profile Source Multipass
Show the local `multipass` apply path in dry-run mode from the source-oriented Infra workflow.
cd productive-k3s-infra
PRODUCTIVE_K3S_PROFILES_REPO_DIR=../productive-k3s-profiles \
bash ./productive-k3s-infra.sh apply --dry-run --profile ../productive-k3s-profiles/profiles/local/multipass/1-server-2-agents.envApply Dry Run Profile Source Onprem Basic
Preview the source-based `onprem-basic` apply path in dry-run mode.
cd productive-k3s-infra
PRODUCTIVE_K3S_PROFILES_REPO_DIR=../productive-k3s-profiles \
bash ./productive-k3s-infra.sh apply --profile ../productive-k3s-profiles/profiles/edge/on-prem/basic.env --dry-runLive Matrix
Run the full live matrix across every discovered public `profiles` scenario.
cd productive-k3s-profiles
PRODUCTIVE_K3S_INFRA_REPO_DIR=../productive-k3s-infra bash ./scripts/productive-k3s-profiles-dev.sh test-live-matrixLive Multipass
Run the live `multipass` scenario validation path from the `productive-k3s-profiles` source checkout.
cd productive-k3s-profiles
SCENARIO=multipass PRODUCTIVE_K3S_INFRA_REPO_DIR=../productive-k3s-infra bash ./scripts/productive-k3s-profiles-dev.sh test-live