본문 바로가기

전체 글

(4536)
Kubernetes에 Ingress controller를 nginx로 설정하는법 Kubernetes에서 Nginx Ingress Controller를 사용하여 Ingress 리소스를 통해 클러스터 내의 서비스에 대한 외부 라우팅 및 액세스를 구성할 수 있습니다. 다음은 Nginx Ingress Controller를 설치하고 설정하는 기본 단계입니다: Ingress Controller 설치:a. Helm을 사용하여 Nginx Ingress Controller를 설치하는 경우, 다음 명령을 실행합니다:b. Helm을 사용하지 않는 경우, 해당 클라우드 또는 환경에 맞는 설치 가이드를 따릅니다. 자세한 내용은 Nginx Ingress Controller의 공식 문서를 참조하세요. bashCopy code helm repo add ingress-nginx https://kubernetes...
Windows에서 PowerShell로 K8 Cli설치하기(Chololatey) Windows에서 Helm을 설치하려면 다음 단계를 따를 수 있습니다. Helm을 설치하는 데는 Chocolatey를 사용할 수 있습니다. Chocolatey 설치: 먼저 Chocolatey를 설치합니다. PowerShell을 관리자 권한으로 실행하고 다음 명령을 실행합니다.Chocolatey 설치 후, PowerShell을 다시 시작하여 Chocolatey 명령을 사용할 수 있도록 환경 변수를 갱신합니다. powershellCopy code Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityPro..
Elasticsearch Monitoring Tool https://elasticvue.com/ Elasticvue - Elasticsearch gui for the browser Elasticvue is a free and open-source elasticsearch gui for the browser elasticvue.com
비공식적인 Bard Api사용하기 Python코드로 아래와 같이 작성하면 된다 쿠키값은 각각 아래와 같이 찾으면 된다 F12 > Applications > Cookies > bard > __Secure-1PSID, __Secure-1PSIDTS from bardapi import BardCookies def getbard(): cookie_dict = { "__Secure-1PSID": "xxx", "__Secure-1PSIDTS": "xxx",} bard = BardCookies(cookie_dict=cookie_dict) print(bard.get_answer("양자역학에 대해 간단하게 알려줘")['content']) # getbard 함수의 내용을 구현해주세요. def main(): # main 함수 내부에서 getbard 함수를 ..
springboot userIp 0:0:0:0:0:0:0:1 일때 intellij 셋팅 Edit Configuration > Modify options > Add VM options -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true 옵션 추가
Docker Container안에 Ubuntu 그리고 안에 Docker 좀 해야할 일이 있어서 Docker Container안에 ubuntu를 설치하고 ubuntu안에 Docker를 또 설치하는 일이 있었다. 참 어려웠다 일단 ubuntu 이미지를 받아서 docker run -it --privileged ubuntu 위의 명령어로 컨터이너를 만들고 쉘로 진입한다. 진입하고 아래의 블로그로 docker를 설치한다. https://haengsin.tistory.com/128 Ubuntu 에 Docker 설치 실행환경 Ubuntu 22.04 Docker 설치방법 1. 우분투 시스템 패키지 업데이트 sudo apt-get update 2. 필요한 패키지 설치 sudo apt-get install apt-transport-https ca-certificates curl gnupg-a..
Keycloak과 SpringBoot의 Role을 사용하려면 Realm 선택 > Roles > Add Role Spring Boot에 Security Config에 특정 url에 Role을 적용하려면 http .authorizeRequests() .antMatchers("/","/login","/api/login").permitAll() .antMatchers("/api/**").hasRole("USER") 이렇게 놓고 아래의 Controller에 hasRole을 넣는다 @RequestMapping("/list") @PreAuthorize("hasRole('USER')") public ResponseEntity list(@RequestBody Map input,@AuthenticationPrincipal UserDto loginUser) { List result ..
Keycloak에서 Clients생성