# Container 설치 가이드

## Table of Contents

1. [개요](#1) &#x20;
2. [PaaS-TA Container service 설치](#2) &#x20;
3. [PaaS-TA Container service 설치 완료 확인](#3) &#x20;
4. [Kubernetes Prometheus Pods 정보 확인](#4) &#x20;
5. [prometheus-prometheus-prometheus-oper-prometheus-0 POD Node IP 확인](#5) &#x20;
6. [Kubernetes API URL(serverAddress) 확인](#6) &#x20;
7. [Kubernetes API Request 호출시 Header(Authorization) 인증을 위한 Token값 확인](#7) &#x20;

## 1. 개요

본 문서는 PaaS-TA Monitoring을 설치하기 앞서 PaaS-TA의 Container Log 수집을 위하여 BOSH 2.0을 이용하여 Container를 설치하고 Monitoring에 작성할 값을 확인하는 방법을 기술하였다.

## 2.    PaaS-TA Container service 설치

[PaaS-TA Container service 설치 가이드](https://paastaguide.gitbook.io/paas-ta-5-5-0/guide-5.5.0-semini/service-guide/tools/paas-ta_container_service_install_guide_v2.0)

## 3.    PaaS-TA Container service 설치 완료 확인

![](https://3634999585-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUwPz1AA_o-VOi2V3xJ%2Fsync%2F443b25a3022cdf69726915f49c6ca33cc3ecedc3.png?generation=1614847803727424\&alt=media)

## 4.    Kubernetes Prometheus Pods 정보 확인

```
$  bosh -e {director_name} ssh -d paasta-container-service master
$  /var/vcap/packages/kubernetes/bin/kubectl get pods --all-namespaces -o wide
```

![](https://3634999585-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUwPz1AA_o-VOi2V3xJ%2Fsync%2F548d77e865e85b1a4c34b28f7b317e826dd0f431.png?generation=1614847804512859\&alt=media)

## 5.    prometheus-prometheus-prometheus-oper-prometheus-0 POD Node IP 확인

```
$  /var/vcap/packages/kubernetes/bin/kubectl get nodes -o wide
```

![](https://3634999585-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUwPz1AA_o-VOi2V3xJ%2Fsync%2F1033ccff402a8b0df7863e11c489312eb6aef19c.png?generation=1614847804070495\&alt=media)

### 6.    Kubernetes API URL(serverAddress) 확인

```
$  curl localhost:8080/api
```

![](https://3634999585-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUwPz1AA_o-VOi2V3xJ%2Fsync%2F87a1e9b28d30637c827d6044a7f6a700cd47cdb8.png?generation=1614847805137921\&alt=media)

## 7.    Kubernetes API Request 호출시 Header(Authorization) 인증을 위한 Token값 확인

```
$  /var/vcap/packages/kubernetes/bin/kubectl -n kube-system describe secret $(/var/vcap/packages/kubernetes/bin/kubectl -n kube-system get secret | grep monitoring-admin | awk '{print $1}')
```

![](https://3634999585-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUwPz1AA_o-VOi2V3xJ%2Fsync%2F5b3f3634423ed9d93b7288f385f152c28c46f125.png?generation=1614847804578115\&alt=media)
