Telepresence

이민규·2023년 6월 28일
0
post-thumbnail
post-custom-banner
  1. telepresence 설치
> telepresence helm install

Traffic Manager installed successfully
PS C:\Users\admin\.kube> telepresence status
Launching Telepresence Root Daemon
User Daemon: Running
  Version           : v2.13.1
  Executable        : C:\Program Files (x86)\Ambassador\Telepresence\telepresence.exe
  Install ID        : c3a5cbac-4008-47b7-8c84-587dacec0601
  Status            : Not connected
  Kubernetes server :
  Kubernetes context:
  Manager namespace :
  Intercepts        : 0 total
Root Daemon: Running
  Version: v2.13.1
  Version: v2.13.1
Ambassador Cloud:
  Status      : Logged in
  User ID     : 45957108-e131-4df7-88dd-d4355875dec5
  Account ID  : 2dd9df92-8877-4c17-ab01-6ffbff16c76a
  User Name   : 민규 이
  Email       : mctlmk@gmail.com
  Account Name: 민규
Traffic Manager: Not connected
Intercept Spec: Not running


### team모드로 업그레이드
> telepresence helm upgrade --team-mode
> telepresence connect
Connected to context openstack-dev (https://10.100.0.249:6443)
PS C:\Users\admin\.kube> telepresence status
User Daemon: Running
  Version           : v2.13.1
  Executable        : C:\Program Files (x86)\Ambassador\Telepresence\telepresence.exe
  Install ID        : c3a5cbac-4008-47b7-8c84-587dacec0601
  Status            : Connected
  Kubernetes server : https://10.100.0.249:6443
  Kubernetes context: openstack-dev
  Manager namespace : ambassador
  Intercepts        : 0 total
Root Daemon: Running
  Version    : v2.13.1
  Version    : v2.13.1
  DNS        :
    Remote IP       : 127.0.0.1
    Exclude suffixes: [.com .io .net .org .ru]
    Include suffixes: []
    Timeout         : 8s
  Also Proxy : (0 subnets)
  Never Proxy: (1 subnets)
    - 10.100.0.249/32
Ambassador Cloud:
  Status      : Logged in
  User ID     : 45957108-e131-4df7-88dd-d4355875dec5
  Account ID  : 2dd9df92-8877-4c17-ab01-6ffbff16c76a
  User Name   : 민규 이
  Email       : mctlmk@gmail.com
  Account Name: 민규
Traffic Manager: Connected
  Version : v2.13.1                                                                                                       Mode    : single-user                                                                                                 Intercept Spec: Not running
> kubectl get svc -n cp-portal
NAME                           TYPE       CLUSTER-IP      EXTERNAL-IP   PORT(S)          AGE
cp-portal-api-service          NodePort   10.233.39.47    <none>        3333:32701/TCP   19h
cp-portal-broker-service       NodePort   10.233.27.43    <none>        3330:32704/TCP   46h
cp-portal-common-api-service   NodePort   10.233.62.191   <none>        3334:32700/TCP   46h
cp-portal-terraman-service     NodePort   10.233.33.105   <none>        8091:32707/TCP   44h
cp-portal-ui-service           NodePort   10.233.29.207   <none>        8090:32703/TCP   19h

> curl 10.233.39.47:3333
{"resultCode":"FAIL","resultMessage":"TOKEN_FAILED","httpStatusCode":401,"detailMessage":"Token authentication failed","nextActionUrl":"-"}


> telepresence list -n cp-portal
cp-portal-api-deployment       : ready to intercept (traffic-agent not yet installed)
cp-portal-broker-deployment    : ready to intercept (traffic-agent not yet installed)
cp-portal-common-api-deployment: ready to intercept (traffic-agent not yet installed)
cp-portal-terraman-deployment  : ready to intercept (traffic-agent not yet installed)
cp-portal-ui-deployment        : ready to intercept (traffic-agent not yet installed)


> telepresence intercept cp-portal-api-deployment --port 8080 -n cp-portal
telepresence intercept: error: request timed out while waiting for agent cp-portal-api-deployment.cp-portal to arrive

### nginx deploy를 배포 후 해봐도 안된다.
> telepresence intercept my-nginx --port 8080:8080
telepresence intercept: error: request timed out while waiting for agent my-nginx.default to arrive


post-custom-banner

0개의 댓글