bi8i3333
@bi8i3333
Reviews Written
4
Average Rating
5.0
Posts
Q&A
Dashboard ์ฌ์ค์น ๋ช ๋ น์ด ์ค๋ฅ ํ์ธ ๋ถํ๋๋ฆฝ๋๋ค.
https://kubetm.github.io/k8s/07-intermediate-basic-resource/dashboard/๋ฅผ ํตํด dashboard๋ฅผ ์๋ก ์์ฑํ๋ ค๊ณ ํฉ๋๋ค.1-3) Token ํ์ธ ์ ์ํํ๋ฉด ์๋ฌ๊ฐ ๋๋ค์.[root@k8s-master ~]# kubectl -n kubernetes-dashboard get secret kubernetes-dashboard-token- \-o jsonpath='{.data.token}' | base64 --decodeError from server (NotFound): secrets "kubernetes-dashboard-token-" not found[1]+ Exit 1 nohup kubectl proxy --port=8001 --address=192.168.0.30 --accept-hosts='^*$' > /dev/null 2>&1
- 0
- 2
- 404
Q&A
์คํ๋ Query์ ๊ฒฐ๊ณผ์ ํฌํจ๋ ์ปฌ๋ผ๋ช ์ ํ์ธ ํ ์ ์์๊น์?
์๋ ํ์ธ์.Native SQL์ ์ฌ์ฉํ๋๋ฐQuery query = entityManager.createNativeQuery(sql); List result = query.getResultList(); ResultSet resultSet = query.unwrap(java.sql.ResultSet.class);ํ๋ฉด ์๋ฌ๊ฐ ๋ฐ์ํ๋ค์.--์๋ฌ--org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.hibernate.HibernateException: Could not unwrap this [org.hibernate.query.internal.NativeQueryImpl@4c9ed40] as requested Java type [java.sql.ResultSet]
- 0
- 4
- 1.2K
Q&A
์คํ๋ Query์ ๊ฒฐ๊ณผ์ ํฌํจ๋ ์ปฌ๋ผ๋ช ์ ํ์ธ ํ ์ ์์๊น์?
์๋ ํ์ธ์.๋ต๋ณ ๊ฐ์ฌํฉ๋๋ค.์ฃ์กํ์ง๋ง log๋ฅผ ๋ณด๋ ค๋๊ฒ ์๋๋ผ, api์์ ๊ฒฐ๊ณผ ๋ฐ์ดํฐ์ ํจ๊ป ์ ๊ณตํ๊ณ ์ถ์ด์์
- 0
- 4
- 1.2K
Q&A
Dashboard์์ pod๋ฅผ ์์ฑํ๋๋ฐ ์๋์ ๊ฐ์ ์๋ฌ๊ฐ ๋๊ณ ์์ต๋๋ค
1.22 ์ค์ต๊ฐ์๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ์ค์นํ์ต๋๋ค. Virtualbox 6.1.32, Vagrant 2.2.19๋ฅผ ์ค์นํ๊ณ , ์ค์ต์๋ฃ์ ์ฌ๋ ค์ฃผ์ Vagrantํ์ผ์ ์ด์ฉํด ์ค์นํ์ต๋๋ค. ์๋ ค์ฃผ์ ๋ฐฉ๋ฒ๊ทธ๋๋ก ์ค์นํ๋๋ฐ ๋ฌธ์ ์์์ด์. ๋ค๋ง dashboard๊ฐ ์๋์ผ๋ก ์์๋์ง ์์ nohup ~ ๋ช ๋ น์ด๋ฅผ ์ด์ฉํด ์์ํ์ต๋๋ค. dashboard๊ฐ ๋ค๋ฅธ๊ฑด ๋ชจ๋ ๋์ํ๋๊ฒ ๊ฐ์๋ฐ, pod๋ฅผ ์์ฑํ ๋๋ง ์์ ๊ฐ์ ์๋ฌ๊ฐ ๋๋ค์. ๊ทธ๋ฐ๋ฐ cli๋ก ์คํํ๋๋ pod๋ ๋ฌธ์ ์์ด ์์ฑ๋์์ต๋๋ค.
- 1
- 3
- 490
Q&A
ํ๊ธ๊นจ์งํ์
Controller Class์ RequestMapping์ @RequestMapping(value = "/api/events", produces = "application/hal+json; charset=UTF-8") produces๋ฅผ ์ด๋ ๊ฒ ์ถ๊ฐํด๋ ํด๊ฒฐ์ด ๋๋๋ผ๊ตฌ์. ๋ค๋ง, ์ด๋ ๊ฒํ๋ฉด ResponseEntity์ contentType์ด application/hal+json ๋์ application/hal+json; charset=UTF-8๊ฐ ๋์์ Test์ฝ๋์์ andExpect(header().string(HttpHeaders.CONTENT_TYPE, MediaTypes.HAL_JSON_VALUE))๋ก ํ ์คํธํ๋ ๋ถ๋ถ์ด ๊นจ์ง๋๋ค.
- 0
- 3
- 1.2K
Q&A
SpringBoot 2.2.6, JUnit 5๋ก upgradeํ ํ IndexControllerTest์์ ์๋ฌ๊ฐ ๋ฐ์ํฉ๋๋ค.
์๋ ํ์ธ์.๋ง์ง๋ง ๊ฐ์ 2๊ฐ ๋ค์ ๋ค์๋๋ฐ ์์ ๊ด๋ จ๋ ๋ด์ฉ์ ํ์ธํ ์๊ฐ ์๋ค์. ใ ใ
- 0
- 3
- 369




