This commit is contained in:
pengfei 2017-11-17 10:27:49 +08:00
parent 054c94ce47
commit 807644904b
1 changed files with 5 additions and 4 deletions

View File

@ -130,10 +130,11 @@ gulp.task('watch', ['build', 'watch-less'], function() {
});
gulp.task('connect', ['watch'], function() {
// lets disable unauthorised TLS issues with kube REST API
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
var kubeBase = process.env.KUBERNETES_MASTER || 'https://localhost:8443';
var kubeBase = process.env.KUBERNETES_MASTER || 'https://192.168.191.120:8443';
console.log("==== using KUBERNETES URL: " + kubeBase);
var kube = uri(urljoin(kubeBase, 'api'));
var kubeapis = uri(urljoin(kubeBase, 'apis'));
@ -173,7 +174,7 @@ gulp.task('connect', ['watch'], function() {
localProxies.push({
proto: "http",
port: "8080",
hostname: "localhost",
hostname: "localhost", //hostname:localhost
path: '/api/v1/proxy/namespaces/default/services/fabric8-forge',
targetPath: "/"
});
@ -248,8 +249,8 @@ gulp.task('connect', ['watch'], function() {
targetPath: '/hawtio/git'
}, {
proto: "http",
port: "8088",
hostname: "192.168.0.110",
port: "8080",
hostname: "127.0.0.1", //hostname:"127.0.0.1"
path: '/java/console/api',
targetPath: "/"
}];