cockpit on openshift origin
来源:互联网 发布:毕向东java教程35天版 编辑:程序博客网 时间:2024/06/07 03:12
Used as a Kubernetes Pod
The Kubernetes dashboard can be deployed as a pod on Kubernetes requiring users to log in using the standard standard authentication configured for access to its API.
$wget https://raw.githubusercontent.com/cockpit-project/cockpit/master/containers/kubernetes-cockpit.json
$kubectl create -f kubernetes-cockpit.json
This pod can be used on kubernetes that is configured with basic authentication. By default the pod tries to access the kubernetes API securely and expects that the kubernetes API server has been deployed with a CA, certificate files and service account key. In order to change this behavior, edit the kubernetes-cockpit.json and change theKUBE_INSECURE environment variable to true.
You can retrieve the address where you can access the dashboard via:
$kubectl get service kubernetes-cockpit
Used as an Openshift Pod
The Kubernetes dashboard can be deployed as a pod on Openshift, and use Openshift OAuth authentication. Running software on Openshift requires forethought, planning and configuration. In particular, in order to run the admin interface as a pod you need to first decide the host name that it will be accessible at. This is the host name part of its URL.
Next use the following commands to deploy the registry pod and service. You'll need to have admin access to the Openshift cluster, as an OAuth client needs to be created. Replace the XXX with the host name you want to make the registry accessible at. In addition replace YYY with the host name of the Openshift API server.
$wget https://raw.githubusercontent.com/cockpit-project/cockpit/master/containers/openshift-cockpit.template
$oc process -f openshift-cockpit.template -v COCKPIT_KUBE_URL=https://XXX -v OPENSHIFT_OAUTH_PROVIDER_URL=https://YYY:8443 | oc create -f -
You can retrieve the address where you can access the dashboard via:
$oc get service openshift-cockpit
openshift origin部署
oc process -f openshift-cockpit.template -p COCKPIT_KUBE_URL=https://cockpit.xx.net -p OPENSHIFT_OAUTH_PROVIDER_URL=https://openshift-clsuter.xx.net:8443 | oc create -f -
开始时候一直没搞成功,参考这里
https://hub.docker.com/r/cockpit/kubernetes/
Deploy on OpenShift, Origin or Atomic Platform
WARNING: By default OpenShift, Origin, and Atomic Platform allow ANY non-empty username/password access via oauth. You should almost always change this configuration before deploying this container. See https://docs.openshift.org/latest/install_config/configuring_authentication.html for more information.
Cockpit will use the OpenShift OAuth server to authenticate users. You need to provide the pod with the public url for the OpenShift OAuth server and provide OpenShift with the public url that will be used to access this service.
oc process -f containers/openshift-cockpit.template
-v COCKPIT_KUBE_URL=https://ip-or-domain -v OPENSHIFT_OAUTH_PROVIDER_URL=https://ip-or-domain:port | oc create -f -
执行完事后新建route
然后点route url就可以访问了。(我把系统默认带的registry-console干掉了在访问的)
参考如下:
Enabling the Registry Console
OpenShift Container Platform provides a web-based interface to the integrated registry. This registry console is an optional component for browsing and managing images. It is deployed as a stateless service running as a pod.
If you installed OpenShift Container Platform as a stand-alone registry, the registry console is already deployed and secured automatically during installation.
If Cockpit is already running, you'll need to shut it down before proceeding in order to avoid a port conflict (9090 by default) with the registry console.
效果如下:
- cockpit on openshift origin
- OpenShift Origin 排错
- openshift origin v1.5.0安装
- Openshift Origin开发日记 1
- Install Cockpit on Fedora/CentOS/RHEL
- 在MacPro上安装 openshift origin
- openshift origin simple-app报错解决
- OpenShift Origin v3.7 配置NFS存储
- Openshift Origin开发日记 11-20
- OpenShift Origin v3.7 创建router
- OpenShift Origin v3.7 端口转发
- JImmy的文档: 搭建集群版openshift origin-1.5.0
- openshift/origin学习记录(3)——添加Registry
- [Openshift Origin 3]OpenShift 3 : 基于Docker的私有PaaS平台
- openshift/origin学习记录(0)——Ansible安装多节点openshift集群
- MacOS with Docker for Mac[使用oc cluster up 安装openshift origin]
- Jimmy 的文档: 单机版openshift origin-1.5.0安装配置和简单实例
- openshift/origin学习记录(1)——基于二进制文件的安装(单机版)
- 矩阵快速幂的应用——优化递推过程
- MySQL 语句
- CNN入门详解及TensorFlow源码实现--深度学习笔记
- 深入分析Parquet列式存储格式
- CBitmap,HBitmap,Bitmap区别及联系
- cockpit on openshift origin
- vue.js 双层嵌套 for 遍历方法, 类似php foreach()
- WebViewJavascriptBridge的简单封装
- Hibernate与 MyBatis的比较
- 数据挖掘学习笔记四
- Selenium Webdriver API-Robot对象操作键盘
- Android课程表的设计开发
- bzoj 2437: [Noi2011]兔兔与蛋蛋 (二分图博弈+dinic)
- 雏鹰开发附件1 – Spring相关Maven配置