CoonZaCCang
@hwangtoever1041
Reviews Written
3
Average Rating
5.0
Posts
Q&A
[Solved] ์๋น์ค ์คํ ์ Bean ๊ด๋ จ ์ค๋ฅ ๋์ ์์ฒญ๋๋ฆฝ๋๋ค.
dependency> groupId>org.springframework.bootgroupId> artifactId>spring-boot-starter-data-jpaartifactId> scope>testscope>dependency> pom.xml ์ jpa dependency ์ถ๊ฐ ์ scope test๋ฅผ ์ง์ ํด๊ฒฐํ์์ต๋๋ค. ๊ฐ์๋ฅผ ๋ค์ ๋ณด๋ฉด์ ํ์ธํ๋ถ๋ถ์ ๋๋ค.
- 0
- 1
- 359
Q&A
Size ์ด๋ ธํ ์ด์ ์ด ์๋์ ์ํ๋ ๊ฒ ๊ฐ์๋ฐ ์ด๋ค ๊ฒ์ ์ฒดํฌํด์ผํ๋์?
์ ๋ 2.4.10 ๋ฒ์ ์์ Size, Past ์ด๋ ธํ ์ด์ ์ด ์์ ๋์ค์ง ์์๋๋ฐ์ https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-validation/2.4.10 ์ฌ์ดํธ ์ฐธ๊ณ ํ์ฌ ์๋๋ฅผ pom.xml์ ์ถ๊ฐํ์ฌ ํด๊ฒฐํ์์ต๋๋ค. org.springframework.boot spring-boot-starter-validation 2.4.10
- 2
- 4
- 1.9K
Q&A
POD์ Container Command ์ค copy ๊ด๋ จ ๋ฌธ์๋๋ฆฝ๋๋ค.
๋ต๋ณ ๋ฌ์์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค. ๋ฆ๊ฒ ํ์ธ์ ํ์๋ค์. ์ฐธ๊ณ ํด์ฃผ์ ์ฌ์ดํธ ๋ฟ ์๋๋ผ k8s ์ฌ์ดํธ๋ฅผ ๋ณด๊ณ ์ฌ๋ฌ ์๋๋ฅผ ํด๋ copy ๊ฐ ๋์ง ์์ต๋๋ค . copy command๋ฅผ ๋ฃ์ง ์์ผ๋ฉด ์ปจํ ์ด๋๋ ์ ์ ์คํ๋๊ณ ์ ํด๋น ์ปจํ ์ด๋์์ copy๋ฅผ ์๋ํ๋ฉด ์ ์ํ๋ฉ๋๋ค. ํ ์คํธ๋ฅผ ์ํด tomcat7 ์ด๋ฏธ์ง์ RUNNING.txt๋ฅผ tempํด๋์ copy ํ๋ ๊ฒ์ธ๋ฐ ์ ์๋๋ค์. ์ปจํ ์ด๋ command์๋ง ๋ฃ์ผ๋ฉด CrashLoopBackOff ๋ง ๋์ต๋๋ค. ํน์ copy ์ปค๋งจ๋ ์ํ yaml์ด ์์๊น์? โ ํ ์คํธ yaml ------------------------------------------------------------------------------------------------ apiVersion: v1 kind: Pod metadata: name: myapp-test labels: app: myapp spec: containers: - name: myapp-container image: tomcat:7.0 command: ['cp', '/usr/local/tomcat/RUNNING.txt', '/usr/local/tomcat/temp'] ------------------------------------------------------------------------------------------ case1. - ์คํจ command: ["cp", "/usr/local/tomcat/RUNNING.txt", "/usr/local/tomcat/temp"] command: ['cp', '/usr/local/tomcat/RUNNING.txt', '/usr/local/tomcat/temp'] case2. - ์คํจ command: - "cp" - "/usr/local/tomcat/RUNNING.txt" - "/usr/local/tomcat/temp" case3. - ์คํจ command: ["/bin/sh"] args: ["-c", "cp /usr/local/tomcat/RUNNING.txt /usr/local/tomcat/temp"]
- 1
- 3
- 411
Q&A
ReadinessProbe ์ฌ๋ถ์ ๋ฐ๋ฅธ Endpoint Addressํ ๋น ๋ฌธ์
๋ค ์ ๊ฐ ์ง๋ฌธ์ ์กฐ๊ธ ์๋ชป๋๋ฆฐ ์ ์ด ์๋๊ฒ ๊ฐ์ต๋๋ค. ๊ฐ์๋ค ๋ค์ ๋ค์ด๋ณด๋ ReadinessProbe๊ฐ ์์ ๊ฒฝ์ฐ์๋ Pod๊ณผ Container๊ฐ running์ด์ด๋ ContainerReady๊ฐ์ด False์ธ ์ํ์์ ReadinessProbe๋ฅผ ์ฑ๊ณตํด์ผ ContainerReady๊ฐ์ True๋ก ๋ณ๊ฒฝํ๋ ๊ฒ ๊ฐ๊ณ ์ ReadinessProbe๊ฐ ์์ ๊ฒฝ์ฐ์๋ Pod๊ณผ Container๊ฐ running์ด๋ฉด ContainerReady๊ฐ์ด true๋ก ๋๋๊ฒ๊ฐ์๋ฐ ์ด ๋ด์ฉ์ด ๋ง์๊น์? ์ด๋ ๊ธฐ ๋๋ฌธ์ APP ์ ์์ฌ๋ถ ๊น์ง ํ์ธํ๊ณ Service๋ฅผ ๋ถ์ฌ์ผํ๋ ์์ค์ผ๋ก ๊ด๋ฆฌํ๊ธฐ ์ํด์ ReadinessProbe๊ฐ ํ์ํ ๊ฒ์ด๊ณ ์
- 2
- 4
- 244




