来自服务器的错误(禁止):服务器不允许访问所请求的资源(post replicationcontrollers后)

时间:2017-03-17 09:41:28

标签: kubectl

运行某些命令时,

::Global
@echo off

set AAPT=tools\aapt.exe
set GREP=tools\grep.exe
set CUT=tools\cut.exe

:: Applications
SETLOCAL ENABLEDELAYEDEXPANSION

For /f "delims=" %%P in ('dir /b ^"APKs\*.apk^"') do (
    SET APK=%%P
    for /f "tokens=1 delims=" %%Q in ('%AAPT% d badging APKs\!APK! ^| !GREP! "package: name=" ^| !CUT! -d' -f2') do (
        set package=%%Q
        if "!package!" == "" set package=Unknown (
            echo !package!>>"%userprofile%\desktop\PCAPPS.log"
        )
    )
)
FOR /F "tokens=1,2 skip=1" %%R IN ('adb devices') DO (
    SET IS_DEV=%%S
    DEL /Q "%userprofile%\desktop\DEVAPPS.log" >nul 2>nul
    if "!IS_DEV!" == "device" (
        SET SERIAL=%%R
            FOR /F "tokens=1 delims=" %%U IN ('adb -s !SERIAL! shell "pm list packages -3" ^| !CUT! -f 2 -d ":"^') DO (
            SET DEVPACKAGE=%%U
            echo !DEVPACKAGE!>>"%userprofile%\desktop\DEVAPPS.log"
            )
        FOR /f "tokens=*" %%a in ('FINDSTR /vlxg:"%userprofile%\desktop\DEVAPPS.log" "%userprofile%\desktop\PCAPPS.log"') DO (
            set NOTDEVAPP=%%a
            echo !SERIAL! - package not installed - !NOTDEVAPP!>>"%userprofile%\desktop\error.log"
            echo !SERIAL! - !NOTDEVAPP! - not installed
                )
            )
        )
    )
DEL "%userprofile%\desktop\PCAPPS.log"

我的配置有什么问题?

非常感谢

1 个答案:

答案 0 :(得分:0)

kube-apiserver --service-cluster-ip-range = 10.1.0.1 / 24 --insecure-bind-address = 0.0.0.0 --etcd-servers = http://127.0.0.1:4001 --secure-port = 0 --insecure-port = 35001 --allow-privileged = True --advertise-address = 100.109.165.127 --bind-address = 100.109.165.127 --insecure-bind-address = 100.109.165.127 ./kubectl version -s 100.109.165.127:35001 在.profile 在no_proxy中添加所有ip 吮吸为 export no_proxy =" 127.0.0.1,localhost,100.109.196.103,100.109.165.127" 问题已经解决了