Skip to content

OpenShift in critical production

from commit to production
commit
git
build
gitlab ci
image
registry
deploy
argocd · flux
production
kubernetes · openshift
monitoring
prometheus · grafana
Client
EDF, CC2A team
Via
Capgemini, consultant
Period
Oct. 2022 – Jul. 2025
Type
Build & run

Context

Three years in a critical, distributed and highly secured environment.

Kubernetes and OpenShift clusters operated in production, and a contribution to application modernization.

~100 user stories delivered in Scrum, in sprints of about four weeks, from prototype to production, across various stacks.

The applications: Java, built with Maven, on Tomcat and Apache, with PostgreSQL, on Red Hat Enterprise Linux virtual machines. GitLab CI runners run on OpenShift.

Delivery

~25 Jenkins pipelines migrated to GitLab CI, with a Groovy to Python refactoring.

On the GitLab CI side, shared components from an internal catalog, each pinned to a tagged version: a SonarQube analysis that fails the job when the quality gate is red, an Ansible run on a VM over SSH.

For project teams, a turnkey example pipeline: prepare, compile, test, package, publish. SonarQube and unit test results show in the merge request; the Maven package goes to the artifact repository, as a release or a snapshot.

A Jenkins build pipeline for the content packs of the security orchestration platform (SOAR): a Python script reads the git diff and lists the packs that changed.

Operations

Oversight of production releases and incident resolution, on OpenShift and vSphere.

A Jenkins pipeline for operations on VMs: monitoring blackout, application start and stop, reboot, minor upgrades of PostgreSQL, Apache, OpenJDK and Tomcat. Several actions in one run, a report by email, a full backup or a VM snapshot before any run.

When a run fails, what to collect to diagnose it without replaying the deployment: the install logs, the system log, the Jenkins log, disk and memory usage.

SSL certificates delivered through git, private keys encrypted with Ansible Vault, with a separate vault password for production. Five checks before delivery: the expiry date, the DNS name, the key matches the certificate, the issuer is in the bundle, the chain is complete up to the root and still valid.

Secrets

A proof of concept: passing secrets to a GitLab CI pipeline that acts on a VM, without storing them.

Four cases: a password or an SSH key entered at launch, and the same two through a form on GitLab Pages that triggers the pipeline through the API.

Three stages: verify the SSH access, deploy a test file, report the state of the machine in JSON, kept as an artifact for a day.

Nothing printed in the logs, variables unset after use, the key deleted at the end of the job, no host written in the pipeline: one inventory file per environment.

AWS

A study: automating the onboarding of an AWS account, to remove the manual steps.

The steps were manual: emails, a YAML file to edit, a branch to push, a GitLab CI pipeline to resume, shell commands, forms in the AWS console.

The proposal: one pipeline per step, and one pipeline that runs them in order from a single YAML inventory. Service requests and their Excel attachments filled by script (Python, pandas, openpyxl) and sent through the ITSM API; StackSets declared in git; the VPC and its endpoints created with CloudFormation; the public DNS zone delegated with its four NS records.

Documentation

What gets built is documented, then run by the teams on their own.

Technical architecture documents for solutions and migrations to AWS: design, data flows, sizing, justified technical choices.

Operations runbooks for the ops teams: reproducible delivery procedures, incident runbooks, monitoring guidelines.

document, hand over
architecture
architecture document
operations
operations runbook
delivery
procedures
incidents
runbooks
monitoring
guidelines

Results

~25pipelines migrated from Jenkins to GitLab CI
~100user stories delivered in three years

Up next

inference

the moment the model answers.

Personal GPU lab, Build, 2025–2026

Self-hosted inference

A platform to build?

Write to me at hello@ahmed-khalil.engineer, or find me on LinkedIn (opens in a new tab).