본문 바로가기

전체 글

(220)
[Kubernetes]Install EFK for Kubernetes logging with helm chart in Kubernetes Purpose Install kubernetes logging system with EFK(Elasticsearch + Fluentd + Kibana) 1. Install elasticsearch helm chart How to use helm chart 2022.05.24 - [Container/Kubernetes] - [Kubernetes]Understand how to use helm chart in Kubernetes helm repo add elastic https://helm.elastic.co helm fetch elastic/elasticsearch Create pv first for elasticsearch apiVersion: v1 kind: PersistentVolume metadat..
[Kubernetes]Nginx-Ingress custom errors page 인그레스로 연결된 서비스에 없는 페이지를 호출할 경우(default page) 아래에 작성한 커스텀 에러 페이지를 표출한다 git clone 아래 git에서 소스를 다운 받는다 git clone https://github.com/kenmoini/custom-nginx-ingress-errors.git error page 작성 /www 하위 경로에 error page를 작성 /root/workspace/custom-nginx-ingress-errors/www Docker image build 작성한 error page와 함께 새로운 docker image를 생성한다 docker build -t harbor.ta.net/ta/error-pages:v1.0 . Docker image push custom im..
[Kubernetes]Pull an Image from a Private Registry with Secret in Kubernetes Purpose use private registry with docker-registry secret Create registry secret with command kubectl -n [namespace] create secret docker-registry [secret-name] --docker-server= --docker-username='[your-name]' --docker-password='[your-pword]' --docker-email='[your-email]' [your-registry-server] 은 프라이빗 도커 저장소의 FQDN 주소이다. 도커허브(DockerHub)는 https://index.docker.io/v2/ 를 사용한다. [your-name] 은 도커 사용자의 계정..
[Harbor]Tag retention policy Purpose Delete old images from harbor registry How to use Projects - Policy - TAG RETENTION - ADD RULE EDIT Schedule and Retention runs
[Kubernetes]Understand how to use helm chart in Kubernetes Purpose To understand How to use helm chart in Kubernetes Helm chart directory structure wordpress/ Chart.yaml # A YAML file containing information about the chart LICENSE # OPTIONAL: A plain text file containing the license for the chart README.md # OPTIONAL: A human-readable README file values.yaml # The default configuration values for this chart values.schema.json # OPTIONAL: A JSON Schema f..
[Kubernetes]Install helm in CentOS Purpose Install helm that set resources about kubernetes Install helm [~/workspace/helm]curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 [~/workspace/helm]chmod 700 get_helm.sh [~/workspace/helm]./get_helm.sh Downloading https://get.helm.sh/helm-v3.4.2-linux-amd64.tar.gz Verifying checksum... Done. Preparing to install helm into /usr/local/bin helm ..
[Python]Pandas Dataframe 란? + 기본 사용법 Concept pands 라이브러리의 테이블형 데이터를 다루는 함수 데이터 분석/머신 러닝에서 데이터 처리를 위해 주로 사용 2차원이기 때문에 엑셀과 같이 각 데이터가 row, column으로 구성되며, 인덱스도 row, column 각각 존재한다. 행의 레이블 → 인덱스 열의 레이블 → 칼럼 사용 방법 Dataframe - Create ## create df df = pd.DataFrame({ "bench": [175, 185, 195], "squat": [325, 335, 355], "dead": [345, 355, 365] }) print(df) ## create df with index df = pd.DataFrame({ "bench": [175, 185, 195], "squat": [325, 3..
[Python]Pandas Series 란? + 기본 사용법 Pandas Series 란? pandas 라이브러리의 1차원 데이터를 다르는 함수 index와 value로 구성 index 값 또는 index 번호로 value를 가리킬 수 있다. 사용 방법 - CRUD Series - Create import pandas as pd ## create Series szdata = pd.Series([11,22,33]) print(szdata) ## index 변경 szdata2 = pd.Series([11,22,33], index=['A','B','C']) print(szdata2) >>> 0 11 1 22 2 33 dtype: int64 A 11 B 22 C 33 dtype: int64 index는 행의 레이블을 의미함 index를 지정하지 않으면 0부터 시작하는 인..