[Daily Post] 221111
[Daily Post]는 매일매일 탐구한 내용을 간략하게 기록하는 포스트입니다.
따라서 정리되지 않은 내용과 추측을 포함하고 있을 수 있습니다.
더 체계적인 형식을 갖춘 글은 해당 카테고리의 포스트를 확인해주세요 :)
Daily Study
Kubernetes
- an open-source system for automating deployment, scaling, and management of containerized applications
- a portable, extensible, open source platform for managing containerized workloads and services, that facilitates both declarative configuration and automation
-
also known as K8s (k랑 s 사이에 8글자가 있어서.)
- Deployment eras
- Traditional
- run app on physical servers –> no way to define resource boundaries –> caused resource allocation issues
- Virtualized
- run multiple VM, on a single phyiscal server’s CPU.
- provide a level of security: as the information of one application cannot be freely accessed by another application
- allow better scalability: an application can be added or updated easily.
- each VM is a full machine: runs all the components including own OS
- Container
- lightweight: use a single OS among the application
- agile application creation and deployment
- continuous development, integration and deployment: provides for reliable and frequent container image build.
- dev and ops separation of conecerns: create application container images at build/release, rather than deployment time
- observability: not only OS-lvel, application health and other signals
- environmental consistency: run on a laptop using cloud
- cloud and os distribution portability: run on ubuntu, major public clouds
- application-centric managment
- loosely coupled, distributed, elastic, liberated micro services
- resource isolation, utilization
- Traditional
Docker
Web2 - JavaScript
- JS는 HTML을 디자인하는 언어이다. HTML 위에서 작동한다. 어떻게 언어 위에 다른 언어를 이식시킬 수 있나?
- <script> 태그로 열고 닫고, 태그 안에 JS를 입력할 수 있다.
<script> document.write(1+1); </script> - 헤더 태그 (<h1>)로 열고 닫고, 이 태그 안에 값을 입력하는 것과 무엇이 다른가?
- JS는 HTML과 다르게 동적이다.
- 웹 브라우저에서 발생하는 액션을 event라고 한다.
- event - onclick이 발생했을 때 ‘hi’라는 경고 메세지를 반환하게 하는 코드
<body> <input type="button" value="hi" onclick="alert('hi')"> </body> - onclick 외에도 onchange, onkeydown 등 10~20개의 event가 있다.
- event - onclick이 발생했을 때 ‘hi’라는 경고 메세지를 반환하게 하는 코드
- <script> 태그로 열고 닫고, 태그 안에 JS를 입력할 수 있다.
- 오늘은 여기까지