Source - https://www.openmaru.io/?p=3228
쿠버네티스를 이해하기 위해서 반드시 알아야 하는 개념이 불변의 인프라스트럭처 입니다.
불변과 가변의 인프라스트럭처에서 서버 운영 방법을 비교하여 개념과 장점을 설명 드립니다.
이제 IT 환경이 왜 머신 중심에서 애플리케이션 중심으로 전환되고 있는지에 대해서 살펴보겠습니다.
불변의 인프라는 고급 도자기 찻잔과 비유 될 수 있습니다.
일회용 종이컵은 한번 쓰면 버리고, 구매하는데도 큰 부담이 없습니다.
하지만 고급 도자기 찻잔은 어떨까요?애지중지 관리하며 깨지면 모든 것이 끝나게 됩니다.
5. 04. Jan 01. Feb
Mutable
Infrastructure
( In-Place )
가변 vs. 불변 인프라스트턱쳐 운영 방법 비교
Physical/Virtual Machine
Apache 2.4
• Download
• Compile
• Configuration
change
admin
Hard Disk
Physical/Virtual Machine
Apache 2.4
+
Vulnerability
• httpd.conf
• ssl.conf
• ….
change
admin
Hard Disk
21. Feb
Physical/Virtual Machine
Apache 2.4
+
Tuning
• mod_jk.conf
• process/thread
• timeout secs
change
admin
Hard Disk
6. 04. Jan 01. Feb
Mutable Infrastructure
( In-Place )
가변 vs. 불변 인프라스트턱쳐 운영 방법 비교
Physical/Virtual Machine
Apache 2.4
• Download
• Compile
• Configuration
change
admin
Hard Disk
Physical/Virtual Machine
Apache 2.4
+
Vulnerability
• httpd.conf
• ssl.conf
• ….
change
admin
Hard Disk
21. Feb
Physical/Virtual Machine
Apache 2.4
+
Tuning
• mod_jk.conf
• process/thread
• timeout secs
change
admin
Hard Disk
Physical/Virtual Machine
Apache 2.4
Create &
Change
Physical/Virtual Machine
Apache 2.4
1st N
….
admin
04. Mar – Production go live
7. 04. Jan 01. Feb
Mutable Infrastructure
( In-Place )
가변 vs. 불변 인프라스트턱쳐 운영 방법 비교
Physical/Virtual Machine
Apache 2.4
• Download
• Compile
• Configuration
change
admin
Hard Disk
Physical/Virtual Machine
Apache 2.4
+
Vulnerability
• httpd.conf
• ssl.conf
• ….
change
admin
Hard Disk
21. Feb
Physical/Virtual Machine
Apache 2.4
+
Tuning
• mod_jk.conf
• process/thread
• timeout secs
change
admin
Hard Disk
Physical/Virtual Machine
Apache 2.4
Create &
Change
Physical/Virtual Machine
Apache 2.4
1st N
….
admin
04. Mar – Production go live
Immutable
Infrastructure
( Replace)
Apache 2.4
Deploy
Image
build
DevOps 팀
8. 04. Jan 01. Feb
Mutable Infrastructure
( In-Place )
가변 vs. 불변 인프라스트턱쳐 운영 방법 비교
Physical/Virtual Machine
Apache 2.4
• Download
• Compile
• Configuration
change
admin
Hard Disk
Physical/Virtual Machine
Apache 2.4
+
Vulnerability
• httpd.conf
• ssl.conf
• ….
change
admin
Hard Disk
21. Feb
Physical/Virtual Machine
Apache 2.4
+
Tuning
• mod_jk.conf
• process/thread
• timeout secs
change
admin
Hard Disk
Physical/Virtual Machine
Apache 2.4
Create &
Change
Physical/Virtual Machine
Apache 2.4
1st N
….
admin
04. Mar – Production go live
Immutable
Infrastructure
( Replace)
Apache 2.4
Deploy
Image
build
DevOps 팀 DevOps팀
Apache 2.4
+
Vulnerability
Disposable
Deploy
Image
build
9. 04. Jan 01. Feb
Mutable Infrastructure
( In-Place )
가변 vs. 불변 인프라스트턱쳐 운영 방법 비교
Physical/Virtual Machine
Apache 2.4
• Download
• Compile
• Configuration
change
admin
Hard Disk
Physical/Virtual Machine
Apache 2.4
+
Vulnerability
• httpd.conf
• ssl.conf
• ….
change
admin
Hard Disk
21. Feb
Physical/Virtual Machine
Apache 2.4
+
Tuning
• mod_jk.conf
• process/thread
• timeout secs
change
admin
Hard Disk
Physical/Virtual Machine
Apache 2.4
Create &
Change
Physical/Virtual Machine
Apache 2.4
1st N
….
admin
04. Mar – Production go live
Immutable Infrastructure
( Replace) Apache 2.4
Deploy
Image
build
DevOps 팀 DevOps팀
Apache 2.4
+
Vulnerability
Disposable
Deploy
Image
build
Disposable Apache 2.4
+
Tuning
Deploy
Image
build
DevOps팀
10. 04. Jan 01. Feb
Mutable Infrastructure
( In-Place )
가변 vs. 불변 인프라스트턱쳐 운영 방법 비교
Physical/Virtual Machine
Apache 2.4
• Download
• Compile
• Configuration
change
admin
Hard Disk
Physical/Virtual Machine
Apache 2.4
+
Vulnerability
• httpd.conf
• ssl.conf
• ….
change
admin
Hard Disk
21. Feb
Physical/Virtual Machine
Apache 2.4
+
Tuning
• mod_jk.conf
• process/thread
• timeout secs
change
admin
Hard Disk
Physical/Virtual Machine
Apache 2.4
Create &
Change
Physical/Virtual Machine
Apache 2.4
1st N
….
admin
04. Mar – Production go live
Immutable Infrastructure ( Replace)
Apache 2.4
Deploy
Image
build
DevOps 팀 DevOps팀
Apache 2.4
+
Vulnerability
Disposable
Deploy
Image
build
Disposable
Apache 2.4
+
Tuning
Deploy
Image
build
DevOps팀
Disposable
Apache 2.4
Production
Apache 2.4
Production
1st N
….
Deploy
Image
build
DevOps팀
11. • 컨테이너화는 데이터 센터를 머신 중심에서 애플리케이션 중심으로 전환
• 개발자와 운영팀에게 서버와 운영 환경에 대한 세부 사항을 추상화
• 운영 중인 애플리케이션과 개발자에 미치는 영향을 최소화하면서 새로운 하드웨어 또는 운영 환경을
업그레이드하여 인프라팀에게 유연성을 제공
• 서버의 CPU와 메모리 정보 뿐만 아니라 애플리케이션과 관련한 매트릭을 연결하여 오토 스케일링
머신 중심에서 애플리케이션 중심 인프라로 변화
Machine Centric
Infrastructure
Application Centric
Infrastructure