HackMD
  • Beta
    Beta  Get a sneak peek of HackMD’s new design
    Turn on the feature preview and give us feedback.
    Go → Got it
    • Beta  Get a sneak peek of HackMD’s new design
      Beta  Get a sneak peek of HackMD’s new design
      Turn on the feature preview and give us feedback.
      Go → Got it
      • Sharing Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • More (Comment, Invitee)
      • Publishing
        Please check the box to agree to the Community Guidelines.
        Everyone on the web can find and read all notes of this public team.
        After the note is published, everyone on the web can find and read this note.
        See all published notes on profile page.
      • Commenting Enable
        Disabled Forbidden Owners Signed-in users Everyone
      • Permission
        • Forbidden
        • Owners
        • Signed-in users
        • Everyone
      • Invitee
      • No invitee
      • Options
      • Versions and GitHub Sync
      • Transfer ownership
      • Delete this note
      • Template
      • Insert from template
      • Export
      • Dropbox
      • Google Drive Export to Google Drive
      • Gist
      • Import
      • Dropbox
      • Google Drive Import from Google Drive
      • Gist
      • Clipboard
      • Download
      • Markdown
      • HTML
      • Raw HTML
    Menu Sharing Help
    Menu
    Options
    Versions and GitHub Sync Transfer ownership Delete this note
    Export
    Dropbox Google Drive Export to Google Drive Gist
    Import
    Dropbox Google Drive Import from Google Drive Gist Clipboard
    Download
    Markdown HTML Raw HTML
    Back
    Sharing
    Sharing Link copied
    /edit
    View mode
    • Edit mode
    • View mode
    • Book mode
    • Slide mode
    Edit mode View mode Book mode Slide mode
    Note Permission
    Read
    Owners
    • Owners
    • Signed-in users
    • Everyone
    Owners Signed-in users Everyone
    Write
    Owners
    • Owners
    • Signed-in users
    • Everyone
    Owners Signed-in users Everyone
    More (Comment, Invitee)
    Publishing
    Please check the box to agree to the Community Guidelines.
    Everyone on the web can find and read all notes of this public team.
    After the note is published, everyone on the web can find and read this note.
    See all published notes on profile page.
    More (Comment, Invitee)
    Commenting Enable
    Disabled Forbidden Owners Signed-in users Everyone
    Permission
    Owners
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Invitee
    No invitee
       owned this note    owned this note      
    Published Linked with GitHub
    Like BookmarkBookmarked
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # RFC-0002: Layer Architecture [![hackmd-github-sync-badge](https://hackmd.io/HYXkw0gMTSia7-Da14GLpQ/badge)](https://hackmd.io/HYXkw0gMTSia7-Da14GLpQ) <a href="0002-layer-architecture.pdf" target="_blank" rel="noopener" class="print-pdf">Download as PDF</a> (for docs.racklet.io) [TOC] ## RFC Metadata **Authors** (in alphabetical order): - Dennis Marttinen, [@twelho](https://github.com/twelho) - Lucas Käldström, [@luxas](https://github.com/luxas) **Status** (as defined [here]): `Provisional` [here]: https://github.com/kubernetes/enhancements/blob/46b95331113de10ca20a11eb41a0131c88bca966/keps/NNNN-kep-template/kep.yaml#L9 **Creation Date**: `2021-04-15` **Last Updated**: `2021-07-02` **RFC Handle**: `0002-layer-architecture` **Initial Pull Request**: [racklet/racklet#20](https://github.com/racklet/racklet/pull/20) **Tracking Issue**: [racklet/racklet#21](https://github.com/racklet/racklet/issues/21) ## Summary This RFC describes the overall Racklet architecture, its defining layers, and requirements for each such layer, derived from [RFC-0001]. For each layer the defining components are described at a high level (avoiding implementation details). The components are associated with their role and five highlighted key requirements from the values and user goals of [RFC-0001]. [RFC-0001]: 0001-high-level-architecture.md ## Motivation With this RFC we aim to clearly define the layers Racklet consists of to provide a clear overview of the system for all contributors and maintainers. Additionally this document concisely presents the techniques and technologies used in the various layers to achieve the goals stated in [RFC-0001]. ### Goals - Define well-known layers of Racklet. - Describe the requirements for each layer. - Briefly discuss "Racklet conformance" from an architectural perspective. - Highlight some differences between Racklet and other similar alternatives. ### Non-Goals - Describe the details and/or technical implementations of the various layers. See the detailed RFCs for the layers if looking for that information. - Cover every minor component or implementation-specific components, this RFC is designed to only give an overview. ## Proposal Racklet is divided into 5 distinct layers, from highest-level to lowest-level: 5\. **User Software** 4\. **System Software** 3\. **Firmware** 2\. **Electrical** 1\. **Structural** There is some overlap between these defined layers, mostly due to individual components contributing to multiple layers, but we aim to keep a clear distinction in this definition. If for example a microcontroller is part of both the electrical and firmware layer, the electrical layer only considers its electical properties and the firmware layer only its firmware. The architecture is designed with the layers and their interaction as the primary focus. The requirements of a layer drive the design of the layer below it, which aims to satisfy the dependencies according to the values and user goals of the project. The layers are described here in reverse order (layer 5 first), since the highest layer starts the dependency chain by directly fulfilling the user goals. ### 5. User Software layer **Summary**: The user software layer should allow the user to schedule workloads of choice using either containers or VMs. There should be an accessible and observable graphical user interface in place for the user to monitor and manage the Racklet system and workloads. **Goals**: - Enable the user to observe and manage a Racklet cluster - Enable easy deployment of container/VM workloads - (Optionally) make a Kubernetes cluster accessible for the user **Layer components**: | Component | Role | Key Requirements | | --------------------------------------- | ------------------------------------------------ | ------------------------------------------------------------------------------------------------------- | | **Micro Virtual Machine orchestration** | Define and run VMs declaratively | [Improve status quo], [Openness], [Declarative management], [Documentation], [Fast reconfiguration] | | **Kubernetes deployment automation** | Consume/use a Kubernetes cluster | [De-facto standards], [Declarative management], [Loose coupling], [Upgradability], [Utilize Kubernetes] | | **Racklet dashboard** | Monitor rack and cluster state, deploy workloads | [Security by design], [Declarative management], [Open source], [Portability], [Observability] | ### 4. System Software layer **Summary**: The system software layer is responsible for enabling the container/VM solutions of the user software layer. There should be a hypervisor in place for the virtual machines and a container orchestration solution ([Kubernetes]) for container workloads. Kubernetes is also leveraged for orchestrating the Racklet rack and performing managemental operations in a declarative fashion. **Goals**: - Support running containers/VMs securely and scalably - Be fully declaratively configured using version control - Enable secure communications inside the cluster **Layer components**: | Component | Role | Key Requirements | | ---------------------------------- | ---------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | | **System Kubernetes installation** | Run container workloads, perform management | [Declarative management], [Consistency], [Modular design], [Portability], [Loose coupling] | | **Hypervisor operating system** | Run VM workloads, enable kernel-level security | [Defense in depth], [De-facto standards], [Declarative management], [Raspberry Pi compatibility], [Portability] | | **[CNI] compliant networking** | Network the Racklet cluster compute units | [Security by design], [No old/insecure protocols], [Openness], [Observability], [End-to-end encryption] | | **GitOps tooling** | Declarative management of the Racklet stack | [Improve status quo], [De-facto standards], [Declarative management], [Observability], [Auto-upgradability] | [Kubernetes]: https://kubernetes.io/ [CNI]: https://github.com/containernetworking/cni ### 3. Firmware layer **Summary**: The firmware helps in securely booting and configuring Racklet compute, for example it is declaratively managed and performs cryptographic verification of payloads to boot. The firmware should also help with collecting hardware observability data and telemetry for monitoring and debugging. **Goals**: - Enable secure access to the declarative configuration in Git - Verify payloads to be booted by the compute - Enable debugging and observability of the hardware and compute - Store keys and signatures for the above layers **Layer components**: | Component | Role | Key Requirements | | -------------------------------------------------- | ---------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | | **[u-root] based bootstrap environment** | Secure Git access, firmware updates and payload booting | [Security by design], [Improve status quo], [Open source], [Secure updates], [Zero-trust network boot] | | **BMC (Baseboard Management Controller) firmware** | Compute booting and debugging, key and signature storage for software layers | [Security by design], [No old/insecure protocols], [Declarative management], [Debuggability], [One-time hardware setup] | | **RMC (Rack Management Controller) firmware** | Rack hardware control and observability, e.g. fans | [Openness], [Declarative management], [Loose coupling], [Observability], [Secure updates] | [u-root]: https://u-root.org/ ### 2. Electrical layer **Summary**: The electrical layer backs the computational, power delivery and physical networking requirements of the compute. It also provides a means to run the firmware on the BMC and RMC (microcontrollers). **Goals**: - Provide computing capacity for the software layer - Provide power for all components in a Racklet rack - Provide a physical networking device for the software layer - Provide a means to run the firmware for the compute and rack **Layer components**: | Component | Role | Key Requirements | | ------------------ | ------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------- | | **Compute unit** | Run the bootstrap and hypervisor operating systems and compute workloads | [Common off-the-shelf parts], [Raspberry Pi compatibility], [Hot swappability], [One-time hardware setup], [Physical portability] | | **BMC PCB** | Host the BMC microcontroller and deliver power to the compute unit | [Open Source], [Reproducible PCBs], [Modular design], [Raspberry Pi compatibility], [Energy monitoring] | | **Backplane PCB** | Rack level power distribution and inter-BMC connectivity | [Common off-the-shelf parts], [Reproducible PCBs], [Physical portability], [Hot swappability], [Upgradability] | | **Network switch** | Provides networking for the rack (and cluster) | [De-facto standards], [Common off-the-shelf parts], [Sensible rack cost], [Physical portability], [Commodity power and I/O] | ### 1. Structural layer **Summary**: The structural layer consists of physical components that form the structure of the Racklet rack. The structural layer enables Racklet to be compact, modular and easily transportable. The rack consists of a casing that hosts the backplane, network switch and slots for slide-in trays. The compute unit with its storage is attached to modular compute trays, that have matching rails for the slide-in slots in the rack. **Goals**: - Provide a rigid structure for hosting all components - Enable component hot-swap and modularity **Layer Components**: | Component | Role | Key Requirements | | ---------------- | ------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------- | | **Compute tray** | Enable mounting of a compute unit in a hot-swappable and modular way | [Open source], [3D printed parts], [Modular design], [Raspberry Pi compatibility], [Hot swappability] | | **Rack case** | Contain the network switch, a power backplane and multiple compute trays | [Open source], [3D printed parts], [Modular design], [Sensible rack cost], [Physical portability] | <!-- Links to Racklet values described in RFC-0001 --> <!-- Security --> [Security by design]: 0001-high-level-architecture.html#subvalue-security-by-design [No old/insecure protocols]: 0001-high-level-architecture.html#subvalue-no-old-insecure-protocols [Improve status quo]: 0001-high-level-architecture.html#subvalue-improve-status-quo [Defense in depth]: 0001-high-level-architecture.html#subvalue-defense-in-depth <!-- Interoperability --> [Openness]: 0001-high-level-architecture.html#subvalue-openness [De-facto standards]: 0001-high-level-architecture.html#subvalue-de-facto-standards [Declarative management]: 0001-high-level-architecture.html#subvalue-declarative-management [Consistency]: 0001-high-level-architecture.html#subvalue-consistency <!-- Accessibility / Reproducibility --> [Open source]: 0001-high-level-architecture.html#subvalue-open-source [Common off-the-shelf parts]: 0001-high-level-architecture.html#subvalue-common-off-the-shelf-parts [3D printed parts]: 0001-high-level-architecture.html#subvalue-3d-printed-parts [Reproducible PCBs]: 0001-high-level-architecture.html#subvalue-reproducible-pcbs [Documentation]: 0001-high-level-architecture.html#subvalue-documentation <!-- Modularity / Compatibility --> [Modular design]: 0001-high-level-architecture.html#subvalue-modular-design [Raspberry Pi compatibility]: 0001-high-level-architecture.html#subvalue-raspberry-pi-compatibility [Portability]: 0001-high-level-architecture.html#subvalue-portability [Loose coupling]: 0001-high-level-architecture.html#subvalue-loose-coupling <!-- Transparency --> [Observability]: 0001-high-level-architecture.html#subvalue-observability [Debuggability]: 0001-high-level-architecture.html#subvalue-debuggability [Energy monitoring]: 0001-high-level-architecture.html#subvalue-energy-monitoring <!-- Maintainability / Upgradability --> [Hot swappability]: 0001-high-level-architecture.html#subvalue-hot-swappability [Upgradability]: 0001-high-level-architecture.html#subvalue-upgradability [Auto-upgradability]: 0001-high-level-architecture.html#subvalue-auto-upgradability [One-time hardware setup]: 0001-high-level-architecture.html#subvalue-one-time-hardware-setup <!-- Affordability --> [Sensible rack cost]: 0001-high-level-architecture.html#subvalue-sensible-rack-cost <!-- User goals --> [Utilize Kubernetes]: 0001-high-level-architecture.html#user-goal-kubernetes [Fast reconfiguration]: 0001-high-level-architecture.html#user-goal-fast-reconfiguration [Secure updates]: 0001-high-level-architecture.html#user-goal-secure-updates [Zero-trust network boot]: 0001-high-level-architecture.html#user-goal-zero-trust-networking [End-to-end encryption]: 0001-high-level-architecture.html#user-goal-end-to-end-encryption [Physical portability]: 0001-high-level-architecture.html#user-goal-physical-portability [Commodity power and I/O]: 0001-high-level-architecture.html#user-goal-commodity-power-io ### Guide-level explanation The layer architecture described in the proposals introduces some new named concepts and components. By layer, they can be explained as follows: 5\. **User Software** - **Micro virtual machine (microVM)**: A very light-weight virtual machine that is optimized for low resource consumption by omitting unnecessary features. Racklet uses these to enable low-overhead kernel-level isolation of applications. - **Kubernetes**: A production-grade container orchestration system for runnign containerized applications across multiple (physical) compute unit. Kubernetes is leveraged for both running applications and managing the Racklet cluster. - **Dashboard**: A (usually web-based) graphical user interface for monitoring and controlling software/hardware. Racklet incorporates dashboards for accessibility and observability. 4\. **System Software** - **Hypervisor operating system**: An operating system base that is ready to run (micro) virtual machines using e.g. [KVM]. The operating system used on Racklet compute units should be light-weight and have hypervisor support. - **CNI networking**: [CNI] is a standardized way to network containers for example in Kubernetes. It can however be leveraged across physical compute units and VMs as well, as is done in Racklet. - **GitOps**: A way to declaratively manage Kubernetes (and other components) by storing declarative configuration files in a Git repository. This enables traceability of configuration changes and easy state transitions. [KVM]: https://www.linux-kvm.org/page/Main_Page 3\. **Firmware** - **Bootstrap environment**: A small integrated Linux kernel and userspace responsible for securely resolving and booting a hypervisor operating system from the network. Racklet leverages [u-root] for the userspace component, and GitOps for accessing the rack configuration. - **BMC**: Short for *Baseboard Management Controller*, it is a microcontroller helping with adminstrative tasks on the compute unit level. In the case of Racklet the BMC helps with tasks such as booting securely, verifying integrity and debugging boot issues. The firmware for the BMC will do much of the heavy lifting. - **RMC**: Short for *Rack Management Controller*, it is an additional microcontroller on the rack level that manages shared resources such as cooling (fans), indicator lights/displays and optionally rack-level power measurement. 2\. **Electrical** - **Compute unit**: the "server" of Racklet, i.e. a Linux-compatible computer in the Racklet rack that runs the VMs/containers/applications in a cluster setup. The reference implementation of Racklet focuses on the SBC (Single Board Computer) form factor for affordability, portability and accessibility. - **PCB**: Short for *Printed Circuit Board*, both the BMC and the backplane of Racklet are PCB-based instead of having the user hand-wire the components together. Although PCBs and the associated SMD (surface mount device) components are more difficult to work with and require some expertise, due to their good state of accessibility and affordability nowadays Racklet is ready to take the tradeoff for a considerably more streamlined user experience. - **Network switch**: As a cluster computer implementation Racklet requires computer networking between the compute nodes. The network switch enables connecting the compute nodes and racks together (and to the Internet). While the type of network switch is not limited here, Racklet aims to only require [OSI layer 2] compatibility from the switch. This is why the switch is categorized the electrical layer since that type of switch has no distinct firmware and other "moving parts". [OSI layer 2]: https://en.wikipedia.org/wiki/Data_link_layer 1\. **Structural** - **Compute tray**: The compute tray is analogous to a server casing with rails in a traditional server rack. Since Racklet compute units are mostly of the SBC form factor, they most often have no integrated casing and no way to mount storage (i.e. an SSD/HDD) like a traditional computer case. Thus, Racklet has the compute tray to facilitate exactly that, it is a case (or plate) that mounts a compute unit and its storage and provides "rails" to slide into the Racklet rack with hot-plug support. - **Rack case**: The physical structure hosting all compute units, PCBs, networking and power (conversion). In the reference implementation this resembles a down-scaled server rack for portability and educational value, but the form factor is not strict. **Note**: These RFCs target a "reference" implementation of Racklet, as envisioned by its authors. The components and key requirements for them are described from the perspective of this reference implementation, and thus "community" implementations of Racklet (e.g. in a different physical form factor) don't need to strictly adhere to the requirements laid out here. A "Racklet compliant" system ultimately only required to follow the [values laid out in RFC-0001] and the loose coupling hardware/software interfaces of the project. That said, it is still advised that variations of Racklet follow the layers, high-level components and key requirements in this document. [values laid out in RFC-0001]: 0001-high-level-architecture.html#values ### Risks and Mitigations The Racklet team aims to adapt to community requirements and adaptations to keep the Racklet ecosystem cohesive. The project has three strategies to mitigate against the risk of the ecosystem fragmenting with incompatible hardware/software implementations of Racklet: 1. *Community contributions and suggestions are taken into account and encouraged.* - The project adapts to the usecases of its userbase to avoid community implementations steering different directions. 1. *Loose coupling is leveraged to the greatest possible extent.* - All components of Racklet shall depend on each other only through standardized interfaces, which enables the use of alternative implementations following those specifications. 1. *The layer architecture described here is not fixed.* - The layers are used to guide the design, but are not fixed bounds that require to be strictly adhered to. For example, a community-made component can be both part of the user software and system software layer without issue. The Racklet team is also open to feedback regarding the layer structure if you have improvement suggestions to the model. ## Rationale and alternatives As stated in [Risks and Mitigations](#risks-and-mitigations), Racklet is (one of) the first of its kind with regards to its specification-first architecture. The initial layer separation presented here is the result of an iterative thought process by the core Racklet authors. The five layers are chosen to clearly separate roles and responsibilities of components, without going into too much detail (too many layers) or causing excessive overlap (too few layers). Firmware and system software are separated to achieve loose coupling and clear, secure communication between them. User software is separated from system software to define a border between software mostly provided by the Racklet project and external software that the user introduces (workloads). [Loose coupling] plays a very important role in the architecture presented here. Racklet could have been designed as a fully integrated system with implementations that are strictly defined by the project, but while this potentially could make the system more compact and simple, it also faces many drawbacks that make it incompatible with the values and goals of the project. For example, Racklet relies heavily on various different projects in the Open Source Firmware and Cloud Native ecosystems, many of which evolve quickly and provide alternative implementations complying to standard APIs. We want Racklet to be accessible, transparent and modular, which means supporting a wide variety of hardware, and enabling user customization to a great extent. If loose coupling is implemented properly, we believe that the standardized architecture presented here will be relatively simple to maintain and extend, and community-built Racklet solutions will also be able to use the modules and different software implementations effortlessly. In summary, to fulfill the values defined in [RFC-0001] and to avoid ecosystem fragmentation the Racklet project aims to provide interfaces, not implementations. ## Prior art At the time of Racklet creation the history of Raspberry Pi (and other single board computer) based cluster computers is already very rich. Various private persons, educational insistutes and companies have come up with a wide variety of designs (e.g. KubeCloud[^kubecloud]) for different use cases for at least the past 8 years. What sets Racklet apart from these mostly one-off implementations is it's **specification**. Instead of deriving a specification from some implementation, Racklet as a system is *primarily* defined as a set of RFC documents. This specification is intended to define a **standardized** way to build a miniature compute cluster, from the lowest-level hardware details up to a state-of-the-art software stack. Since the specification is defined from the ground up, we prioritize basing it on the most _secure_ and _modern_ technologies available today, essentially merging the core concepts of prior SBC cluster computer implementations with the state of the art security and fleet management models of large-scale cloud providers. ## Unresolved questions The architecture described in this document is prone to encounter changes as the detailed RFCs describing individual components/layers are established. It is also unclear if this particular layered architecture with the chosen high-level components is optimal, and thus the reference implementation will likely influence the structure here once it is better known what works and what doesn't. Racklet is also a complex system, and this document in its current state can likely not provide the full picture of the architecture to an unfamiliar reader. To combat this, additional graphical elements such as architecture diagrams could be embedded into this document in a future revision (**TODO**). The concept of "Racklet conformance" briefly disussed in [Risks and Mitigations](#risks-and-mitigations) is not expanded upon here, but might warrant its own RFC specifically for community implementations. ## Future possibilities The layer definitions presented here are expected to evolve with the project. This document serves as a starting point for discussion, and records the current consensus. In the future the scope of this document might also include a thorough introduction to the architecture for newcomers to the project, as well as improved reasoning for particular high-level architectural decisions and how they are derived. ## Implementation History - `2021-07-20`: This RFC has been accepted. --- [^kubecloud]: "KubeCloud: A Small-Scale Tangible Cloud Computing Environment". Master's thesis in Computer Engineering at Aarhus University by Kasper Nissen and Martin Jensen. Published June 6th, 2016. [Download PDF here](https://github.com/KubeCloud/thesis/raw/master/master.pdf).

    Import from clipboard

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lost their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template is not available.


    Upgrade

    All
    • All
    • Team
    No template found.

    Create custom template


    Upgrade

    Delete template

    Do you really want to delete this template?

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Tutorials

    Book Mode Tutorial

    Slide Mode Tutorial

    YAML Metadata

    Contacts

    Facebook

    Twitter

    Feedback

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions

    Versions and GitHub Sync

    Sign in to link this note to GitHub Learn more
    This note is not linked with GitHub Learn more
     
    Add badge Pull Push GitHub Link Settings
    Upgrade now

    Version named by    

    More Less
    • Edit
    • Delete

    Note content is identical to the latest version.
    Compare with
      Choose a version
      No search result
      Version not found

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub

        Please sign in to GitHub and install the HackMD app on your GitHub repo. Learn more

         Sign in to GitHub

        HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Available push count

        Upgrade

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Upgrade

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully