-
Notifications
You must be signed in to change notification settings - Fork 3
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 karmada failover example #5
Conversation
Current effect demo website: |
karmada-Failover-example/finish.md
Outdated
@@ -0,0 +1,3 @@ | |||
**Summary** | |||
|
|||
In this scenario, we learned how to achieve failover in karmada by simulating faults. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this scenario, we learned how to achieve failover in Karmada by simulating faults using taints.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
karmada-Failover-example/index.json
Outdated
"verify": "step2/verify.sh" | ||
}, | ||
{ | ||
"title": "Simulate taint", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simulate cluster failure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
karmada-Failover-example/intro.md
Outdated
|
||
Karmada aims to provide turnkey automation for multi-cluster application management in multi-cloud and hybrid cloud scenarios, with key features such as centralized multi-cloud management, high availability, failure recovery, and traffic scheduling. | ||
|
||
In this scenario, we will learn how to achieve failover in karmada by simulating faults. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same with before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
|
||
create deployment named nginx | ||
|
||
RUN `kubectl --kubeconfig /etc/karmada/karmada-apiserver.config apply -f ~/nginx/nginxDeployment.yaml`{{exec}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the cat
command to display the details of the YAML file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also cat
the PropagationPolicy file.
@@ -0,0 +1,7 @@ | |||
### Check the status and quantity distribution of pods and deployments | |||
|
|||
RUN `karmadactl --kubeconfig /etc/karmada/karmada-apiserver.config get deployment `{{exec}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think directly using karmadactl get pods xxxx --watch
is a better idea, users could see the migration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're right
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other lgtm
karmada-Failover-example/index.json
Outdated
@@ -0,0 +1,37 @@ | |||
{ | |||
"title": "karmada failover example", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Karmada
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
karmada-Failover-example/intro.md
Outdated
|
||
Karmada aims to provide turnkey automation for multi-cluster application management in multi-cloud and hybrid cloud scenarios, with key features such as centralized multi-cloud management, high availability, failure recovery, and traffic scheduling. | ||
|
||
In this scenario, we will learn how to achieve failover in karmada by simulating faults using taints. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Karmada, please check other places and ensure that the first letter is capitalized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirm that the first letter of the karmada string in all documents is already capitalized~
@@ -0,0 +1,3 @@ | |||
### Simulate taint | |||
|
|||
RUN `karmadactl --kubeconfig /etc/karmada/karmada-apiserver.config taint cluster kind-member2 hello=:NoExecute`{{exec}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
failover-test=:NoExecute
is a better name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah , fixed it
|
||
create deployment named nginx | ||
|
||
RUN `kubectl --kubeconfig /etc/karmada/karmada-apiserver.config apply -f ~/nginx/nginxDeployment.yaml`{{exec}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also cat
the PropagationPolicy file.
@@ -0,0 +1,3 @@ | |||
### Check the status and quantity distribution of pods | |||
|
|||
RUN `karmadactl --kubeconfig /etc/karmada/karmada-apiserver.config get pods nginx --watch`{{exec}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RUN karmadactl --kubeconfig /etc/karmada/karmada-apiserver.config get pods --watch
{{exec}}
Signed-off-by: zhangdiandian <1635468471@qq.com>
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jwcesign The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: [JadeFlute0127] [1635468471@qq.com]
What this PR does / why we need it:
add karmada failover example
Which issue(s) this PR fixes:
Part of #1
Special notes for your reviewer:
Does this PR introduce a user-facing change?: