kubernetes
서비스 endpoints
짱구는굿
2023. 10. 31. 16:45
apiVersion: v1 kind: Service metadata: name: my-service spec: ports: - protocol: TCP port: 80 targetPort: 80 --- apiVersion: v1 kind: Endpoints metadata: name: my-service subsets: - addresses: - ip: 223.130.195.200 - ip: 199.201.110.204 ports: - port: 80 |
kubectl run http-go --image=qkrwo8520/http-go kubectl exec -it http-go -- bash curl my-service http-go에서 my-service로 접속 시 malware 사이트 확인 가능 |
kubectl describe svc my-service endpoints 잘 설정된걸 확인할수있다 |