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:


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