Skip to content

deloy oss demo app#67

Merged
qasmi merged 5 commits intomainfrom
demo
Dec 8, 2025
Merged

deloy oss demo app#67
qasmi merged 5 commits intomainfrom
demo

Conversation

@qasmi
Copy link
Copy Markdown
Owner

@qasmi qasmi commented Dec 7, 2025

No description provided.

Copy link
Copy Markdown
Collaborator

@my-helper-agent my-helper-agent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1️⃣ Real-Time Diff Summary

Kind Namespace Name Action
Namespace demo-oss-japan demo-oss-japan CREATE
Service demo-oss-japan game-2048-dao-2048 CREATE
Deployment demo-oss-japan game-2048-dao-2048 CREATE
Application argocd game-2048 CREATE
AppProject argocd demo-oss-japan CREATE

2️⃣ Impact Prediction

  • The new namespace demo-oss-japan will be created successfully.
  • The game-2048 Helm release in namespace demo-oss-japan will create a Service of type LoadBalancer and a Deployment with one replica.
  • The Deployment pods will have nodeSelector for role: storage and a toleration for NoSchedule taint with key role and value storage.
  • Cluster nodes do not have a label role: storage; all nodes have no such label, causing no nodes to match the nodeSelector.
  • Result: Deployment pods will remain in Pending state due to no nodes matching the nodeSelector.
  • The Service of type LoadBalancer may take some time to get an external IP (per Helm notes).
  • Kyverno policy validations fail:
    • Critical: Running container as root is disallowed; Deployment does not specify runAsNonRoot.
    • Medium: CPU and memory resource requests and limits are missing; Kyverno requires these.
  • These Kyverno policy failures block the Deployment from being admitted if the policies are enforced cluster-wide.

3️⃣ Risk Analysis

  • Problem: Deployment requires nodes with label role=storage but no nodes have this label in the live cluster.
    Impact: Pods will remain Pending indefinitely, blocking application readiness.
    Mitigation: Add label role=storage to one or more cluster nodes or modify the Helm values to use existing node labels.

  • Problem: Deployment containers run as root (no runAsNonRoot set), violating Pod Security Standards (Restricted).
    Impact: Deployment will be blocked by Kyverno admission controller if policy is enforced, preventing pod creation.
    Mitigation: Modify Deployment or Helm values to set securityContext.runAsNonRoot: true for pod and containers.

  • Problem: Deployment lacks CPU and memory resource requests and limits, violating Kyverno best practices policies.
    Impact: Deployment will be blocked if Kyverno resource policies are enforced, preventing pod creation.
    Mitigation: Specify CPU and memory requests and limits in Helm chart values or override.

Copy link
Copy Markdown
Collaborator

@my-helper-agent my-helper-agent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1️⃣ Real-Time Diff Summary

Kind Namespace Name Action
Namespace demo-oss-japan demo-oss-japan CREATE
Application argocd game-2048 CREATE
AppProject argocd demo-oss-japan CREATE

2️⃣ Impact Prediction

  • The namespace demo-oss-japan does not exist currently in the live cluster; it will be created.
  • The Application "game-2048" will create a deployment and service with resource requests and limits as configured in the Helm values.
  • The deployment uses a Pod securityContext with runAsNonRoot=true, which matches recommended security best practices.
  • The service type is LoadBalancer, which will allocate an external IP if cloud provider supports it.
  • No matching namespace was found in the live cluster, so this is a new environment.
  • The deployment runs a single replica of the dao-2048 application version 1.2.1.

3️⃣ Risk Analysis

  • Problem: Target namespace "demo-oss-japan" does not exist in live cluster prior to this deployment.
    Impact: Kubernetes operations for namespace-scoped resources will fail until the namespace is created.
    Mitigation: Ensure the namespace resource is created and available before syncing other resources.

No Kyverno policy violations or blocking issues were detected in the provided manifest.

@qasmi qasmi closed this Dec 8, 2025
@qasmi qasmi reopened this Dec 8, 2025
Copy link
Copy Markdown
Collaborator

@my-helper-agent my-helper-agent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1️⃣ Real-Time Diff Summary

Kind Namespace Name Action
Namespace demo-oss-japan demo-oss-japan CREATE
Service demo-oss-japan game-2048-dao-2048 CREATE
Deployment demo-oss-japan game-2048-dao-2048 CREATE

2️⃣ Impact Prediction

  • Namespace "demo-oss-japan" will be created and is currently missing in the live cluster.
  • Deployment and Service for game-2048 will be created in the "demo-oss-japan" namespace.
  • The Service of type LoadBalancer will provision external access (depending on cloud environment).
  • Deployment is configured with securityContext.runAsNonRoot: true which is good for security.
  • The workload's resource requests and limits on CPU and Memory are set to 100m and 128Mi respectively.
  • No existing resources with conflicts found in the destination namespace as namespace is new.

3️⃣ Risk Analysis

  • Problem: Deployment does not specify CPU and memory resource requests and limits explicitly in its container resources section.
    Impact: Kyverno validation fails and deployment could be blocked or rejected by admission controllers enforcing resource requests and limits.
    Mitigation: Explicitly specify CPU and memory resource requests and limits in the container resources in the Helm chart values or parameters.

@qasmi qasmi merged commit c4ddcb0 into main Dec 8, 2025
2 checks passed
@qasmi qasmi deleted the demo branch December 8, 2025 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants