fix: scenarios having solution in problem statement itself
Signed-off-by: Abhinav Sinha <[email protected]>
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
"difficulty": "Easy",
|
"difficulty": "Easy",
|
||||||
"type": "task",
|
"type": "task",
|
||||||
"weight": 5,
|
"weight": 5,
|
||||||
"description": "## Rolling Back a Deployment\n\nA deployment `api-server` was mistakenly updated to a broken image. Your task is to roll it back to the previous working revision.\n\n**Your task:**\n\nRoll back the `api-server` deployment to its previous revision.\n\n```bash\n# Check rollout history\nkubectl rollout history deployment/api-server\n# Rollback\nkubectl rollout undo deployment/api-server\n```",
|
"description": "## Rolling Back a Deployment\n\nA deployment `api-server` was mistakenly updated to a broken image. Your task is to roll it back to the previous working revision.\n\n**Your task:**\n\nRoll back the `api-server` deployment to its previous revision.\n\n> 💡 Tip: Check `kubectl rollout --help` for subcommands that deal with revision history.",
|
||||||
"hints": [
|
"hints": [
|
||||||
{
|
{
|
||||||
"title": "Undo a rollout",
|
"title": "Undo a rollout",
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"difficulty": "Easy",
|
"difficulty": "Easy",
|
||||||
"type": "task",
|
"type": "task",
|
||||||
"weight": 4,
|
"weight": 4,
|
||||||
"description": "## Generating and Applying Manifests with Dry Run\n\nInstead of writing YAML from scratch, you can use `kubectl` to generate templates using `--dry-run=client -o yaml` and then apply them.\n\n**Your task:**\n\nUse `kubectl run` with `--dry-run=client -o yaml` to generate a Pod manifest for `web-pod` using image `httpd:alpine`, then pipe it directly to `kubectl apply -f -` to create the pod.\n\n```bash\nkubectl run web-pod --image=httpd:alpine --dry-run=client -o yaml | kubectl apply -f -\n```",
|
"description": "## Generating and Applying Manifests with Dry Run\n\nInstead of writing YAML from scratch, you can use `kubectl` to generate templates using `--dry-run=client -o yaml` and then apply them.\n\n**Your task:**\n\nUse `kubectl run` with `--dry-run=client -o yaml` to generate a Pod manifest for `web-pod` using image `httpd:alpine`, then pipe it directly to `kubectl apply` to create the pod.\n\n> 💡 Tip: Chain the `kubectl run` dry-run output directly into `kubectl apply` using a pipe.",
|
||||||
"hints": [
|
"hints": [
|
||||||
{
|
{
|
||||||
"title": "Combine dry-run with apply",
|
"title": "Combine dry-run with apply",
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"difficulty": "Easy",
|
"difficulty": "Easy",
|
||||||
"type": "task",
|
"type": "task",
|
||||||
"weight": 5,
|
"weight": 5,
|
||||||
"description": "## Perform a Rolling Update\n\nA Deployment named `app-v1` is running `nginx:1.24`. Your team needs to upgrade it to `nginx:1.25`.\n\n**Your task:**\n\nUpdate the image of the `app-v1` deployment to `nginx:1.25` using a rolling update strategy. Ensure all replicas are running the new image.\n\n```bash\n# Hint: kubectl set image can update an image in-place\nkubectl set image deployment/<name> <container>=<image>\n```",
|
"description": "## Perform a Rolling Update\n\nA Deployment named `app-v1` is running `nginx:1.24`. Your team needs to upgrade it to `nginx:1.25`.\n\n**Your task:**\n\nUpdate the image of the `app-v1` deployment to `nginx:1.25` using a rolling update strategy. Ensure all replicas are running the new image.",
|
||||||
"hints": [
|
"hints": [
|
||||||
{
|
{
|
||||||
"title": "Set a new image on a Deployment",
|
"title": "Set a new image on a Deployment",
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"difficulty": "Easy",
|
"difficulty": "Easy",
|
||||||
"type": "task",
|
"type": "task",
|
||||||
"weight": 4,
|
"weight": 4,
|
||||||
"description": "## Scaling a Deployment\n\nA deployment named `webapp` is currently running with **1 replica**. Traffic has increased and you need to scale it up.\n\n**Your task:**\n\nScale the `webapp` deployment to **4 replicas** and verify all pods become Ready.\n\n```bash\n# You can use the imperative command\nkubectl scale deployment webapp --replicas=4\n# Or edit the manifest\nkubectl edit deployment webapp\n```",
|
"description": "## Scaling a Deployment\n\nA deployment named `webapp` is currently running with **1 replica**. Traffic has increased and you need to scale it up.\n\n**Your task:**\n\nScale the `webapp` deployment to **4 replicas** and verify all pods become Ready.",
|
||||||
"hints": [
|
"hints": [
|
||||||
{
|
{
|
||||||
"title": "Scale imperatively",
|
"title": "Scale imperatively",
|
||||||
|
|||||||
Reference in New Issue
Block a user