rkjain
    • 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
    • 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
    • Engagement control
    • 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 Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control 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
  • 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
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # clusterctl move operation on docker ``` source management cluster: ~/.airship/kubeconfig (default) target management cluster: ~/capi-quickstart.kubeconfig ``` ❯ kubectl get pods -A ``` NAMESPACE NAME READY STATUS RESTARTS AGE capd-system capd-controller-manager-9cb5d94cc-tbzbm 1/1 Running 0 23m capi-kubeadm-bootstrap-system capi-kubeadm-bootstrap-controller-manager-b76dfc9c8-d6tpp 1/1 Running 0 23m capi-kubeadm-control-plane-system capi-kubeadm-control-plane-controller-manager-58dfcb7574-gklcz 1/1 Running 0 23m capi-system capi-controller-manager-6c8b76f9f4-7stx9 1/1 Running 0 23m cert-manager cert-manager-7b8c77d4bd-6tgdb 1/1 Running 0 24m cert-manager cert-manager-cainjector-7c744f57b5-4cjpn 1/1 Running 0 24m cert-manager cert-manager-webhook-fcd445bc4-kzfhs 1/1 Running 0 24m kube-system coredns-558bd4d5db-8d62d 1/1 Running 0 28m kube-system coredns-558bd4d5db-hwxc8 1/1 Running 0 28m kube-system etcd-kind-control-plane 1/1 Running 0 28m kube-system kindnet-ffrqw 1/1 Running 0 28m kube-system kube-apiserver-kind-control-plane 1/1 Running 0 28m kube-system kube-controller-manager-kind-control-plane 1/1 Running 0 28m kube-system kube-proxy-4cdh9 1/1 Running 0 28m kube-system kube-scheduler-kind-control-plane 1/1 Running 0 28m local-path-storage local-path-provisioner-547f784dff-2g7hw 1/1 Running 0 28m ``` ❯ kubectl get pods -A --kubeconfig capi-quickstart.kubeconfig ``` NAMESPACE NAME READY STATUS RESTARTS AGE capd-system capd-controller-manager-9cb5d94cc-jmslw 1/1 Running 0 40s capi-kubeadm-bootstrap-system capi-kubeadm-bootstrap-controller-manager-b76dfc9c8-l6nlx 1/1 Running 0 72s capi-kubeadm-control-plane-system capi-kubeadm-control-plane-controller-manager-58dfcb7574-vmmf9 1/1 Running 0 58s capi-system capi-controller-manager-6c8b76f9f4-qrrz8 1/1 Running 0 82s cert-manager cert-manager-7b8c77d4bd-6cm89 1/1 Running 0 2m22s cert-manager cert-manager-cainjector-7c744f57b5-jl2pl 1/1 Running 0 2m22s cert-manager cert-manager-webhook-fcd445bc4-hqxlh 1/1 Running 0 2m20s kube-system calico-kube-controllers-74b8fbdb46-gz79j 1/1 Running 0 12m kube-system calico-node-c6fcx 1/1 Running 0 11m kube-system calico-node-jbqjs 1/1 Running 0 11m kube-system calico-node-lcjkk 1/1 Running 0 11m kube-system calico-node-n8j28 1/1 Running 0 11m kube-system calico-node-nfgg8 1/1 Running 0 8m53s kube-system calico-node-qp55v 1/1 Running 0 12m kube-system coredns-78fcd69978-2fnnc 1/1 Running 0 12m kube-system coredns-78fcd69978-pbzsv 1/1 Running 0 12m kube-system etcd-capi-quickstart-control-plane-gnt52 1/1 Running 0 12m kube-system etcd-capi-quickstart-control-plane-hm9xs 1/1 Running 0 8m35s kube-system etcd-capi-quickstart-control-plane-zv6wz 1/1 Running 0 10m kube-system kube-apiserver-capi-quickstart-control-plane-gnt52 1/1 Running 0 12m kube-system kube-apiserver-capi-quickstart-control-plane-hm9xs 1/1 Running 1 (8m34s ago) 8m48s kube-system kube-apiserver-capi-quickstart-control-plane-zv6wz 1/1 Running 1 (10m ago) 10m kube-system kube-controller-manager-capi-quickstart-control-plane-gnt52 1/1 Running 1 (11m ago) 12m kube-system kube-controller-manager-capi-quickstart-control-plane-hm9xs 1/1 Running 0 8m48s kube-system kube-controller-manager-capi-quickstart-control-plane-zv6wz 1/1 Running 0 9m43s kube-system kube-proxy-9m4r5 1/1 Running 0 12m kube-system kube-proxy-9sdlj 1/1 Running 0 11m kube-system kube-proxy-dl5nm 1/1 Running 0 11m kube-system kube-proxy-fhw8z 1/1 Running 0 11m kube-system kube-proxy-fqfdm 1/1 Running 0 11m kube-system kube-proxy-hvgnp 1/1 Running 0 8m53s kube-system kube-scheduler-capi-quickstart-control-plane-gnt52 1/1 Running 1 (11m ago) 12m kube-system kube-scheduler-capi-quickstart-control-plane-hm9xs 1/1 Running 0 8m32s kube-system kube-scheduler-capi-quickstart-control-plane-zv6wz 1/1 Running 0 9m44s ``` ❯ kubectl get nodes ``` NAME STATUS ROLES AGE VERSION kind-control-plane Ready control-plane,master 28m v1.21.1 ``` ❯ kubectl get machines ``` NAME CLUSTER AGE PROVIDERID PHASE VERSION capi-quickstart-control-plane-gnt52 capi-quickstart 19m docker:////capi-quickstart-control-plane-gnt52 Running v1.22.0 capi-quickstart-control-plane-hm9xs capi-quickstart 14m docker:////capi-quickstart-control-plane-hm9xs Running v1.22.0 capi-quickstart-control-plane-zv6wz capi-quickstart 17m docker:////capi-quickstart-control-plane-zv6wz Running v1.22.0 capi-quickstart-md-0-765cf784c5-4tp6x capi-quickstart 20m docker:////capi-quickstart-md-0-765cf784c5-4tp6x Running v1.22.0 capi-quickstart-md-0-765cf784c5-84rtf capi-quickstart 20m docker:////capi-quickstart-md-0-765cf784c5-84rtf Running v1.22.0 capi-quickstart-md-0-765cf784c5-b5fr9 capi-quickstart 20m docker:////capi-quickstart-md-0-765cf784c5-b5fr9 Running v1.22.0 ``` ❯ clusterctl move --dry-run --kubeconfig ~/.airship/kubeconfig --to-kubeconfig capi-quickstart.kubeconfig ``` Performing move... ******************************************************** This is a dry-run move, will not perform any real action ******************************************************** Discovering Cluster API objects Moving Cluster API objects Clusters=1 Creating objects in the target cluster Deleting objects from the source cluster ``` ❯ clusterctl move -v6 --kubeconfig ~/.airship/kubeconfig --to-kubeconfig capi-quickstart.kubeconfig ``` No default config file available Performing move... Discovering Cluster API objects Secret Count=12 ConfigMap Count=1 DockerMachine Count=6 KubeadmConfigTemplate Count=1 KubeadmControlPlane Count=1 MachineDeployment Count=1 MachineSet Count=1 DockerCluster Count=1 DockerMachineTemplate Count=2 KubeadmConfig Count=6 Cluster Count=1 Machine Count=6 Total objects Count=39 Excluding secret from move (not linked with any Cluster) name="default-token-m2ffh" Moving Cluster API objects Clusters=1 Pausing the source cluster Set Cluster.Spec.Paused Paused=true Cluster="capi-quickstart" Namespace="default" Creating target namespaces, if missing Creating objects in the target cluster Creating Cluster="capi-quickstart" Namespace="default" Creating DockerMachineTemplate="capi-quickstart-control-plane" Namespace="default" Creating KubeadmControlPlane="capi-quickstart-control-plane" Namespace="default" Creating DockerCluster="capi-quickstart" Namespace="default" Creating DockerMachineTemplate="capi-quickstart-md-0" Namespace="default" Creating KubeadmConfigTemplate="capi-quickstart-md-0" Namespace="default" Creating MachineDeployment="capi-quickstart-md-0" Namespace="default" Creating MachineSet="capi-quickstart-md-0-765cf784c5" Namespace="default" Creating Machine="capi-quickstart-control-plane-gnt52" Namespace="default" Creating Secret="capi-quickstart-kubeconfig" Namespace="default" Creating Secret="capi-quickstart-ca" Namespace="default" Creating Secret="capi-quickstart-sa" Namespace="default" Creating Machine="capi-quickstart-control-plane-hm9xs" Namespace="default" Creating Secret="capi-quickstart-etcd" Namespace="default" Creating Secret="capi-quickstart-proxy" Namespace="default" Creating Machine="capi-quickstart-control-plane-zv6wz" Namespace="default" Creating DockerMachine="capi-quickstart-control-plane-cxdm9" Namespace="default" Creating Machine="capi-quickstart-md-0-765cf784c5-84rtf" Namespace="default" Creating Machine="capi-quickstart-md-0-765cf784c5-4tp6x" Namespace="default" Creating DockerMachine="capi-quickstart-control-plane-5b6mz" Namespace="default" Creating KubeadmConfig="capi-quickstart-control-plane-hc46j" Namespace="default" Creating DockerMachine="capi-quickstart-control-plane-bpk8p" Namespace="default" Creating KubeadmConfig="capi-quickstart-control-plane-8cph9" Namespace="default" Creating KubeadmConfig="capi-quickstart-control-plane-zzqns" Namespace="default" Creating Machine="capi-quickstart-md-0-765cf784c5-b5fr9" Namespace="default" Creating Secret="capi-quickstart-control-plane-8cph9" Namespace="default" Creating KubeadmConfig="capi-quickstart-md-0-qzsvd" Namespace="default" Creating KubeadmConfig="capi-quickstart-md-0-595fm" Namespace="default" Creating KubeadmConfig="capi-quickstart-md-0-fvwz9" Namespace="default" Creating Secret="capi-quickstart-control-plane-hc46j" Namespace="default" Creating DockerMachine="capi-quickstart-md-0-xhj7b" Namespace="default" Creating Secret="capi-quickstart-control-plane-zzqns" Namespace="default" Creating DockerMachine="capi-quickstart-md-0-s258w" Namespace="default" Creating DockerMachine="capi-quickstart-md-0-sbfgh" Namespace="default" Creating Secret="capi-quickstart-md-0-qzsvd" Namespace="default" Creating Secret="capi-quickstart-md-0-fvwz9" Namespace="default" Creating Secret="capi-quickstart-md-0-595fm" Namespace="default" Deleting objects from the source cluster Deleting Secret="capi-quickstart-md-0-qzsvd" Namespace="default" Deleting Secret="capi-quickstart-md-0-fvwz9" Namespace="default" Deleting Secret="capi-quickstart-md-0-595fm" Namespace="default" Deleting Secret="capi-quickstart-control-plane-8cph9" Namespace="default" Deleting KubeadmConfig="capi-quickstart-md-0-qzsvd" Namespace="default" Deleting KubeadmConfig="capi-quickstart-md-0-595fm" Namespace="default" Deleting KubeadmConfig="capi-quickstart-md-0-fvwz9" Namespace="default" Deleting Secret="capi-quickstart-control-plane-hc46j" Namespace="default" Deleting DockerMachine="capi-quickstart-md-0-xhj7b" Namespace="default" Deleting Secret="capi-quickstart-control-plane-zzqns" Namespace="default" Deleting DockerMachine="capi-quickstart-md-0-s258w" Namespace="default" Deleting DockerMachine="capi-quickstart-md-0-sbfgh" Namespace="default" Deleting DockerMachine="capi-quickstart-control-plane-cxdm9" Namespace="default" Deleting Machine="capi-quickstart-md-0-765cf784c5-84rtf" Namespace="default" Deleting Machine="capi-quickstart-md-0-765cf784c5-4tp6x" Namespace="default" Deleting DockerMachine="capi-quickstart-control-plane-5b6mz" Namespace="default" Deleting KubeadmConfig="capi-quickstart-control-plane-hc46j" Namespace="default" Deleting DockerMachine="capi-quickstart-control-plane-bpk8p" Namespace="default" Deleting KubeadmConfig="capi-quickstart-control-plane-8cph9" Namespace="default" Deleting KubeadmConfig="capi-quickstart-control-plane-zzqns" Namespace="default" Deleting Machine="capi-quickstart-md-0-765cf784c5-b5fr9" Namespace="default" Deleting MachineSet="capi-quickstart-md-0-765cf784c5" Namespace="default" Deleting Machine="capi-quickstart-control-plane-gnt52" Namespace="default" Deleting Secret="capi-quickstart-kubeconfig" Namespace="default" Deleting Secret="capi-quickstart-ca" Namespace="default" Deleting Secret="capi-quickstart-sa" Namespace="default" Deleting Machine="capi-quickstart-control-plane-hm9xs" Namespace="default" Deleting Secret="capi-quickstart-etcd" Namespace="default" Deleting Secret="capi-quickstart-proxy" Namespace="default" Deleting Machine="capi-quickstart-control-plane-zv6wz" Namespace="default" Deleting DockerMachineTemplate="capi-quickstart-control-plane" Namespace="default" Deleting KubeadmControlPlane="capi-quickstart-control-plane" Namespace="default" Deleting DockerCluster="capi-quickstart" Namespace="default" Deleting DockerMachineTemplate="capi-quickstart-md-0" Namespace="default" Deleting KubeadmConfigTemplate="capi-quickstart-md-0" Namespace="default" Deleting MachineDeployment="capi-quickstart-md-0" Namespace="default" Deleting Cluster="capi-quickstart" Namespace="default" Resuming the target cluster Set Cluster.Spec.Paused Paused=false Cluster="capi-quickstart" Namespace="default" No default config file available ``` ❯ kubectl get machines --kubeconfig ~/.airship/kubeconfig ``` No resources found in default namespace. ``` ❯ kubectl get machines --kubeconfig capi-quickstart.kubeconfig ``` NAME CLUSTER AGE PROVIDERID PHASE VERSION capi-quickstart-control-plane-gnt52 capi-quickstart 37s docker:////capi-quickstart-control-plane-gnt52 Provisioned v1.22.0 capi-quickstart-control-plane-hm9xs capi-quickstart 36s docker:////capi-quickstart-control-plane-hm9xs Provisioned v1.22.0 capi-quickstart-control-plane-zv6wz capi-quickstart 35s docker:////capi-quickstart-control-plane-zv6wz Provisioned v1.22.0 capi-quickstart-md-0-765cf784c5-4tp6x capi-quickstart 34s docker:////capi-quickstart-md-0-765cf784c5-4tp6x Provisioned v1.22.0 capi-quickstart-md-0-765cf784c5-84rtf capi-quickstart 35s docker:////capi-quickstart-md-0-765cf784c5-84rtf Provisioned v1.22.0 capi-quickstart-md-0-765cf784c5-b5fr9 capi-quickstart 33s docker:////capi-quickstart-md-0-765cf784c5-b5fr9 Provisioned v1.22.0 ``` <style>.markdown-body { max-width: 900px; }</style>

    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