Skip to main content

📘 Stacktic Operational Guide: Complete Day 0–2 Workflow

📋 Table of Contents

Quick Navigation

  1. Executive Overview
  2. Introduction & Objectives
  3. Prerequisites & Requirements
  4. Day 0: Architecture & Design
  5. Day 1: Deployment & Environment Setup
  6. Day 2: Operations & Management
  7. Best Practices & Guidelines
  8. Troubleshooting & FAQ
  9. Next Steps & Resources

🎯 Executive Overview

What This Guide Delivers

Stacktic transforms your application from concept to production-ready full stack in minutes. This comprehensive guide provides a structured workflow covering:

PhaseFocusOutcome
Day 0Architecture & TopologyComplete application design with all components
Day 1Deployment & SetupMulti-environment deployment ready
Day 2Operations & SecurityProduction-grade operations with full observability

Time to Production

  • Traditional Approach: 4-6 weeks
  • With Stacktic: 2-3 days
  • Time Saved: ~90%

🚀 Introduction & Objectives

Learning Objectives

After completing this guide, you will be able to:

  • ✅ Design complex application topologies using Stacktic components
  • ✅ Import and configure existing code and containers
  • ✅ Deploy multi-environment setups (dev, staging, production)
  • ✅ Implement enterprise-grade security and compliance
  • ✅ Establish Day 2 operations including monitoring, backup, and scaling

Target Audience

  • DevOps Engineers - Streamline deployment workflows
  • Platform Engineers - Build standardized stacks
  • SRE Teams - Implement operational excellence
  • Security Teams - Ensure compliance and hardening

📋 Prerequisites & Requirements

Technical Requirements

ComponentRequirementNotes
Kubernetes Cluster1.24+EKS, GKE, AKS, or local
Stacktic AccountActive subscriptionFree trial available
Source Code AccessGit repositoriesGitHub, GitLab, Bitbucket
Container RegistryWrite accessFor image deployments

Knowledge Prerequisites

  • Basic Kubernetes concepts
  • Understanding of microservices architecture
  • Familiarity with Git workflows

📅 Day 0: Architecture & Design

Chapter Overview

Day 0 focuses on designing your application architecture and establishing the foundation for your stack.


4.1 🧩 Application Topology Design

Getting Started

Begin by designing your application using Stacktic's visual topology builder:

Core Components Setup
  • ✅ Define databases (PostgreSQL, MongoDB, Redis)
  • ✅ Configure backend services (APIs, microservices)
  • ✅ Design frontend applications (React, Vue, Angular)
  • ➕ Use the "+" icon on each service to explore available links

Component Linking Strategy

From ComponentTo ComponentLink TypePurpose
BackendDatabaseData connectionPersistent storage
FrontendBackendAPI connectionBusiness logic
API GatewayBackendRoutingExternal access
CacheBackendPerformanceResponse optimization

4.2 🔗 Import Strategies

Choose Your Import Method

Option 1: Import Source Code

Use the external_source_code component for direct repository integration:

alt text

Best for:

  • Active development environments
  • CI/CD integration
  • Automated builds
Option 2: Import Container Images

Use the image_base component for pre-built containers:

alt text

Best for:

  • Production deployments
  • Third-party services
  • Stable releases

💡 Pro Tip: After importing, adjust settings such as:

  • Container ports configuration
  • UID/GID numbers for security
  • PVC enablement for persistent storage
  • Environment-specific configurations

4.3 🏗️ Base Stack Construction

Building Your Foundation

Create a comprehensive base stack including:

alt text

Essential Components
  1. Backend Services - API endpoints, business logic
  2. Data Layer - Databases, caches, message queues
  3. API Gateway - External access, routing, rate limiting
  4. Authentication - Identity providers, OIDC/SAML

Extending Functionality

Add advanced capabilities like API endpoints or messaging services:

alt text


📦 Demo: Initial App Topology

See it in action! Click below to watch the demo:
Demo Video


4.4 🔧 Scale Planning & Forecasting

Capacity Planning Inputs

Provide forecast values on components for intelligent scaling recommendations:

MetricDescriptionExampleImpact
RPSRequests per second1000 RPSCPU/Memory sizing
IOStorage I/O estimates500 IOPSDisk performance
ConnectionsConcurrent users5000Connection pooling
BandwidthNetwork throughput100 MbpsNetwork capacity
image

Cost Analysis Report

Review the scale cost report for production planning:

image

4.5 🗄️ Database Initialization

Important Note

Stacktic creates empty databases by default. You'll need to import your data into the Kubernetes cluster.

Migration Options

Use bucket jobs for automated data migration (covered in migration chapter)

Manual Migration Scripts

Find import scripts in the data components' Day 0 folder:

tree mongodb/day0
mongodb/day0
├── README.md
├── backup-all-db.sh
├── backup.sh
└── restore.sh

📅 Day 1: Deployment & Environment Setup

Chapter Overview

Day 1 transforms your design into deployable environments with operational readiness.


5.1 🛠️ Production Preparation

Multi-Environment Strategy

With your base skeleton ready, create production-ready environments:

EnvironmentPurposeConfiguration
DevelopmentFeature developmentMinimal resources, debug enabled
StagingPre-production testingProduction-like, synthetic data
ProductionLive systemFull resources, monitoring, backups

Implementation Approach

  • 🔄 Create environments (dev, staging, prod)
  • 🔐 Add security layers (NetworkPolicies, RBAC)
  • 💾 Deploy backup solutions (Velero, snapshots)
  • 📊 Enable Day 2 operational components

💡 Best Practice:

  • Use external_source_code for active development
  • Use image_base for production deployments
  • For dev/staging with custom CI, image_base works well

alt text


5.2 ➕ Operational Components

Essential Operational Stack

Extend your infrastructure with critical operational tools:

alt text

Component Breakdown
ComponentPurposeAuto-Generated Assets
VeleroBackup & RestoreBackup pipelines, restore procedures, schedules
ArgoCDGitOps DeploymentApplication manifests, sync policies
PrometheusMetrics CollectionService monitors, alert rules
GrafanaVisualizationPreconfigured dashboards, data sources
LokiLog AggregationLog streams, queries

Integration Benefits

  • Prometheus → Services: Automatic metric scraping
  • Prometheus → Grafana: Pre-built dashboards per service
  • ArgoCD → Git: Automated deployment on commit
  • Velero → Storage: Scheduled backups with retention

📅 Day 2: Operations & Management

Chapter Overview

Day 2 ensures your stack is production-ready with enterprise-grade security, monitoring, and operational excellence.


6.1 🔐 Security Hardening

Comprehensive Security Implementation

Security Layers

1. OPA Policy Enforcement

  • Add Open Policy Agent rules for compliance
  • Enforce security standards automatically
  • Validate configurations before deployment

2. RBAC Configuration Implement role-based access control:

  • Include RBAC components in topology
  • Link users/groups to appropriate services
  • Examples:
    • Data teams → MongoDB access
    • Ops groups → Backend service management
    • Security teams → Audit log access

alt text

3. Source Code Security Hardening Stacktic automatically adjusts security settings:

alt text
Security Checklist
  • ✅ SecurityContext configuration
  • ✅ Network policies enabled
  • ✅ Pod security standards
  • ✅ Secret management
  • ✅ Image scanning
  • ✅ Admission controllers

⚠️ Warning: Overly strict settings may disrupt your application. Test thoroughly in staging.

CISO Audit Report

Stacktic generates a comprehensive CISO Audit Report automatically:

alt text

Report Includes:

  • Real-time security assessment
  • Compliance status (CIS, PCI-DSS, HIPAA)
  • Vulnerability analysis
  • Remediation recommendations
  • Risk scoring

6.2 📦 Version Management

Version Control Strategy

Stacktic provides powerful version management capabilities:

alt text

Version Control Features
FeatureDescriptionUse Case
Stack VersioningSave complete stack configurationsEnvironment snapshots
Component VersioningIndividual service versionsGradual rollouts
Branch ManagementCreate version branchesA/B testing, experiments
Rollback CapabilityInstant version reversalEmergency recovery

Component Version Updates

Change component versions easily:

alt text

Version Notifications

Receive alerts for new versions and changes:

alt text

💡 Best Practice: Always test version upgrades in staging before production deployment.

Configuration Management

Use the Sections area for centralized management:

alt text

alt text

Custom Sections

Create custom groupings for specific needs:

alt text


6.3 🗂️ Operational Readiness

Day-2 Operations Structure

Review and understand your operational configuration:

alt text

Automated Backup Configuration

Velero integration creates comprehensive backup strategies:

tree velero/day2
velero/day2
├── README.md
├── backup
│ ├── mongodb-backup.yaml
│ └── opensearch-backup.yaml
├── restore
│ ├── mongodb-restore.yaml
│ └── opensearch-restore.yaml
└── schedule
├── mongodb-schedule.yaml
└── opensearch-schedule.yaml

Backup Features:

  • Automated scheduling
  • Point-in-time recovery
  • Cross-region replication
  • Disaster recovery procedures

6.4 📊 Monitoring & Observability

Comprehensive Monitoring Stack

Out-of-the-Box Dashboards

Stacktic provides maintained, auto-updating dashboards for:

  • Infrastructure metrics
  • Application performance
  • Business KPIs
  • Security events
Live View Capabilities

Stacktic's Live View provides deep, relationship-aware insights:

alt text

alt text

Live View Features:

Check TypeDescriptionFrequency
API HealthEndpoint availability and latency30 seconds
Data Component HealthDatabase connectivity and performance1 minute
Route ScanningIngress and service mesh validation2 minutes
SSL HealthCertificate expiry and validation1 hour
Security ValidationPolicy compliance tests5 minutes

📚 Best Practices & Guidelines

Deployment Best Practices

PracticeDescriptionBenefit
Environment ParityKeep environments similarReduces production surprises
Gradual RolloutsDeploy to staging firstCatches issues early
Version PinningLock critical component versionsStability assurance
Resource LimitsSet CPU/memory constraintsPrevents resource exhaustion
Health ChecksConfigure liveness/readiness probesAutomatic recovery

Security Best Practices

  1. Least Privilege - Grant minimal required permissions
  2. Defense in Depth - Multiple security layers
  3. Regular Updates - Keep components current
  4. Audit Logging - Track all changes
  5. Encryption - TLS everywhere, encrypted storage

❓ Troubleshooting & FAQ

Common Issues & Solutions

IssueSymptomsSolution
Import FailureCode won't importCheck repository permissions
Scaling IssuesPods not scalingVerify metrics server installation
Network PoliciesServices can't communicateReview policy rules
Backup FailuresVelero errorsCheck storage credentials
Monitoring GapsMissing metricsEnsure ServiceMonitor labels

Frequently Asked Questions

Q: How long does the full Day 0-2 process take? A: Typically 2-3 days for a production-ready stack

Q: Can I skip Day 1 and go directly to Day 2? A: Not recommended - Day 1 establishes critical foundations

Q: How do I handle existing applications? A: Use the migration tools and import features


🚀 Next Steps & Resources

  1. ✅ Complete this Day 0-2 workflow
  2. 📖 Review the Security Framework documentation
  3. 🔄 Explore CI/CD integration options
  4. 📊 Master the monitoring stack
  5. 🎯 Implement advanced features (service mesh, ML ops)

Additional Resources

Get Support

Support TypeContactResponse Time
CommunitySlack channel< 24 hours
Standardsupport@stacktic.io< 8 hours
EnterpriseDedicated channel< 1 hour
EmergencyHotline (Enterprise)< 15 minutes

🎯 Summary

You've now mastered the complete Stacktic workflow from architecture to production operations. Your stack is:

Professionally Designed - Following best practices
Fully Deployed - Across multiple environments
Operationally Ready - With monitoring and backups
Security Hardened - Meeting compliance standards
Future-Proof - Ready for scaling and evolution


Transform your infrastructure from idea to production in minutes, not months.

Version: 2.0
Last Updated: September 2025
© Stacktic - Intelligent Stack Automation