# nginx pod, service 배포

{% embed url="<https://youtu.be/efBlfbCMRfs?t=1>" %}

## 생성

왼쪽 위에 있는 \[new APP]버튼을 클릭합니다.

![](/files/aKlGE8DGAdg3W4wnJk1o)

아래 그림과 같이 ①, ②, ③필드를 설정합니다. ①, ②, ③번에 대한 자세한 내용은 다른 글에서 다룹니다.

![](/files/5PIJphnJ8qAl9Syu8qoS)

ArgoCD가 동기화 할 git정보를 선택합니다. 제 github repo의 main브랜치를 사용했습니다. helloworld 예제에 사용할 폴더는 example-1입니다.

* git url:<https://github.com/choisungwook/argocd-practice.git>

![](/files/g6fqshXm8qXWyMkLJ653)

![](/files/AhEiDXfAyFVhoXQcyi6m)

그 다음, 어디 쿠버네티스 클러스터에 동기화 할지 클러스터 정보를 입력합니다.

![](/files/EJB7nZcACHqGvb3E66Jj)

다 입력 후에 오른쪽 위에 있는 \[Create]버튼을 클릭합니다.

![](/files/6RWyza0rcKAac1qonT8C)

## 동기화

helloworld application이 생성되었습니다. 아직 동기화 작업을 하지 않아 노란색으로 표시됩니다. 생성 단계 ③과정에서 수동(Manual)을 선택했기 때문에 저희가 직접 동기화를 해야합니다.

![](/files/d7rHzaTIpkqemOuh1KIz)

helloworld를 클릭하면 상세페이지로 이동됩니다.

![](/files/JIES7dYMnMwMbkH0L9IK)

\[sync]버튼을 눌러서 동기화를 진행합니다.

![](/files/48KC5CuE2AYqLtqVcQM7)

## 동기화 확인

동기화가 완료되면 왼쪽 위에 Healthy와 Synced글씨가 보입니다. 그리고 대시보드에 pod, service리소스가 보입니다.

![](/files/ISwEs4X9ujVjPhDjOWvH)

동기화된 리소스는 kubectl로 확인할 수 있습니다.

```
kubectl get po,svc | grep helloworld
```

![](/files/86Bdh9xoPFdwWqCSF7gX)

## 삭제

동기화 한 리소스를 삭제해보겠습니다.

&#x20;

WEB UI 상단 메뉴에서 \[Delete]버튼을 클릭합니다.

![](/files/yuGqnyAZnQkEqm3Xhqqp)

그리고 생성 단계 ①에서 입력했던 application이름을 입력하고 \[OK]버튼을 클릭합니다.

![](/files/6Fy0fV9QROgsyGNr6FOH)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sungwook-choi.gitbook.io/argocd/argo-cd-helloworld/nginx-pod-service.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
