管理节点路由

在 DC/OS 管理节点上运行 Admin Router

Admin Router 在 DC/OS 管理节点上运行。它显示下面所示的 API 路由。Admin Router 侦听端口 80 (HTTP) 和 443 (HTTPS)。

有关 API 路由方式的详细信息,请参阅 DC/OS API 参考

Routes

Show/Hide All

Legend

  • Proxy retrieves resources from another address.
  • File retrieves static files.
  • Lua executes Lua code to generate response.
  • Redirect redirects to another address.
  • Rewrite retrieves resources from another route.

  • Root

    Show/Hide

    • File /

      DC/OS GUI

      Path:/opt/mesosphere/active/dcos-ui/usr
  • Agent

    Show/Hide

    • Proxy /(slave|agent)/(?[0-9a-zA-Z-]+)(?.+)

      API proxy to a specific agent node

      Rewrite:
      Regex:^/(slave|agent)/[0-9a-zA-Z-]+/.*$
      Replacement:$url
      Type:break
      Proxy:
      Path:$agentaddr:$agentport
  • Authentication

    Show/Hide

  • Capabilities

    Show/Hide

    • Proxy /capabilities

      List of capabilities supported by DC/OS

      Path:$upstream_cosmos
  • Certificate Authority

    Show/Hide

    • Proxy /ca/api/v2/(newcert|newkey|sign)

      Certificate Signing Request (CSR)

      Rewrite:
      Regex:^/ca/api/v2/(.*)
      Replacement:/api/v1/cfssl/$1
      Type:break
      Proxy:
      Path:http://$backend~ /ca/api/v2/(newcert|newkey|sign)$
      Server:127.0.0.1:8888
      Backend:DC/OS Certificate Authority
      API Reference:https://docs.d2iq.com/1.11/security/ent/tls-ssl/ca-api/
    • Proxy /ca/api/v2/bundle

      Retrieve certificate chain without root CA cert for provided certificate

      Rewrite:
      Regex:^/ca/api/v2/(.*)
      Replacement:/api/v1/cfssl/$1
      Type:break
      Proxy:
      Path:http://$backend= /ca/api/v2/bundle
      Server:127.0.0.1:8888
      Backend:DC/OS Certificate Authority
      API Reference:https://docs.d2iq.com/1.11/security/ent/tls-ssl/ca-api/
    • Proxy /ca/api/v2/info

      Certificate and basic signing information

      Rewrite:
      Regex:^/ca/api/v2/(.*)
      Replacement:/api/v1/cfssl/$1
      Type:break
      Proxy:
      Path:http://$backend= /ca/api/v2/info
      Server:127.0.0.1:8888
      Backend:DC/OS Certificate Authority
      API Reference:https://docs.d2iq.com/1.11/security/ent/tls-ssl/ca-api/
    • File /ca/cacerts.jks

      Get CA public key Java Key Store file (unauthenticated)

      Path:/run/dcos/pki/CA/certs/cacerts.jks
    • File /ca/dcos-ca.crt

      Get CA public key Privacy Enhanced Mail file (unauthenticated)

      Path:/run/dcos/pki/CA/ca-bundle.crt
  • Cluster

    Show/Hide

  • CockroachDB

    Show/Hide

    • Redirect /cockroachdb

      Redirect to the CockroachDB Admin UI

      Regex:^/cockroachdb$
      Replacement:$scheme://$http_host/cockroachdb/
      Type:permanent
    • Proxy /cockroachdb/

      The CockroachDB Admin UI

      Path:https://$backend/
      Server:127.0.0.1:8090
      Backend:CockroachDB
      API Reference:https://www.cockroachlabs.com/
  • Cosmos

    Show/Hide

    • Proxy /cosmos/service/

      Start a DC/OS service from a DC/OS package

      Rewrite:
      Regex:^/cosmos/(.*)
      Replacement:/$1
      Type:break
      Proxy:
      Path:$upstream_cosmos
  • DC/OS Net

    Show/Hide

  • Exhibitor

    Show/Hide

  • History

    Show/Hide

    • Proxy /dcos-history-service/

      Path:$historyservice_upstream
  • Marathon

    Show/Hide

    • Rewrite /marathon/

      Rewrite:
      Regex:^/marathon/(.*)$
      Replacement:/service/marathon/$1
      Type:last
      Deprecated:Use /service/marathon/
  • Mesos

    Show/Hide

    • Proxy /mesos/

      Apache Mesos

      Rewrite:
      Regex:^/mesos/(.*)
      Replacement:/$1
      Type:break
      Proxy:
      Path:$upstream_mesos
  • Mesos DNS

    Show/Hide

  • Metadata

    Show/Hide

    • File /dcos-metadata/bootstrap-config.json

      DC/OS bootstrap configuration

      Path:/opt/mesosphere/etc/bootstrap-config.json
    • File /dcos-metadata/dcos-version.json

      DC/OS version (unauthenticated)

      Path:/opt/mesosphere/active/dcos-metadata/etc/dcos-version.json
    • File /dcos-metadata/ui-config.json

      DC/OS GUI configuration (unauthenticated)

      Path:/opt/mesosphere/etc/ui-config.json
    • Lua /metadata

      Public IP and Cluster ID

      Path:conf/lib/metadata.lua
  • Network Metrics

    Show/Hide

    • Proxy /networking/api/v1/

      Networking-related metrics

      Rewrite:
      Regex:^/networking/api/v1/(.*)
      Replacement:/$1
      Type:break
      Proxy:
      Path:$upstream_dcos_netapi
  • Other

    Show/Hide

  • Package

    Show/Hide

    • Proxy /package/

      Package Management

      Path:$upstream_cosmos
  • Pkgpanda

    Show/Hide

  • Secrets

    Show/Hide

    • Proxy /secrets/v1/

      Securely store and retrieve secrets

      Path:$upstream_secrets
  • Service

    Show/Hide

    • Proxy /service/(?.+)

      Proxy to services running on DC/OS

      Path:$upstream_url
  • System

    Show/Hide