> - ä½è ï¼éµæ¬¢åº > - é¾æ¥ï¼https://kuboard.cn/guide/proxy/#%E4%BB%A3%E7%90%86%E9%85%8D%E7%BD%AE ## Kuboard Proxy åå© `Kuboard Proxy`ï¼ç»å½ Kuboard çç¨æ·å¯ä»¥ç´æ¥è®¿é® Service/Podï¼èæ é为 Service åé¢å¤ç NodePortãIngress çé ç½®ãKuboard Proxy æ¯ `kubectl proxy` å½ä»¤ä¸ç§æ¿ä»£é项ã ä¸ `kubectl proxy` ç¸æ¯ï¼ * ç¨æ·å¯ä»¥ç´æ¥å¨ Kuboard çé¢è¿è¡æä½ï¼èæ é使ç¨å½ä»¤è¡ï¼ * ç¨æ·æéæ§å¶ï¼ * æ¯ææ´å ç»è´ç rebase æ§å¶ï¼ * å¯ä»¥å¯¹æ¥æ¯æ Auth-Proxy 认è¯æ¹å¼çå端æå¡ï¼å®ç°åç¹ç»å½ï¼ä¾å¦ [Grafana](https://grafana.com/docs/grafana/v6.5/auth/auth-proxy/)ã æ¬æåé¢çç« èå°æè¿° Kuboard Proxy çåºæ¬ä½¿ç¨æ¹æ³ã并æå¦å¤ä¸ç¯æ档对 Kuboard Proxy åè¿ä¸æ¥çéè¿°ï¼ * [ææç¨æ·è®¿é® Kuboard Proxy](https://kuboard.cn/guide/proxy/authorization.html) * [为ä»ä¹æçç½é¡µéè¿ Kuboard Proxy 代çåæ¾ç¤ºä¸æ£å¸¸ - Rebase - ï¼å°æ°æ åµï¼](https://kuboard.cn/guide/proxy/rebase.html) * [éè¿ Auth-Proxy å®ç° Grafana ä¸ Kuboard çåç¹ç»å½](https://kuboard.cn/guide/proxy/auth-proxy.html) ## ä½¿ç¨ Kuboard Proxy è®¿é® Service æç §å¦ä¸æ¥éª¤ï¼å¯ä»¥é常æ¹ä¾¿å°ä½¿ç¨ Kuboard Proxyï¼ * è¿å ¥å·¥ä½è´è½½æ¥ç页é¢ï¼æ¤å¤ä»¥ [å¯¼å ¥ example](https://kuboard.cn/guide/example/import.html) ä¸å¯¼å ¥ç web-example ä½ä¸ºä¾åï¼å¦ä¸å¾æç¤ºï¼ ![Kubernetestæç¨_使ç¨KuboardProxy](/img/image-20200225204455933.png) å¦ææ¨çä¸å°éä¸ç ***代ç*** æé®ï¼å¾å¯è½æ¯æ¨ç Kuboard çæ¬ä½äº v1.0.7-beta.4ï¼ä¹å¯è½æ¯å 为æ¨æ²¡æ该Service ç `service/proxy` 对åºçæéï¼è¯·åè [ææç¨æ·è®¿é® KuboardProxy](https://kuboard.cn/guide/proxy/auth-proxy.html) * ç¹å»ä¸å¾ä¸ç ***代ç*** æé®ï¼å°æå¼å¦ä¸çé¢ï¼ çé¢ä¸æ¾ç¤ºäºä¸ä¸ªåºåï¼ * KuboardProxy 代çé 置信æ¯ï¼ç¹å» ***ä¿®æ¹*** æé®åå¯ä»¥ [ä¿®æ¹KuboardProxyé ç½®](https://kuboard.cn/guide/proxy/#%E4%BF%AE%E6%94%B9KuboardProxy%E4%BB%A3%E7%90%86%E9%85%8D%E7%BD%AE)ï¼ * KuboardProxy 代çåç°ä¿¡æ¯ï¼æ¾ç¤ºäºæ¤æ¬¡æè·å¾ Token çæææï¼ï¼ * 访é®ä»£çç®æ ï¼æ¾ç¤ºäºä»£ççè¿ä¸æ¥æä½åºï¼ï¼ * éæ©ä»£çåè®®ï¼æ¤å¤æ¯æ `http`ã `https` 两ç§éæ©ï¼è¯¥åè®®è¦è®¿é®ç容å¨å 端å£ææ¯æçåè®®ï¼ * éæ©è®¿é®æ¹æ³ï¼å¯ä»¥ç´æ¥å¨æµè§å¨ä¸æå¼ç½é¡µï¼ä¹å¯ä»¥éè¿ crul/postman çæµè¯å·¥å ·è°ç¨å®¹å¨å ç restful æ¥å£ã ![Kubernetestæç¨_使ç¨KuboardProxy](/img/image-20200225204706887.png) * éè¿ä»£ç访é®ç®æ Service * ç¹å» ***å¨æµè§å¨çªå£ä¸æå¼*** æé®ï¼å°ç´æ¥æå¼ä¸ä¸ªæ°çªå£ï¼å¹¶æ¾ç¤ºç®æ 页é¢ï¼å¦ä¸æç¤ºï¼ ![Kubernetestæç¨_使ç¨KuboardProxy](/img/image-20200225205535033.png) * ç¹å» ***ä½¿ç¨ curl/postman 访é®ç®æ 代ç***ï¼å°æ¾ç¤ºå¦ä¸å¯¹è¯æ¡ï¼ å¤å¶å¯¹è¯æ¡ä¸ç代ç ï¼å¹¶å¨å½ä»¤è¡ç»ç«¯æ§è¡ï¼å¯ä»¥è·å¾ä»£çç®æ æå¡è¿åçååºã > è¿ç§åæ³å¨è¿è¡ API æµè¯æ¶é常æ¹ä¾¿ã ![Kubernetestæç¨_使ç¨KuboardProxy](/img/image-20200225205712284.png) ## ä¿®æ¹KuboardProxy代çé ç½® KuboardProxy代çç设置æï¼ * ç¯å¢åé * å ¨å±çæï¼ * 代ç设置 * åªé对 Service/Pod çå个端å£ä»£ççæï¼ ### ç¯å¢åé ä¸ KuboardProxy ç¸å ³çç¯å¢åéæå¦ä¸ä¸¤ä¸ªï¼ | å称 | åéç±»å | é»è®¤å¼ | æè¿° | | ------------------------ | -------- | ------ | ------------------------------------------------------------ | | KUBOARD_AUTH_ENCRYPT_KEY | String | éæº |