Skip to content

Commit

Permalink
[ko] Update outdated files in dev-1.26.-ko.1 [M14-17]
Browse files Browse the repository at this point in the history
  • Loading branch information
bugoverdose committed May 26, 2023
1 parent cb71d71 commit 3fa815f
Show file tree
Hide file tree
Showing 5 changed files with 133 additions and 73 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: 쿠버네티스 시스템 컴포넌트에 대한 추적(trace)
# - logicalhan
# - lilic
content_type: concept
weight: 60
weight: 90
---

<!-- overview -->
Expand Down
41 changes: 1 addition & 40 deletions content/ko/docs/concepts/configuration/configmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,46 +111,7 @@ data:

다음은 `game-demo` 의 값을 사용하여 파드를 구성하는 파드 예시이다.

```yaml
apiVersion: v1
kind: Pod
metadata:
name: configmap-demo-pod
spec:
containers:
- name: demo
image: alpine
command: ["sleep", "3600"]
env:
# 환경 변수 정의
- name: PLAYER_INITIAL_LIVES # 참고로 여기서는 컨피그맵의 키 이름과
# 대소문자가 다르다.
valueFrom:
configMapKeyRef:
name: game-demo # 이 값의 컨피그맵.
key: player_initial_lives # 가져올 키.
- name: UI_PROPERTIES_FILE_NAME
valueFrom:
configMapKeyRef:
name: game-demo
key: ui_properties_file_name
volumeMounts:
- name: config
mountPath: "/config"
readOnly: true
volumes:
# 파드 레벨에서 볼륨을 설정한 다음, 해당 파드 내의 컨테이너에 마운트한다.
- name: config
configMap:
# 마운트하려는 컨피그맵의 이름을 제공한다.
name: game-demo
# 컨피그맵에서 파일로 생성할 키 배열
items:
- key: "game.properties"
path: "game.properties"
- key: "user-interface.properties"
path: "user-interface.properties"
```
{{< codenew file="configmap/configure-pod.yaml" >}}

컨피그맵은 단일 라인 속성(single line property) 값과 멀티 라인의 파일과 비슷한(multi-line file-like) 값을
구분하지 않는다.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,10 @@ kubelet은 로컬 임시 스토리지가 아닌 컨테이너 메모리 사용으
`tmpfs` emptyDir 볼륨을 추적한다.
{{< /note >}}

{{< note >}}
kubelet은 임시 스토리지을 위해 오직 루트 파일시스템만을 추적한다. `/var/lib/kubelet` 혹은 `/var/lib/containers`에 대해 별도의 디스크를 마운트하는 OS 레이아웃은 임시 스토리지를 정확하게 보고하지 않을 것이다.
{{< /note >}}

### 로컬 임시 스토리지에 대한 요청 및 제한 설정

`ephemeral-storage`를 명시하여 로컬 임시 저장소를 관리할 수 있다.
Expand All @@ -343,6 +347,7 @@ Ei, Pi, Ti, Gi, Mi, Ki와 같은 2의 거듭제곱을 사용할 수도 있다.
각 컨테이너에는 2GiB의 로컬 임시 스토리지 요청이 있다.
각 컨테이너에는 4GiB의 로컬 임시 스토리지 제한이 있다.
따라서, 파드는 4GiB의 로컬 임시 스토리지 요청과 8GiB 로컬 임시 스토리지 제한을 가진다.
이 제한 중 500Mi까지는 `emptyDir` 볼륨에 의해 소진될 수 있다.

```yaml
apiVersion: v1
Expand Down Expand Up @@ -373,7 +378,8 @@ spec:
mountPath: "/tmp"
volumes:
- name: ephemeral
emptyDir: {}
emptyDir:
sizeLimit: 500Mi
```

### `ephemeral-storage` 요청이 있는 파드의 스케줄링 방법
Expand Down
Loading

0 comments on commit 3fa815f

Please sign in to comment.