cb-spider icon indicating copy to clipboard operation
cb-spider copied to clipboard

[Tencent:PMKS] Recheck API Options for getting Kubeconfig

Open powerkimhub opened this issue 2 years ago • 0 comments

@iworkist

  • 다음 가이드에 따르면, domain name을 사용하지 않고 IP를 사용한다고 함
    • [ref] https://www.tencentcloud.com/document/product/457/30639
  • 현재 Tencent가 제공하는 API를 사용하여 Kubeconfig를 구함
    • 구한 Kubeconfig는 server 주소가 domain name으로 반환되고 있음
      • ex) 포함된 server 주소: server: https://cls-amu0j0tf.ccs.tencent-cloud.com
    • 실제로 이 Kubeconfig로 연결을 시도하면, 연결되지 않음
  • 현재, 구한 후에 Endpoint의 IP로 교체하는 코드를 임시 추가함. ( 참고: changeDomainNameToIP() )
  [before]
      server: https://cls-amu0j0tf.ccs.tencent-cloud.com
  
  [after]
      server: https://1.2.3.4
  • IP로 교체하고 나면, 이제 연결됨
  • 확인 사항
    • Kubeconfig를 IP로 반환 받는 API나 옵션 존재 여부 등 정식 방법이 없는 지 확인 필요
    • 이슈: 향후, Kubeconfig도 domain name이 아닌 IP로 반환한다면,
      • 불필요하고 불안한 반환 작업이 남아 있을 수 있음

powerkimhub avatar Nov 12 '22 11:11 powerkimhub