Deployment as routine

DevOps and cloud: CI/CD, IaC and migrations

CI/CD pipelines, infrastructure as code and cloud migration for companies that want to deploy without the nerves.

aplikacja-sklepproduction
#482 Fix discount rounding in the cartcommit 3f9c1a2
  1. Buildwaiting1:12
  2. Testswaiting3:40
  3. Deploywaiting0:48
  4. Monitoringwaiting2:00

Time since commit 0:00

Demo run, sample times.

Where deployment stress comes from

Stress usually comes from two things: deployments that are rare, and environments nobody fully knows.

When a change reaches production once a month, every deployment is an event. The team stays late, and the bigger the batch of changes, the harder it is to roll back. So we ship smaller changes more often, always along the same automated path: build, tests, deploy.

A server configured by hand three years ago works, but rebuilding it after a failure takes days. When infrastructure is described in code, a new environment is created from the repository in minutes.

On top of that we add monitoring, so after every deployment you can see whether the system behaves as it did before.

Bright modern office with monitors at the workstations

What the module covers

CI/CD pipelines

Build, tests and deploy on every code change. GitHub Actions, GitLab CI or Jenkins, depending on what your team already uses.

on: push
jobs:
  build:   npm ci && npm run build
  test:    npm test
  deploy:
    needs: [build, test]
    run: ./deploy.sh production

Infrastructure as code

Servers, networks, databases and permissions described in Terraform and Ansible. The environment can be rebuilt from the repository, and every change has a history and an author.

+ aws_instance.app
+ aws_security_group.app
~ aws_db_instance.main
    instance_class: medium → large
Plan: 2 to add, 1 to change

Containerization

Applications in Docker containers, in Kubernetes at larger scale. The same environment runs on the developer machine, in testing and in production.

PodStateRestarts
api-7d9fRunning0
api-7d9f-x2Running0
worker-5c1bRunning1

Staged cloud migration

We move systems to AWS, Google Cloud or Azure one service at a time. Every stage has success criteria and a rollback plan.

  • Databasein the cloud
  • Application50% traffic
  • Fileswaiting

Cost optimization

We go through the cloud bill line by line, switch off unused resources and set budget alerts.

  • Machines with no traffic for 30 days3 to switch off
  • Disks not attached to a machine5 to delete
  • Budget alertset at 80%

Monitoring and alerting

Metrics, logs and alerts in Prometheus with Grafana, Datadog or the Elastic stack. The alert goes to the person who can act on it.

Alert p95 latency above 800 ms, payments service

The jump starts at the moment of deployment #482, so it is clear which change to roll back.

Tools
we work with

Book a consultation

We work with what your company already has. If your tool is not on the list, chances are we know it too.

  • AWSPublic cloud
  • Google CloudPublic cloud
  • Microsoft AzurePublic cloud
  • OVHcloudCloud and dedicated servers
  • CloudflareDNS and traffic protection
  • AkamaiCDN and traffic protection
  • GitHub ActionsPipelines next to GitHub repositories
  • GitLab CIPipelines next to GitLab repositories
  • JenkinsAutomation server
  • Argo CDDeployments in Kubernetes
  • TrivyImage vulnerability scanner
  • Flux CDDeployments from the repository (GitOps)
  • NexusPackage and artifact registry
  • HashiCorp TerraformInfrastructure as code
  • HashiCorp VaultSecrets and access
  • AnsibleServer configuration
  • KeycloakSingle sign-on and identity
  • WazuhThreat detection and compliance
  • DockerContainers
  • KubernetesContainer orchestration
  • HelmPackages for Kubernetes
  • KarpenterNode autoscaling
  • IstioService mesh
  • DatadogMonitoring as a service
  • PrometheusMetrics and alerts
  • GrafanaDashboards
  • ElasticsearchLogs and search
  • KibanaLog viewer
  • OpenTelemetryTracing standard
  • SentryApplication errors
  • LokiLogs in the Grafana stack
  • ZabbixInfrastructure monitoring
  • LogstashLog processing
  • Fluent BitLog collection from servers and containers
  • GraylogCentral logs and alerts
  • OpenSearchLog search and analytics
  • LinuxServer operating systems
  • NGINXWeb server and proxy
  • ApacheWeb server
  • VarnishHTTP cache
  • ProxmoxServer virtualization
  • VMwareServer virtualization
  • Hyper-VVirtualization on Windows Server
  • RabbitMQMessage queues
  • Apache KafkaEvent streaming
  • RedisCache and data store

How the engagement works

First,
a process audit

Then the
pipeline design

Built next to
the running one

Finally,
the cutover

We map how a change travels from commit to production, along with your environments and costs. We talk to the team about what breaks most often. The outcome is a list of problems ordered by priority.

We design CI/CD, infrastructure as code and a staged migration plan. Tools are chosen to fit what you already have. You get a schedule and a cloud cost estimate.

The new pipeline and environments are built next to the running ones. We move services one by one and test each in the new environment. Your team keeps working, with no downtime.

We switch traffic in an agreed window, with a rollback plan ready. We leave documentation and runbooks and train your team. We can also keep running the environment.

How a change reaches production

  • Commitautomatic
  • Code reviewin the repository
  • Build and testsby hand, one person
  • Deploymentby hand, after hours

Rollout plan

  • CI/CD pipelinedesign ready
  • Infrastructure as codescope agreed
  • Staged migrationschedule
  • Cloud costsestimate attached

Two environments side by side

Currentrunning, 100% traffic
Newservice tests 3 of 5

Handover

  • Cutover windowagreed
  • Rollback planready
  • Documentation and runbookshanded over
  • Team trainingdone

This module makes sense if

  • deployments take more than an hour and a release stresses the team,
  • infrastructure grows faster than documentation,
  • knowledge about the servers sits in one person’s head and their holiday is a risk for the company,
  • the cloud bill grows every month and nobody knows why,
  • running your own server room stopped paying off, and the company has to grow faster than the current infrastructure allows.

What you get

This is what you get at the end. You can work with it from the next day, on your own or with us.

Project handover 0 of 6

Frequently asked questions

All questions and answers

Do we have to stop work during the rollout?

No. The new process is built alongside the running one, and we switch only when everything is tested.

Do you work on our stack or impose your own?

We build on what you have wherever possible. We only replace what blocks you.

Which cloud?

Whatever fits your needs and costs. We work with AWS, Google Cloud, Azure and OVHcloud. We are not tied to a single vendor.

Which tools do you work with?

Most often GitHub Actions, GitLab CI and Jenkins, Terraform, Ansible and Vault, Docker and Kubernetes. We build monitoring on Prometheus and Grafana, Datadog or the Elastic stack.

Will we depend on you after the rollout?

No. All configuration goes into your repository, together with documentation. Your team is trained and can develop the pipeline on its own. If you prefer, we take over maintenance.

Not sure where to start? Usually with an audit. It shows whether this module is the right first step.

Let’s talk
about your IT

No obligation. 30 minutes to assess where you stand and agree sensible next steps.