0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
No active XP Potion
Accept a Quest
Login to submit answers
A Deployment provides declarative updates for Pods and ReplicaSets.
You describe your desired state in a Deployment, and the Deployment Controller's job is to make the current state match the desired state. You declare your hopes and dreams, and it's Kubernetes' job to make them come true.
Remember when we had you delete a pod, only to see that a new pod was created in its place? It's kinda like chopping heads off of a hydra.
That's because the desired state described in our Deployment says we want 2 pods running at all times. When we delete one, the Deployment Controller sees that the current state doesn't match the desired state, so it creates a new pod to make them match again.
Take a look at the YAML file for your current deployment in the CLI:
kubectl get deployment synergychat-web -o yaml
Edit the deployment and change the number of replicas from 2 to 10:
kubectl edit deployment synergychat-web
Make sure you've got 10 pods running:
kubectl get pod
Keep using kubectl get pod
to check on your pods until all 10 are in a "ready" state. Once they are, run:
kubectl proxy
Run and submit the CLI tests.
The Boot.dev CLI requires you to be signed in to submit your solution!
Copy/paste one of the following commands into your terminal:
Run
bootdev run 9aa64616-7dbc-4bdc-bd69-47f19e9edf98
Submit
bootdev run 9aa64616-7dbc-4bdc-bd69-47f19e9edf98 -s
bootdev config base_url <url>
Run the CLI commands to test your solution.
.kindto be equal to
Deployment
.status.readyReplicasto be equal to
10
Using the Bootdev CLI
The Bootdev CLI is the only way to submit your solution for this type of lesson. We need to be able to run commands in your environment to verify your solution.
You can install it here. It's a Go program hosted on GitHub, so you'll need Go installed as well. Instructions are on the GitHub page.