openshift暴露出来的kubernetesapi是原来的kubernetesapi吗?

Is the kubernetes api exposed by openshift the original kubernetes api?

Openshift 公开了一个 Kubernetes api。 Spinnaker 等工具可以在本地访问 Kubernetes。

我想通过 Spinnaker 访问 Openshift 公开的 Kubernetes API。

Openshift暴露的Kubernetesapi是原始Kubernetesapi还是修改版? 如果它是原始的 API 应该可以直接从 Spinnaker 访问它?

来自 https://www.openshift.com/container-platform/kubernetes.html and https://docs.openshift.com/enterprise/3.0/rest_api/kubernetes_v1.html, it can be seen that Openshift includes the original k8s API (v1). Apart from that, it also includes its own API group with custom API objects (https://docs.openshift.com/enterprise/3.0/rest_api/openshift_v1.html). So, as long as you want to use API v1 elements, you can access the API just as you would do with vanilla Kubernetes. Examples of API access can be seen here https://docs.openshift.com/container-platform/3.5/rest_api/index.html#rest-api-example-curl。如果可以用curl访问,Spinnaker应该没问题。

编辑:正如 Graham Dumpleton 在评论中所说,您可能需要配置一些 RBAC 策略以允许您的用户访问:https://docs.openshift.com/enterprise/3.0/admin_guide/manage_authorization_policy.html