Skip to content

Commit

Permalink
Added
Browse files Browse the repository at this point in the history
  • Loading branch information
shclub committed Sep 29, 2022
1 parent 1bfed85 commit a2768f6
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 1 deletion.
1 change: 0 additions & 1 deletion argocd_hands_on.md
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,6 @@ github 에 적용이 되면 ArgoCD로 이동을 하여 Sync를 하고 이미지
<img src="./assets/kustomize_argocd_dev4.png" style="width: 60%; height: auto;"/>
<br/>
Expand Down
10 changes: 10 additions & 0 deletions chapter1.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ Docker에 대해서 자세한 설명과 함께 Jenkins CI 구성 요소인 Git

<br/>


### Docker 란 ?


<br/>

> 도커 소개 : https://youtu.be/tPjpcsgxgWc
<br/>

소개 및 배경
Expand Down Expand Up @@ -108,6 +114,10 @@ ssh root@(본인 Public ip)

<br/>

> 도커 설치 : https://youtu.be/w8EVLx1_xY0
<br/>

#### 패키지 인덱스 업데이트

<br/>
Expand Down
4 changes: 4 additions & 0 deletions chapter3.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ kubernetes 는 FlyingCube 2.0 ( OKD 4.7 ) 로 실습을 진행하다.

참고 : https://subicura.com/k8s/

<br/>

> kubernetes 소개 : https://youtu.be/Ia8IfowgU7s
<br/>

<br/>

Expand Down
40 changes: 40 additions & 0 deletions k8s_basic_hands_on.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,46 @@ flask-edu4-app-74788b6479-rlght 1/1 Running 0 24m app=flask-e

<br/>

### yaml 화일 쉽게 만드는 방법


<br/>

명령을 사용하여 yaml 화일을 만드는 방법은 dry-run 옵션을 사용한다.

dry-run=client 를 사용하면 실제 서버에 수행되지는 않고 simulation만 진행 한다.

```bash
root@newedu:~/# kubectl run edu-test --image=nginx --env DB=mysql
pod/edu-test created (dry run)
```

<br/>

-o yaml 옵션을 사용하여 yaml 화일을 볼수 있고 화일로도 저장할수 있다.

```bash
root@newedu:~/# kubectl run edu-test --image=nginx --env DB=mysql --dry-run=client -o yaml
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
run: edu-test
name: edu-test
spec:
containers:
- env:
- name: DB
value: mysql
image: nginx
name: edu-test
resources: {}
dnsPolicy: ClusterFirst
restartPolicy: Always
status: {}
```

<br/>

## kubernetes 리소스
Expand Down

0 comments on commit a2768f6

Please sign in to comment.