전체 글

경험 정리용 연습장
우분투

[우분투] 구글 드라이브 마운트

1. 크롬이 설치되어 있지 않은 경우 1.1. 설치 파일 다운로드 wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb 1.2. 설치 sudo apt install -y ./google-chrome-stable_current_amd64.deb 2. 구글 드라이브 마운트 2.1. FUSE filesystem over Google Drive 설치 sudo add-apt-repository ppa:alessandro-strada/ppa sudo apt-get update sudo apt-get install google-drive-ocamlfuse 2.2 마운트 대상이 될 폴더 생성 및 인증 mkdir ~/gdrive go..

우분투

[우분투] 인피니밴드 드라이버 설치 및 IP 할당

인피니밴드 드라이버 설치 1. [master, worker] 인피니밴드 컨트롤러 확인: lspci | grep -i mellanox 2. [master, worker] 공식 홈페이지(Linux InfiniBand Drivers)에서 OS 및 컨트롤러 버전에 맞는 드라이버(MLNX_OFED)를 다운로드 3. [master, worker] 압축 해제 tar xvf MLNX_OFED_LINUX-5.8-3.0.7.0-ubuntu22.04-x86_64.tgz 4. [master, worker] 설치 4.1. 폴더 내부로 이동 cd MLNX_OFED_LINUX-5.8-3.0.7.0-ubuntu22.04-x86_64 4.2. force 옵션을 추가하여 드라이버 설치에 필요한 패키지 설치 및 펌웨어 업데이트도 같이 진..

도커

[도커] 컨테이너 SSH 포트 변경 및 확인

방법 1. config 수정 1. openssh-server가 설치되어있고 /etc/ssh/sshd_config를 수정하지 않았다면 아래 명령어로 수정 가능 sed -i 's/^#Port 22$/Port {target_port}/' /etc/ssh/sshd_config 2. 컨테이너 실행 시 아래 커맨드를 docker-compose.yaml에 포함시키면 됨 "command": [ "/bin/bash", "-c", "sed -i 's/^#Port 22$/Port {target_port}/' /etc/ssh/sshd_config && /usr/sbin/sshd && sleep infinity", ] 방법 2. ssh 실행 시 포트 지정 1. 컨테이너 실행 시 아래 커맨드를 docker-compose.yaml..

쿠버네티스

[쿠버네티스] 링커디 그라파나 연동 에러

문제 상황 linkerd의 도큐먼트를 따라 linkerd-viz 및 grafana를 설치 후 linkerd-viz 대시보드에서 grafana 아이콘이 뜨는 것을 확인했지만 막상 grafana를 열어보면 메트릭들이 N/A만 나오는 상황 linkerd-prometheus의 로그를 확인 시 unauthorized connection on server proxy-admin라고 나옴 해결 아래의 리소스를 추가해주니 해결됨 apiVersion: policy.linkerd.io/v1beta1 kind: ServerAuthorization metadata: name: yolo namespace: linkerd-viz spec: client: unauthenticated: true networks: - cidr: 0.0..

쿠버네티스

[쿠버네티스] 서비스 어카운트 생성 및 파드 내부에서 사용

1. 서비스 어카운트 야믈 생성 (yamls/for_sa/create-sa.yaml) apiVersion: v1 kind: ServiceAccount metadata: name: test-sa namespace: default automountServiceAccountToken: true automountServiceAccountToken: true --> 서비스 어카운트를 명시하면서 파드를 생성 시 명시된 서비스 어카운트의 토큰이 자동으로 파드에 마운트됨 2. 롤 야믈 생성 (yamls/for_sa/pod-reader-role.yaml) apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: pod-reader namespace: def..

IntegerString
코딩 연습장