GithubHelp home page GithubHelp logo

Comments (18)

songrgg avatar songrgg commented on May 28, 2024

先检查一下你能访问9000和8084端口吗

from spinnaker-compose.

hbstarjason avatar hbstarjason commented on May 28, 2024

http://ip:9000 可以正常访问,看到页面。
但是,访问http://ip:8084,自动跳转到了http://spin.local/

from spinnaker-compose.

songrgg avatar songrgg commented on May 28, 2024

你是说spin.local这个地址?你能贴一下命令行curl -v http://ip:8084的返回吗

from spinnaker-compose.

hbstarjason avatar hbstarjason commented on May 28, 2024
[root@spinnaker-local1 vagrant]# curl -v http://localhost:8084
* About to connect() to localhost port 8084 (#0)
*   Trying ::1...
* Connected to localhost (::1) port 8084 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: localhost:8084
> Accept: */*
> 
< HTTP/1.1 302 
< Access-Control-Allow-Credentials: true
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT, PATCH
< Access-Control-Max-Age: 3600
< Access-Control-Allow-Headers: x-requested-with, content-type, authorization, X-RateLimit-App, X-Spinnaker-Priority
< Access-Control-Expose-Headers: X-AUTH-REDIRECT-URL
< X-SPINNAKER-REQUEST-ID: a29187c0-f5d6-4420-ab1e-a8a3f3899c9c
< X-Content-Type-Options: nosniff
< X-XSS-Protection: 1; mode=block
< Cache-Control: no-cache, no-store, max-age=0, must-revalidate
< Pragma: no-cache
< Expires: 0
< X-Frame-Options: DENY
< Location: http://spin.local
< Content-Length: 0
< Date: Mon, 23 Sep 2019 03:30:29 GMT
< 
* Connection #0 to host localhost left intact
$ curl -v http://11.11.11.161:8084
* Rebuilt URL to: http://11.11.11.161:8084/
*   Trying 11.11.11.161...
* TCP_NODELAY set
* Connected to 11.11.11.161 (11.11.11.161) port 8084 (#0)
> GET / HTTP/1.1
> Host: 11.11.11.161:8084
> User-Agent: curl/7.54.0
> Accept: */*
> 
< HTTP/1.1 302 
< Access-Control-Allow-Credentials: true
< Access-Control-Allow-Origin: *
< Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT, PATCH
< Access-Control-Max-Age: 3600
< Access-Control-Allow-Headers: x-requested-with, content-type, authorization, X-RateLimit-App, X-Spinnaker-Priority
< Access-Control-Expose-Headers: X-AUTH-REDIRECT-URL
< X-SPINNAKER-REQUEST-ID: bc116a60-dc92-46c5-9ba4-a7729bf080d7
< X-Content-Type-Options: nosniff
< X-XSS-Protection: 1; mode=block
< Cache-Control: no-cache, no-store, max-age=0, must-revalidate
< Pragma: no-cache
< Expires: 0
< X-Frame-Options: DENY
< Location: http://spin.local
< Content-Length: 0
< Date: Mon, 23 Sep 2019 03:34:43 GMT
< 
* Connection #0 to host 11.11.11.161 left intact

from spinnaker-compose.

songrgg avatar songrgg commented on May 28, 2024

这个跳转地址是由services.deck.base-url决定的,配置是在config/spinnaker.yml里,你有没有改动过

from spinnaker-compose.

hbstarjason avatar hbstarjason commented on May 28, 2024

没有修改spinnaker .yaml里的配置。

from spinnaker-compose.

songrgg avatar songrgg commented on May 28, 2024

长假回来 :) 你能登陆gate容器里贴一下/opt/spinnaker/config/spinnaker.yml

from spinnaker-compose.

hbstarjason avatar hbstarjason commented on May 28, 2024

非常感谢!我自己解决了。不过还存在以下问题:
1、因为是vagrant启动的vm,默认不支持直接ssh,因此如下命令不可用。

ssh -L 8084:localhost:8084 <remote-host>
ssh -L 9000:localhost:9000 <remote-host>

需要在本地localhost即需要访问spinnaker的机器上做端口转发,配置如下:

vi ~/.ssh/config

# Configure as the output say in: vagrant ssh-config

Host  <spinnaker-vm name>
  HostName localhost
  User vagrant
  Port 2222
  UserKnownHostsFile /dev/null
  StrictHostKeyChecking no
  PasswordAuthentication no
  ## Put your own identity file
  IdentityFile  <spinnaker-vm private_key>
  IdentitiesOnly yes
  LogLevel FATAL
  ControlMaster yes
  ControlPath ~/.ssh/spinnaker-tunnel.ctl
  RequestTTY no
  LocalForward 9000 localhost:9000
  LocalForward 8084 localhost:8084
  LocalForward 8087 localhost:8087

本地localhost即需要访问spinnaker的机器上,执行ssh <spinnaker-vm name> ,完成端口转发。
访问:http://localhost:9000

from spinnaker-compose.

songrgg avatar songrgg commented on May 28, 2024

所以spin.local是啥问题?关于访问的话,其实重点就是把gate容器的8084端口,deck服务的9000端口暴露出来支持访问。

from spinnaker-compose.

hbstarjason avatar hbstarjason commented on May 28, 2024

2、安装起来没有添加account,暂时无法用。这个您在readme中已经说明了。
3、安装起来发现是v1版本的,想使用v2版本的,也是修改config/clouddriver.yml吗?如何修改?

from spinnaker-compose.

songrgg avatar songrgg commented on May 28, 2024

第三个问题是啥意思,你指的v1,v2是什么的版本,k8s吗

from spinnaker-compose.

hbstarjason avatar hbstarjason commented on May 28, 2024

第三个问题是啥意思,你指的v1,v2是什么的版本,k8s吗

spinnaker支持k8s的模式有2种。
v1就是官网的Kubernetes (Legacy)
v2就是官网的Kubernetes (Manifest Based)

from spinnaker-compose.

songrgg avatar songrgg commented on May 28, 2024

嗯,明白,我就是用v2的,今天我也会更新一下这个项目,修复一些问题,把配置的文档更新下

from spinnaker-compose.

hbstarjason avatar hbstarjason commented on May 28, 2024

嗯,明白,我就是用v2的,今天我也会更新一下这个项目,修复一些问题,把配置的文档更新下

您现在是怎么安装的?也是halyard安装的吗?
我现在是利用halyard,把spinnaker安装到k8s上的,利用ingress的方式访问。采用的是distributed模式。

from spinnaker-compose.

hbstarjason avatar hbstarjason commented on May 28, 2024

所以spin.local是啥问题?关于访问的话,其实重点就是把gate容器的8084端口,deck服务的9000端口暴露出来支持访问。

表示抱歉!http://spin.local/问题,还是因为我修改了localhost的配置,想用本地绑定hosts访问。启动时用的是我修改过的文件导致,错误的认为是用没有修改的文件启动的。

如果想要采用这种方式访问,那又如何修改呢?

from spinnaker-compose.

songrgg avatar songrgg commented on May 28, 2024

是啊,halyard+k8s是推荐方式

from spinnaker-compose.

hbstarjason avatar hbstarjason commented on May 28, 2024

2、安装起来没有添加account,暂时无法用。这个您在readme中已经说明了。
3、安装起来发现是v1版本的,想使用v2版本的,也是修改config/clouddriver.yml吗?如何修改?

我现在想到的方案是,通过挂载volume的方式把k8s的congfig挂载到clouddriver里。

from spinnaker-compose.

songrgg avatar songrgg commented on May 28, 2024

halyard不就是利用configmap挂载成volume实现的吗

from spinnaker-compose.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.