전체 글 (297) 썸네일형 리스트형 kubernetes kubectl 명령어 모음 여기 있는 내용은 모두 아래 공식 한글 문서의 내용임. 운영자가 아닌 사용자 입장에서 많이 쓰는 명령어 위주로 정리 https://kubernetes.io/ko/docs/reference/kubectl/overview/ kubectl 개요 Kubectl은 쿠버네티스 클러스터를 제어하기 위한 커맨드 라인 도구이다. 구성을 위해, kubectl 은 config 파일을 $HOME/.kube 에서 찾는다. KUBECONFIG 환경 변수를 설정하거나 --kubeconfig 플래그를 설정하여 kubernetes.io kubectl은 kubernetes cluster를 제어하기 위한 command line tool이다. config file은 $HOME/.kube에서 찾으며 KUBECONFIG 환경 변수를 설정하거나.. jenkins execute shell 에서 사용할 수 있는 환경 변수 목록 확인 jenkins의 shell script에서 다양한 작업을 할 수 있다. 예를 들면 다음과 같이 호출하여 실행 중인 job 이름 확인이 가능하다. echo ${JOB_NAME} 아래와 같이 출력이 된다. 현재 실행 중인 jenkins job에 대해 실행 id, 실행 또는 git을 호출한 경우 git commit 정보 등을 가져와 별도의 처리를 한다거나 현재 job이 실행 중인 위치를 기준으로 이동을 한다거나 등등 다양한 작업을 하기 위해 환경 변수를 사용해야 한다. 이런 환경 변수가 어떤 값이 있는지에 대한 목록을 jenkins가 제공해주는데 execute shell 입력 부분 아래에 링크로 안내되어 있다. 해당 링크 주소는 [젠킨스주소]/env-vars.html/ 이다. 해당 링크를 보면 다양한 환경 변.. maven central repository에 라이브러리 배포하기 github의 maven project를 maven central repotisory (https://search.maven.org/)에 등록하면서 한 작업들을 기록등록을 위한 가이드는 아래와 같다.https://central.sonatype.org/publish/publish-guide/ OSSRH Guide - The Central Repository DocumentationGetting started Introduction Sonatype OSSRH (OSS Repository Hosting) uses Sonatype Nexus Repository Manager to provide repository hosting service for open source project binaries - be s.. Dockerfile 명령어 명령어는 대소문자를 가리지 않으나 보통 대문자로 사용함 https://docs.docker.com/engine/reference/builder/ Dockerfile reference docs.docker.com 아래의 경우 docker 실행 가능한 jenkins 이미지를 만드는 Dockerfile이다. FROM jenkins/jenkins:jdk11 MAINTAINER bluesky USER root RUN curl -fsSL https://get.docker.com -o get-docker.sh \ && sh get-docker.sh RUN usermod -aG docker jenkins USER jenkins 위 Dockerfile은 다음과 같이 수행된다. jdk11 버전의 jenkins image를.. PropertyEditor를 사용한 Data Binding (in Spring Data Redis) Spring Data Redis의 문서를 보다 보면 아래와 같은 예제가 보인다. // inject the template as ListOperations @Resource(name="redisTemplate") private ListOperations listOps; Spring Boot의 RedisAutoConfiguration에서는 RedisTemplate과 StringRedisTemplate bean을 자동 설정해주고 있다. @Bean @ConditionalOnMissingBean(name = "redisTemplate") @ConditionalOnSingleCandidate(RedisConnectionFactory.class) public RedisTemplate redisTemplate(Redi.. Spring Boot Data Redis 사용해보기 Spring Boot 기반에서 Redis를 사용하는 방법 Spring Boot 2.5.0 기준으로 작성함 dependency 설정 org.springframework.boot spring-boot-starter-data-redis redis는 connectionFactory로 Lettuce와 Jedis 두 가지를 제공한다. default로 Lettuce를 제공하고 만약 Jedis를 사용하고 싶은 경우 아래처럼 설정하면 된다. org.springframework.boot spring-boot-starter-data-redis io.lettuce lettuce-core redis.clients jedis Bean 설정 Spring Boot의 RedisAutoConfiguration은 RedisTemplate.. redis Data types 아래의 글을 번역하였다. https://redis.io/topics/data-types Data types – Redis *Data types *Strings Strings are the most basic kind of Redis value. Redis Strings are binary safe, this means that a Redis string can contain any kind of data, for instance a JPEG image or a serialized Ruby object. A String value can be at max 512 Megabyt redis.io Strings String은 redis value의 가장 기본적인 종류이다. Redis String은 binary .. redis commands redis를 공부하려고 하면서 일단 어떤 것인지 알기 위해 간단한 command 부터 사용해보려고 한다. 접속 우선 로컬에 redis를 설치하고 접속한다. telnet 127.0.0.1 6379 전체 commands https://redis.io/commands Command reference – Redis redis.io redis가 제공하는 기능들을 사용하기 위한 명령어 들이고 group이 ABC 순으로 정렬이 되어 있다. Cluster Connection Geo Hashes HyperLogLog Keys Lists Pub/Sub Scripting Server Sets Sorted Sets Streams Strings Transactions 이 목록으로는 공부할 순서를 유추할 수 없다. 가장 간단한 .. 이전 1 ··· 17 18 19 20 21 22 23 ··· 38 다음