blessleecb0698
@blessleecb0698
Reviews Written
3
Average Rating
5.0
Posts
Q&A
docker-compose up ๋ช ๋ น์ด ์คํ์ nginx ์ปจํ ์ด๋ ์์ฑ์ ์ค๋ฅ
ํ์ธ ๊ฐ์ฌํฉ๋๋ค. ํด๋น๋ช ๋ น์ด๋ก ์ ์ฒด ์ญ์ ํ ๋๋๊ฒ ๊ฐ์ต๋๋ค.
- 0
- 2
- 2.1K
Q&A
์ฟ ๋ฒ๋คํฐ์ค ์ค์น ๋ฐ ์ค์ ๊ด๋ จ ์๋ฌ ์ง๋ฌธ
์์ ์ฃผ์ ์ญ์ ํ๋ ๋ช ๋ น์ด๋ก ์ญ์ ํ ์ฌ์ค์น ํ๋๊น ๋์๋ณด๋๊ฐ๋จ๋ค์;;;; ์์ธ์ ๋ชจ๋ฅด๊ฒ ์ต๋๋ค;;
- 1
- 11
- 1.1K
Q&A
์ฟ ๋ฒ๋คํฐ์ค ์ค์น ๋ฐ ์ค์ ๊ด๋ จ ์๋ฌ ์ง๋ฌธ
์์์ฃผ์ pod, service ๊ด๋ จ ์์ฑํ์ฌ ํ ์คํธ ๊ฒฐ๊ณผ๋ ์ ๋ฌ๋๋ฆฝ๋๋ค. [root@blex-master ~]# kubectl get svc svc-1 NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE svc-1 ClusterIP 10.107.116.62 9000/TCP 14s [root@blex-master ~]# curl 10.107.116.62:9000/blex-master curl: (7) Failed connect to 10.107.116.62:9000; ์ฐ๊ฒฐ์ด ๊ฑฐ๋ถ๋จ
- 1
- 11
- 1.1K
Q&A
์ฟ ๋ฒ๋คํฐ์ค ์ค์น ๋ฐ ์ค์ ๊ด๋ จ ์๋ฌ ์ง๋ฌธ
http://192.168.10.30:8001/api/v1/namespaces/kube-system/services๋งํฌ๋ก ์ ์ํ ๊ฒฐ๊ณผ์ ๋๋ค.๋ฐ๋ก ํ์ด์ง๋ ๋จ๋๊ฑฐ์์ด ์๋์๊ฐ์ด ์ถ๋ ฅ๋ฉ๋๋ค.์ผ๋จ ์์์ฃผ์ ์ญ์ ํ ์ฌ์ค์นํด๋ณด๊ฒ ์ต๋๋ค.{ "kind": "ServiceList", "apiVersion": "v1", "metadata": { "selfLink": "/api/v1/namespaces/kube-system/services", "resourceVersion": "8608" }, "items": [ { "metadata": { "name": "kube-dns", "namespace": "kube-system", "selfLink": "/api/v1/namespaces/kube-system/services/kube-dns", "uid": "47c706f1-6cfa-43a9-9885-9be66900cf51", "resourceVersion": "177", "creationTimestamp": "2020-05-07T05:04:53Z", "labels": { "k8s-app": "kube-dns", "kubernetes.io/cluster-service": "true", "kubernetes.io/name": "KubeDNS" }, "annotations": { "prometheus.io/port": "9153", "prometheus.io/scrape": "true" } }, "spec": { "ports": [ { "name": "dns", "protocol": "UDP", "port": 53, "targetPort": 53 }, { "name": "dns-tcp", "protocol": "TCP", "port": 53, "targetPort": 53 }, { "name": "metrics", "protocol": "TCP", "port": 9153, "targetPort": 9153 } ], "selector": { "k8s-app": "kube-dns" }, "clusterIP": "10.96.0.10", "type": "ClusterIP", "sessionAffinity": "None" }, "status": { "loadBalancer": { } } }, { "metadata": { "name": "kubernetes-dashboard", "namespace": "kube-system", "selfLink": "/api/v1/namespaces/kube-system/services/kubernetes-dashboard", "uid": "1c413292-e394-40d0-aa0f-5108372f832b", "resourceVersion": "979", "creationTimestamp": "2020-05-07T05:09:38Z", "labels": { "k8s-app": "kubernetes-dashboard" }, "annotations": { "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"v1\",\"kind\":\"Service\",\"metadata\":{\"annotations\":{},\"labels\":{\"k8s-app\":\"kubernetes-dashboard\"},\"name\":\"kubernetes-dashboard\",\"namespace\":\"kube-system\"},\"spec\":{\"ports\":[{\"port\":443,\"targetPort\":8443}],\"selector\":{\"k8s-app\":\"kubernetes-dashboard\"}}}\n" } }, "spec": { "ports": [ { "protocol": "TCP", "port": 443, "targetPort": 8443 } ], "selector": { "k8s-app": "kubernetes-dashboard" }, "clusterIP": "10.99.228.72", "type": "ClusterIP", "sessionAffinity": "None" }, "status": { "loadBalancer": { } } } ] }
- 1
- 11
- 1.1K
Q&A
์ฟ ๋ฒ๋คํฐ์ค ์ค์น ๋ฐ ์ค์ ๊ด๋ จ ์๋ฌ ์ง๋ฌธ
๊ฒฐ๊ณผ ์ ๋ฌ๋๋ฆฝ๋๋ค. [root@blex-master ~]# kubectl get svc --all-namespaces NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE default kubernetes ClusterIP 10.96.0.1 443/TCP 34m kube-system kube-dns ClusterIP 10.96.0.10 53/UDP,53/TCP,9153/TCP 34m kube-system kubernetes-dashboard ClusterIP 10.99.228.72 443/TCP 30m
- 1
- 11
- 1.1K
Q&A
์ฟ ๋ฒ๋คํฐ์ค ์ค์น ๋ฐ ์ค์ ๊ด๋ จ ์๋ฌ ์ง๋ฌธ
kubectl logs ๋ก ํด๋น ์ปจํ ์ด๋ ํ์ธ๊ฒฐ๊ณผ๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค. [root@blex-master ~]# kubectl logs kubernetes-dashboard-6b8c96cf8c-cf6l9 -n kube- system 2020/05/07 05:10:51 Starting overwatch 2020/05/07 05:10:51 Using in-cluster config to connect to apiserver 2020/05/07 05:10:51 Using service account token for csrf signing 2020/05/07 05:10:51 Successful initial request to the apiserver, version: v1.15.1 2 2020/05/07 05:10:51 Generating JWE encryption key 2020/05/07 05:10:51 New synchronizer has been registered: kubernetes-dashboard-ke y-holder-kube-system. Starting 2020/05/07 05:10:51 Starting secret synchronizer for kubernetes-dashboard-key-hol der in namespace kube-system 2020/05/07 05:10:51 Storing encryption key in a secret 2020/05/07 05:10:51 Creating in-cluster Heapster client 2020/05/07 05:10:51 Metric client health check failed: the server could not find the requested resource (get services heapster). Retrying in 30 seconds. 2020/05/07 05:10:51 Auto-generating certificates 2020/05/07 05:10:51 Successfully created certificates 2020/05/07 05:10:51 Serving securely on HTTPS port: 8443 2020/05/07 05:11:21 Metric client health check failed: the server could not find the requested resource (get services heapster). Retrying in 30 seconds. 2020/05/07 05:11:51 Metric client health check failed: the server could not find the requested resource (get services heapster). Retrying in 30 seconds. 2020/05/07 05:12:21 Metric client health check failed: the server could not find the requested resource (get services heapster). Retrying in 30 seconds.
- 1
- 11
- 1.1K




