Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add boot sequence documentation #2735

Merged
merged 1 commit into from
Jan 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions sources/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,16 @@ Some day we may need to make an earlier service (say, apiserver) configurable th
This usage is scoped to the keys that have changed, updating relevant config files and restarting affected services.
See [thar-be-settings](thar-be-settings/) docs.

### configured.target
## Boot stages

This is a systemd target that depends on [settings-applier](#settings-applier) and represents the point at which the system is fully configured.
Bottlerocket's boot sequence includes three systemd targets:

Applications can depend on this in their service definition.
Services like Kubernetes and containerd depend on this.
- `preconfigured.target`: this is the target where all the aforementioned services run.
Once all the dynamically generated configurations are created, the system transitions to the next target
- `configured.target`: this is the target that represents the point at which the system is fully configured.
[Bootstrap containers](../../bootstrap-containers-settings) will run at this stage to apply further configurations in the system.
Once all bootstrap containers exit successfully, the system transitions to the next target
- `multi-user.target`: this is the target where the kubelet or the ECS agent run, at this point no further configurations are required in the running system.

## Development

Expand Down
2 changes: 1 addition & 1 deletion sources/api/api-system.drawio
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<mxfile modified="2020-03-10T23:11:10.980Z" host="drawio.corp.amazon.com" agent="Mozilla/5.0 (X11; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0" etag="HDNx51gGrBdV3yEThMaR" version="12.4.8" type="device"><diagram id="vL4lszIxdcRJnpUGa12-" name="Page-1">3Vtbc9o4FP41zOw+kPEFO+QxCUk6280kLbOz6b50hC2MJsJyZBEgv34lWza2JUCAIbR9aO0jWcbf+c5Vase9nS4eKEgmjySEuONY4aLjDjqOc9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2jFhRzXhjVQ7Gxvu19sDbrOjYmzDtttYyW2sdGwjvtIZcbO/GMKE82Fd+1CZTmLDTiM3IFYnE4Up+gCjbIIwv0R8eAaFd9PxBlwCMIpiEU443TLLF4aIAoCv5cAUhaF4/gaDEcQ3ZedYZ+wqdzcbTNPmyz0r+ZM71W0hnS/oWhe9K8et6byojQ5lZZ1JZUOgWIGMxyk8Tm2hJgI3shFNQ03LVFV77p4LDUmHU/XQUmSufF08WDW2LdXRt9meLR29YSPbOZanLxz7ISmaMTBVf7+RJ2fixpt5uL9nImY343vT8trz4S/D0PrK8P23959D9y6aDxz0XdPXmaXC6qx8V+6EWdYhNlNsBl02kyXVhq50JtTCXpAW3VM1TjapdmuN4521YV3umR2VyVBZ4B4tORq/zZ/eroNk7A/ng+XT9c87P9BsxiqqF6lFYk77nfOFXq8Oga0rHnQbUfZlCwahRcWgmbQGlY0g7w/VSaDQBjSDOmoXKNyDoZAs6WvyDh0yV8fKO3SWo5QJPBtlKI74vAjGMDudlBrXGOanG87k0YuLixZOZFjbg3CtThc3z4Dx6B1nEsfqmfc+6k0TR5NuM5KYV1HriqjdLboN3mrjqFoNJ3jGiKKQIolKGUwauZMQ7ZAyjdECFkcm9bnCgViuicmaMGJpkG62I1rzEOoRGwXkPY8zcODoMtuDuPCK2x/VsdU+RHa3fiNik5PeWuyYbnhKTZ5J6tZ1vCZR9m1PO1YzezvtgQg1OKfci5Jog3c1OO+WChfJg1bOGaUfcWCkX99KMIzobRyJ0/7i/VOd1nJh39ozF26jkb5xD6rKsTypSbsgSTDSNL8OYJshucxjw/HJxW9Xp+Nzy179HwP37n8=</diagram></mxfile>
<mxfile modified="2023-01-12T21:38:34.023Z" host="Electron" agent="5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/20.7.4 Chrome/106.0.5249.199 Electron/21.3.3 Safari/537.36" etag="BefRutYJ_UJN7pLE6y2h" version="20.7.4" type="device"><diagram id="vL4lszIxdcRJnpUGa12-" name="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Qp4m8iWhflsad84BQb5UptZhnqhu9Kwwqrg32yFt1T5etdpm10LeesXKsaVy8re/G2jmXb1bhaUdSdY83eVo9v1140cyer8ebx+set62kaVYrpRcMuak/7bf8fTDMNht5SctVgUNkTZ3ugpv6HedmBQ2hRaVHD1KCyE+T9oToJFNrEO+wWCvtgKLLDq5ZNsivjSMDoPEfp6MaQMRQGfF4AQ5ic3MR17VtlcfvO75ksvbi46KBbbTQnYR/E821nW9w8Acazd5hILGMg2rR8nzAimNBEvT1L/riccKWICRI5RrKnoOR1e5zI+XYjqIk8gK8xCoRCRiJtftvpLc21wCl4q82jVwpvI7xkRDFIVkTFDEaV2kmIfqFkmqE1zI6T9bXCgVjW5GRNGjE0SNvHihDq8YMC8p5ddA4c3SRb3wsnu/1eHMu3v8ld/f53V5Aulm67QmBj6SYteSalW3+r6OBNsWVUq7fT9uHV5BzzKEqCHdG1xVlgLEIkT1opZ4CMgx7nTOLtB2b62oze9tiri+NC7RvvX+p0Vgu7xp61sHusdGGqW29Z1MR9EEUYac5SD2BbS3K1zw3HJxe/zX85lHp2/vsr+/Z/</diagram></mxfile>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit. missing line at end of file

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't generate this file, it was generated by an IDE

Binary file modified sources/api/api-system.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.