ishishow
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    clusterの種別(zonal/regional, private)、node、node pool、auto repair、horizontal/vertical auto scaling、cluster upgradeあたり ## クラスタ構成について 以下、GKEで作成可能なクラスタ構成について説明します。 ここでの構成の選択肢はクラスタの作成後に変更ができないので注意が必要です。 このまとめはGKEの[説明記事](https://cloud.google.com/kubernetes-engine/docs/concepts/types-of-clusters)に沿っています。 ## クラスタの管理レベル GKEクラスタの構成の前に、クラスタに必要な柔軟性、権限、管理のレベルを理解することが重要です。必要とする管理レベルによって、GKE で使用する運用モードと、作成する必要があるクラスタ構成が決まります。 ## 運用モード GKEでクラスタを作成する場合は、2つの運用モードのどちらかを使用します。 - Autopilot - 完全にプロビジョニングされたマネージドクラスタ構成が提供されます。Autopilotモードで作成されたクラスタには、クラスタ構成オプションが自動的に作成されます。Autopilotクラスタは、本番環境ワークロードに対応する最適化されたクラスタ構成を使用してあらかじめ構成されています。 - AutoPilotの詳細についてはこちらで説明があります。 - Standard - クラスタの基盤となるインフラストラクチャに高度な構成の柔軟性を提供します。Standard モードを使用して作成されたクラスタでは、ユーザーが本番環境ワークロードに必要な構成を決定します。 (ここの説明はもっとわかりやすくできるはず) ## クラスタ構成の選択肢 選択した運用モードに基づいて、クラスタに必要な構成を選択します。 Autopilot モードでは、ほとんどの選択肢が自動的に選択されます。Standard モードでは、ユーザーが本番環境ワークロードに最適な構成を選択する必要があります。 クラスタのタイプ https://cloud.google.com/kubernetes-engine/docs/concepts/types-of-clusters#zonal_clusters ## クラスタの可用性タイプ GKE では、ワークロードの可用性要件と予算に合わせてクラスタを作成できます。使用可能なクラスタのタイプには、ゾーン(シングルゾーンまたはマルチゾーン)とリージョンがあります。 ## クラスタの管理レベル 必要とする管理レベルによってGKEで使用する運用モーと作成する必要があるクラスタ構成が決まります。 ## 二つの運用モード - autopilot - 完全にプロビジョニングされたマネージドクラスタ構成を提供します。 Autopilotモードで作成されたクラスタにはクラスタ構成オプションが自動的に作成されます。Autopilotクラスタは本番環境ワークロードに対応する最適化されたクラスタ構成を使用してあらかじめ構成されています。 - Standard - クラスタの基盤となるインフラストラクチャに高度な構成の柔軟性を提供します。Standard モードを使用して作成されたクラスタでは、ユーザーが本番環境ワークロードに必要な構成を決定します。 ## クラスタ - リージョンクラスタ - リージョンクラスタには特定のリージョン内の複数ゾーンで動作する複数のレプリカレプリカが含まれています。 - リージョンクラスタ内のノードは構成されたノードのロケーションに応じて複数のゾーンまたは単一ゾーンで実行できます。 - デフォルトではGKEは各ノードプールをコントロールプレーンのリージョンの3つのゾーンに複製します。 - クラスタを作成する時や新しいノードプールを追加するときにクラスタのノードが実行されるゾーンを指定してデフォルト設定を変更できます。 - ゾーンクラスタ - ゾーンクラスタには、1 つのゾーン内に 1 つのコントロール プレーンが含まれています。可用性の要件に応じて、ゾーンクラスタのノードを単一のゾーンに分散するか、複数のゾーンに分散するかを選択できます。 - コントロールプレーンは一つで単一のゾーンにしか存在しないため、ゾーン障害に弱い上、マスターのアップデート時にダウンタイムが発生してしまう問題があります。 シングルゾーン クラスタ シングルゾーン クラスタには、1 つのゾーンで動作する 1 つのコントロール プレーンが含まれています。このコントロール プレーンは、同じゾーンで動作するノード上のワークロードを管理します。 マルチゾーン クラスタ マルチゾーン クラスタには、1 つのゾーンで動作するコントロール プレーンの 1 つのレプリカと、複数のゾーンで動作する複数のノードが含まれています。クラスタのアップグレード中や、コントロール プレーンが動作するゾーンの停止中にも、ワークロードは動作を継続します。ただし、コントロール プレーンが使用可能になるまでは、クラスタや、その中にあるノードとワークロードを設定できません。マルチゾーン クラスタでは、可用性とコストのバランスをとりながら一貫したワークロードが実現されます。ノードとノードプールの数が頻繁に変化するような環境で、可用性を維持する必要がある場合は、リージョン クラスタの使用を検討してください。 リージョン クラスタ リージョン クラスタには、特定の 1 リージョン内の複数ゾーンで動作する複数のレプリカが含まれています。リージョン クラスタ内のノードは、構成されたノードのロケーションに応じて、複数のゾーンまたは単一ゾーンで実行できます。デフォルトでは、GKE は各ノードプールをコントロール プレーンのリージョンの 3 つのゾーンに複製します。クラスタを作成するときや新しいノードプールを追加するときに、クラスタのノードが実行されるゾーンを指定してデフォルト構成を変更できます。すべてのゾーンは、コントロール プレーンと同じリージョン内に存在する必要があります。 本番環境ワークロードを実行するには、リージョン クラスタを使用します。リージョン クラスタの方がゾーンクラスタと比較して可用性に優れているためです。 Standard モードでリージョン クラスタを作成するには、リージョン クラスタの作成をご覧ください。 Autopilot モードでリージョン クラスタを作成するには、Autopilot クラスタの作成をご覧ください。 https://cloud.google.com/kubernetes-engine/docs/concepts/types-of-clusters A multi-zonal cluster's nodes run in multiple zones, but it has only a single replica of the control plane. If you need higher availability for the control plane, consider creating a regional cluster instead. In a regional cluster, the control plane is replicated across multiple zones in a region. https://nokok.hatenablog.com/entry/2017/12/20/000043 ## クラスタ ネットワーク GKE クラスタを作成するときに、ネットワーク ルーティング モードとクラスタ ネットワークの分離方法を指定できます。 ## VPC ネイティブ クラスタとルートベース クラスタ Google Kubernetes Engine では、ある Pod から別の Pod にトラフィックをルーティングする方法によってクラスタを区別できます。エイリアス IP を使用するクラスタは、VPC ネイティブ クラスタと呼ばれています。Google Cloud のルートを使用するクラスタは、ルートベース クラスタと呼ばれています。 新しいクラスタに推奨されるネットワーク モードは VPC ネイティブです。これは、Autopilot モードで作成されるクラスタのデフォルトでもあります。 Standard モードで作成されたクラスタの場合、デフォルトのネットワーク モードは、GKE のバージョンと、クラスタを作成する方法によって異なります。 詳細については、デフォルトのクラスタ ネットワーク モードのグラフをご覧ください。 ### ネットワーク分離の選択肢 デフォルトでは、パブリック ネットワークからクラスタのワークロードへのアクセスを設定できます。ルートは自動的には作成されません。限定公開クラスタが Pod とノードに内部アドレスを割り当て、ワークロードがパブリック ネットワークから完全に分離されます。 限定公開クラスタを作成するには、限定公開クラスタの作成をご覧ください。 ### Kubernetes の機能 Kubernetes の新機能は、開発状況に応じてアルファ版、ベータ版、安定版のいずれかで示されます。ほとんどの場合、ベータ版または安定版として表示された Kubernetes 機能が GKE に同梱されます。Kubernetes アルファ版の機能は、特別な GKE アルファ クラスタで使用できます。 注: アルファ版機能は、Autopilot モードで作成されたクラスタでは使用できません。 ### アルファ クラスタ アルファ クラスタでは、すべての Kubernetes アルファ API(機能ゲートともいう)が有効になっています。アルファ クラスタは、Kubernetes 機能の早期テストや検証に使用できます。アルファ クラスタは本番環境ワークロードではサポートされず、アップグレードも行われません。また、30 日以内に期限が切れます。 Standard モードでアルファ クラスタを作成するには、アルファ クラスタの作成をご覧ください。 https://inthecloud.withgoogle.com/anthos-day-2001/Google_Cloud_Anthos_Day_200130_Session8.pdf https://qiita.com/sonots/items/f82912367693d717ff06 https://qiita.com/ishishow#:~:text=Kubernetes%20Casual%20Talk%20%E3%80%9CUbie%E3%80%81CA%E3%80%81%E3%83%A1%E3%83%AB%E3%83%9A%E3%82%A4%E3%82%92%E8%A6%8B%E3%81%9F%E3%83%A1%E3%83%A2 ```shell # Create container gcloud beta container --project "プロジェクト名" clusters create "クラスタ名" --zone "" --no-enable-basic-auth --cluster-version "バージョン" --release-channel "None" --machine-type "マシンスペック" --image-type "COS_CONTAINERD" --disk-type "pd-standard" --disk-size "100" --metadata disable-legacy-endpoints=true --scopes "https://www.googleapis.com/auth/devstorage.read_only","https://www.googleapis.com/auth/logging.write","https://www.googleapis.com/auth/monitoring","https://www.googleapis.com/auth/servicecontrol","https://www.googleapis.com/auth/service.management.readonly","https://www.googleapis.com/auth/trace.append" --max-pods-per-node "110" --num-nodes "ノードの数" --logging=SYSTEM,WORKLOAD --monitoring=SYSTEM --enable-ip-alias --network "projects/dena-opfsys-as-gcp/global/networks/default" --subnetwork "projects/dena-opfsys-as-gcp/regions/asia-northeast1/subnetworks/default" --no-enable-intra-node-visibility --default-max-pods-per-node "110" --no-enable-master-authorized-networks --addons HorizontalPodAutoscaling,HttpLoadBalancing,GcePersistentDiskCsiDriver --enable-autoupgrade --enable-autorepair --max-surge-upgrade 1 --max-unavailable-upgrade 0 --enable-shielded-nodes --node-locations "asia-northeast1-a","asia-northeast1-b","asia-northeast1-c" ``` 上記たくさん設定があってややこしいと思いますが、![スクリーンショット 2021-10-11 16.39.02](/Users/sho.ishikawa/Library/Application Support/typora-user-images/スクリーンショット 2021-10-11 16.39.02.png)画像右下のCOMMAND LINEを選択すると、コマンドが表示されるのでそこから取得すると便利です。 ![スクリーンショット 2021-10-11 16.40.48](/Users/sho.ishikawa/Library/Application Support/typora-user-images/スクリーンショット 2021-10-11 16.40.48.png) また、もちろんコンソール上からでも作成できます。 ![スクリーンショット 2021-10-11 16.42.54](/Users/sho.ishikawa/Library/Application Support/typora-user-images/スクリーンショット 2021-10-11 16.42.54.png) ロケーションタイプをZonal,Regionalそれぞれ選択したクラスタを作成します。 ```shell # zonal gcloud beta container --project "dena-opfsys-as-gcp" clusters create "testzonalcluster" --zone "asia-northeast1-a" --no-enable-basic-auth --cluster-version "1.20.10-gke.301" --release-channel "None" --machine-type "n1-standard-1" --image-type "COS_CONTAINERD" --disk-type "pd-standard" --disk-size "100" --metadata disable-legacy-endpoints=true --scopes "https://www.googleapis.com/auth/devstorage.read_only","https://www.googleapis.com/auth/logging.write","https://www.googleapis.com/auth/monitoring","https://www.googleapis.com/auth/servicecontrol","https://www.googleapis.com/auth/service.management.readonly","https://www.googleapis.com/auth/trace.append" --max-pods-per-node "110" --num-nodes "1" --logging=SYSTEM,WORKLOAD --monitoring=SYSTEM --enable-ip-alias --network "projects/dena-opfsys-as-gcp/global/networks/default" --subnetwork "projects/dena-opfsys-as-gcp/regions/asia-northeast1/subnetworks/default" --no-enable-intra-node-visibility --default-max-pods-per-node "110" --no-enable-master-authorized-networks --addons HorizontalPodAutoscaling,HttpLoadBalancing,GcePersistentDiskCsiDriver --enable-autoupgrade --enable-autorepair --max-surge-upgrade 1 --max-unavailable-upgrade 0 --enable-shielded-nodes --node-locations "asia-northeast1-a","asia-northeast1-b","asia-northeast1-c" # regional gcloud beta container --project "dena-opfsys-as-gcp" clusters create "test-regional-cluster" --region "asia-northeast1" --no-enable-basic-auth --cluster-version "1.20.10-gke.301" --release-channel "None" --machine-type "n1-standard-1" --image-type "COS_CONTAINERD" --disk-type "pd-standard" --disk-size "100" --metadata disable-legacy-endpoints=true --scopes "https://www.googleapis.com/auth/devstorage.read_only","https://www.googleapis.com/auth/logging.write","https://www.googleapis.com/auth/monitoring","https://www.googleapis.com/auth/servicecontrol","https://www.googleapis.com/auth/service.management.readonly","https://www.googleapis.com/auth/trace.append" --max-pods-per-node "110" --num-nodes "1" --logging=SYSTEM,WORKLOAD --monitoring=SYSTEM --enable-ip-alias --network "projects/dena-opfsys-as-gcp/global/networks/default" --subnetwork "projects/dena-opfsys-as-gcp/regions/asia-northeast1/subnetworks/default" --no-enable-intra-node-visibility --default-max-pods-per-node "110" --no-enable-master-authorized-networks --addons HorizontalPodAutoscaling,HttpLoadBalancing,GcePersistentDiskCsiDriver --enable-autoupgrade --enable-autorepair --max-surge-upgrade 1 --max-unavailable-upgrade 0 --enable-shielded-nodes --node-locations "asia-northeast1-a","asia-northeast1-b","asia-northeast1-c" ``` ![スクリーンショット 2021-10-11 16.46.06](/Users/sho.ishikawa/Library/Application Support/typora-user-images/スクリーンショット 2021-10-11 16.46.06.png) 作成できました。次に今回はHelmを利用してWordpressを簡単に構築します。 ```shell ❯ helm repo add bitnami https://charts.bitnami.com/bitnami "bitnami" has been added to your repositories provide a name or specify --generate-name ❯ helm install bitnami/wordpress --generate-name ``` 上記をそれぞれのクラスタで実行し、WordPressをデプロイします。 accsess wordpress ```sh #サービスの取得 ❯ kubectl get svc NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kubernetes ClusterIP 10.41.240.1 <none> 443/TCP 140m wordpress-1633929471 LoadBalancer 10.41.255.237 XXXXXXXXXXXXXXXXXXXXX 80:32421/TCP,443:32410/TCP 4m32s wordpress-1633929471-mariadb ClusterIP 10.41.253.34 <none> 3306/TCP 4m32s #アドレスの取得(上記のExternalIPと同じ) ❯ echo $(kubectl get svc --namespace default wordpress-1633929471 -o jsonpath='{.status.loadBalancer.ingress[0].ip}') XXXXXXXXXXXXXXXXXXXX ``` アクセスして確認します。 ![スクリーンショット 2021-10-11 14.23.18](/Users/sho.ishikawa/Downloads/スクリーンショット 2021-10-11 14.23.18.png) 構築されていました。 ### アップデート検証 Zonal,Regional二つのクラスタが構築できたので次はクラスタの更新を行いダウンタイムが起こるかの検証を行なっていきます。 #### Zonal Zonal ClusterでAutoscalingを有効化してみます。 ```shell gcloud container clusters update testzonalcluster --enable-autoscaling --min-nodes=1 --max-nodes=1 --zone "asia-northeast1-a" --node-pool default-pool ``` ![スクリーンショット 2021-10-11 15.24.46](/Users/sho.ishikawa/Downloads/スクリーンショット 2021-10-11 15.24.55.png) ![スクリーンショット 2021-10-11 15.24.46](/Users/sho.ishikawa/Downloads/スクリーンショット 2021-10-11 15.24.46.png) ![スクリーンショット 2021-10-11 12.29.41](/Users/sho.ishikawa/Desktop/スクリーンショット 2021-10-11 12.29.41.png) ![](https://i.imgur.com/AWoEyQP.png) ![](https://i.imgur.com/sktbpsu.png) ![](https://i.imgur.com/pZmkHwR.png) ![](https://i.imgur.com/smv9eNZ.png) ![](https://i.imgur.com/rtFE3Rv.png) ![](https://i.imgur.com/lDV0pGL.png) ![](https://i.imgur.com/Kc6UW55.png) ![](https://i.imgur.com/M1qTeZ5.png) https://qiita.com/Ladicle/items/5bb5a9b7fb18bd400682 https://www.wantedly.com/id/shou_ishikawa_g https://cyberagent.zoom.us/j/6822275835 https://blog.inductor.me/entry/2021/03/07/011811 https://speakerdeck.com/makocchi/lets-learn-about-gke-autopilot-gatekeeper-rego?slide=29 https://speakerdeck.com/makocchi/lets-learn-about-gke-autopilot-gatekeeper-rego?slide=29 https://tech.plaid.co.jp/google-cloud-day-digital-2021/ https://t.co/bEbB38srua?amp=1 https://t.co/OjMCTLWz6i?amp=1 https://t.co/hdM1Y61LJ1?amp=1 https://t.co/JCqSbTMgtf?amp=1 https://ahmet.im/blog/gke-autopilot/ https://opensource.googleblog.com/2021/11/expanding-google-summer-of-code-in-2022.html?m=1 ![](https://i.imgur.com/nhVWmu8.png) https://docs.google.com/presentation/d/1tITCK3m6LeHq71rB5gIlqk9SuLdBw9JHPQmXchWCW0s/edit?usp=sharing

    Import from clipboard

    Paste your markdown or webpage here...

    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 lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    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 Sign in with Wallet
    Wallet ( )
    Connect another wallet

    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

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    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 and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    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.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        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
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

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

        Syncing

        Push failed

        Push successfully