DevOps
DevOps
A culture/practice that integrates development and operations. CI/CD, IaC, and monitoring are core elements.
DevOps
A culture/practice that integrates development and operations. CI/CD, IaC, and monitoring are core elements.
DevOps is a compound of Development and Operations. It is a culture and set of practices that break down the silos between development and operations teams and strengthen collaboration. It began to spread in earnest in 2009 when Patrick Debois started DevOpsDays.
The core principles of DevOps are summarized as CALMS: Culture, Automation, Lean, Measurement, Sharing. Culture comes before technology, and a Blameless culture that does not blame people for failures is important.
Key practices include CI/CD (continuous integration/delivery), IaC (infrastructure as code), monitoring and logging, and microservice architecture. These raise deployment frequency and reduce MTTR (mean time to recovery), speeding up the delivery of business value.
The DORA (DevOps Research and Assessment) metrics are the standard for measuring DevOps maturity and measure four things: deployment frequency, lead time for changes, change failure rate, and time to restore service. Elite teams deploy multiple times a day and recover within one hour.
# GitHub Actions CI/CD ํ์ดํ๋ผ์ธ ์์
name: DevOps Pipeline
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-test-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# ๋น๋
- name: Build
run: |
docker build -t myapp:${{ github.sha }} .
# ํ
์คํธ
- name: Unit Tests
run: docker run myapp:${{ github.sha }} npm test
- name: Integration Tests
run: |
docker-compose -f docker-compose.test.yml up -d
./run-integration-tests.sh
# ๋ณด์ ์ค์บ
- name: Security Scan
uses: aquasecurity/trivy-action@master
with:
image-ref: myapp:${{ github.sha }}
# ๋ฐฐํฌ (main ๋ธ๋์น๋ง)
- name: Deploy to Production
if: github.ref == 'refs/heads/main'
run: |
kubectl set image deployment/myapp \
myapp=myapp:${{ github.sha }} --record
Team lead: "Taking two weeks to deploy right now is far too long. Let's adopt DevOps and cut the deployment cycle down to days."
Developer: "Should we start by building a CI/CD pipeline and raising test automation coverage?"
Team lead: "That matters too, but let's first establish a Blameless postmortem culture. If people get blamed when an incident happens, they start hiding things."
Interviewer: "As a DevOps engineer, which metric do you consider most important?"
Candidate: "Among the four DORA metrics, I value MTTR the most. Failures are inevitable, so the ability to recover quickly is the core of service stability. That's why I invest in Runbook automation and chaos engineering."
Take a mock interview on this topic โ WIA SOOM AI Interview ยท Start for free
Reviewer: "This PR has only 30% test coverage. It needs at least 80% to enter the automated deployment pipeline."
Developer: "Understood, I'll add unit tests and write integration tests too."