전체 글
-
nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)Kubernetes 2024. 5. 21. 17:49
파드를 띄워놓고, 서비스에 할당된 외부 ip에 접근하려고 했지만ping을 찍어보니 이렇게 호스트를 찾을 수 없다고 한다.도커 허브에 있는 echo server로 변경을 해봤는데, 그때는 잘 들어가 있는 걸 보면 내가 설정한 yaml 파일 혹은 더 하위 개념으로 dockerfile에 문제가 있다고 판단했고 확인 결과다음과 같은 에러가 발생했다.컨테이너를 로컬에 띄우면 이상없이 잘 되는 것 같은데.. 흠 ---하다보니 was 부분은 DB 연결이 되었는데...! 왜 Web만 되지 않는것인가.. ㅠㅜ아마도 도커파일을 전적으로 수정해야 될 것 같다.. WAS -> DB(Azure) Mysql 서버 --> Private DNS Zone --> Virtual network links에 링크 추가 --> 링크에 k8..
-
[Trouble Shooting] AKS 연결 안됨Kubernetes 2024. 5. 20. 19:47
k8s 클러스터 구축 중에, service 배포 후 할당된 외부 IP 접속이 안되어 문제가 발생했다. 대략적으로, AKS 배포 진행 단계는 다음과 같다.Dockerfile 작성이미지 빌드Azure 포탈 내 Container Registry 생성Container Registry 로그인Docker tag -> docker pushK8s cluster 생성Cli에서 명령어 가져와 Cluster 연결컨테이너 띄우고 yaml 파일 작성후 배포(Deployment -> Service)Sevice 배포 단계에서 외부 IP 획득 여러 방면으로 생각을 해봐야할텐데...traceroute 결과 msn.net 홉을 거친 이후 timeout이 발생하는 것을 볼 수 있다. 원인은 총 2가지다.첫째로, 내가 만든 WEB Dep..
-
1039.교환Programmers 2024. 5. 19. 15:22
테스트 코드는 모두 통과했으나 , 반례를 못찾아서 풀지 못한 문제다..# 무조건 k번 수행해야 함# input : n, k / output : k번 바꾸어 나올 수 있는 최댓값n, k = input().split()number = list(n)k = int(k)# 자릿수가 1자리이거나, 뒷자리에 0만 포함되어 있을 시if len(number) == 1 or set(number) == {number[0], '0'}: result = -1 print(result)else: idx = 0 # 1~i 내림차순 진행 # i~k 내림차순으로 정렬되어 있을 경우, 남은 횟수(k-i)만큼 가장 작은 두 수끼리 교환 while (idx 0): max_idx = idx ..
-
Kubernetes가 사용되는 이유Kubernetes 2024. 5. 8. 10:15
이 내용은 를 참고해 작성하였습니다.Kubernetes란?통합적인 인프라 관리, 버전 관리를 위한 도구클라우드 컴퓨팅의 핵심 기술 중 하나 CNI/CSI : 컨테이너 네트워킹/스토리지 인터페이스로, 각각 쿠버네티스에서 실행되는 파드에 대한 플러그형 네트워킹과 스토리지를 가능하게 한다Container : 도커 및 OCI 이미지. 일반적으로 애플리케이션을 실행한다.Control Plane : 컨테이너의 스케줄링과 모든 쿠버네티스 객체의 관리가 이루어지는 곳\DaemonSet : 디플로이먼트와 유사하나, 클러스터의 모든 노드에서 실행된다Deployment : 쿠버네티스에서 관리되는 파드의 모음이다Kubectl : 쿠버네티스 컨트롤 플레인과 통신하기 위한 명령행 도구Kubelet : 클러스터 노드에서 실행되는 ..
-
Default RouteNetwork 2024. 5. 3. 13:26
LoopbackA 네트워크 : 0.0.0.0 ~127.255.255.255A 네트워크에서 마지막 네트워크인 127.0.0.0 네트워크와 127.0.0.1~127.255.255.255은 컴퓨터 박사, 과학자들이 가상의 인터페이스(데이터 전송 통로)에 사용하기 위해 예약해 놓은 주소이다.Loopback I/F는 내 컴퓨터에서 나간 신호가 다시 내 컴퓨터로 돌아오기 때문에 붙여진 이름이다.데이터가 흐르는 통로에 데이터를 보내면 어느 목적지에 도달한다.컴퓨터가 라우터로 이어진 이더넷 인터페이스(통상적으로 IP 주소)로 데이터를 보내면 Gateway인 Router에 도달한다.루프백 인터페이스로 데이터를 보낼 시 자기 컴퓨터로 돌아온다. Loopback 주소를 사용하는 이유프로그램에 다른 컴퓨터 IP 주소를 적어 ..
-
GlobalEventBus ?Data Engineer 2024. 5. 2. 14:40
Global Event Bus : 소프트웨어 개발에서 사용하는 디자인 패턴 중 하나애플리케이션 전반에서 이벤트를 전파하고 처리하기 위한 중앙 집중식 이벤트 버스를 구현컴포넌트 간 통신을 단순화하고 애플리케이션의 유연성을 향상1. Publishing Events : 어떤 컴포넌트든지 이벤트를 GlobalEventBus에 발행할 수 있다.Ex . 사용자가 버튼을 클릭하면 해당 이벤트를 GlobalEventBus에 발행2. Subscribing to Events : GlobalEventBus를 통해 특정 이벤트에 대해 구독할 수 있다.이를 통해 여러 컴포넌트가 동일한 이벤트에 반응하도록 할 수 있음3. Event Handling : 발행된 이벤트를 수신하고 처리할 수 있는 메커니즘을 제공이를 통해 이벤트를 발..
-
4월 2주차 짧은 지식 - 포트 포워드, 선점형/비선점형 스케줄링Intern 2024. 4. 22. 08:59
포트 포워드 외부 접속을 위해서는 외부의 기기가 내부에 있는 컴퓨터나 서버가 연결된 공유기를 통과해야 함 공유기 —> 방화벽 역할을 하기 때문에 내부 컴퓨터에 접근이 가능하도록 하려면 특정 포트를 열어줘야 함 포트 포워드 외부 기기에는 고정된 IP만 전달하고 외부 기기가 내부에 접근할 수 있도록 내부의 공유기 관리자에서 설정하는 과정 허가된 포트로 접근한 외부 사용자만이 서버 PC로 접근이 가능하다 Port Forward Example 인터넷을 통해 192.168.0.1 접속 설정된 관리자 암호로 접속 관리자 도구 -> 메뉴 탐색기 -> 기본 설정 -> 시스템요약정보에서 외부 IP 주소 확인 고급설정 -> NAT/Router 관리 -> 포트포워드 설정 진입 라운드 로빈, Round Robin - 시분할 ..
-
14503. 로봇 청소기Programmers 2024. 4. 21. 19:59
https://www.acmicpc.net/problem/14503 # output: 청소하는 영역의 개수 # N * M # 동서남북 # 반시계 방향으로 90도 회전 # dfs def dfs(x, y, d): global count # 방향 : 북 / 동 / 남 / 서 # direction = [0, 1, 2, 3] dx = [-1, 0, 1, 0] dy = [0, 1, 0, -1] if not visited[x][y]: visited[x][y] = 1 # 아직 청소되지 않은 경우, 현재 칸을 청소한다. if graph[x][y] == 0: graph[x][y] = 1 count += 1 aldy_cln = 0 for i in range(4): nx, ny = x + dx[i], y + dy[i] if ..