You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kumar Singh: Great start on setting up your environment! I can see you have a well-configured Pod with proper resource limits, health checks, and labels - that's excellent foundational work! However, the configuration still shows a standalone Pod (kind: Pod) rather than a Deployment (kind: Deployment). To scale your application properly for the go-live, you'll need to convert this to a Deployment. Here's what you need to do:
Change kind: Pod to kind: Deployment
Add a spec.replicas field to specify how many instances you want
Wrap your Pod specification inside a spec.template section
Add a spec.selector with matchLabels that match your Pod labels
Here's a hint for the structure:
apiVersion: apps/v1kind: Deploymentmetadata:
name: webappspec:
replicas: 1# You'll adjust this in the next task!selector:
matchLabels:
app: webapptier: frontendtemplate:
metadata:
labels:
app: webapptier: frontendversion: v1spec:
# Your existing container spec goes here
You're on the right track - just need to restructure it as a Deployment!
💡 Scale the Webapp to 3 replicas
Kumar Singh: Almost there! Since the configuration is still using a Pod instead of a Deployment, we can't scale it to 3 replicas yet. Pods are single instances and don't have a replica field - that's a Deployment feature! Once you complete Task 1 and convert to a Deployment, scaling will be super easy. You'll just need to set spec.replicas: 3 in your Deployment manifest. The beauty of Deployments is that Kubernetes will automatically create and manage 3 identical copies of your webapp Pod, ensuring high availability for your go-live! Keep going - you're building the right foundation with those resource limits and health checks!
Rachel Osgood: Per our success metrics and stakeholder requirements, this deliverable presents an opportunity for realignment. The configuration still maintains a standalone Pod architecture (apiVersion: v2, kind: Pod) rather than leveraging a Deployment resource. To synergize with industry best practices and meet our KPIs, the student needs to action the following items: (1) Convert the 'kind' field from 'Pod' to 'Deployment', (2) Update the apiVersion to 'apps/v1', (3) Restructure the manifest to include a spec.template section that encapsulates the current Pod specification, and (4) Add a spec.selector.matchLabels field to align with the label strategy. The current implementation is misaligned with our scalability objectives and does not position us for horizontal scaling capabilities.
💡 Scale the Webapp to 3 replicas
Rachel Osgood: This action item remains unaddressed and presents a critical gap in our deliverables. The configuration lacks a 'spec.replicas' field entirely, which is a fundamental requirement for achieving our scaling targets. Since the resource has not been converted to a Deployment architecture (as noted in Task 1), the replica scaling mechanism cannot be implemented. To circle back and realign with expectations, the student must first complete the Deployment conversion, then add 'replicas: 3' under the spec section. Without these changes, we cannot leverage horizontal scaling capabilities or meet our go-live readiness criteria. This represents a blocking issue for our production deployment strategy.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.