1.下载https://github.com/openshift/origin/releases
并且上传到360云盘 /Postgraduate/云计算/Openshift Origin相关/安装包
2.二进制包安装好,学习下面的基础教程
2.1.安装
https://docs.openshift.org/latest/getting_star
ted/administrators.html#getting-started-administrators
2.2.视频教程
https://access.redhat.com/videos/1606273
2.3.需要CLI
https://docs.openshift.org/latest/cli_reference/get_started_cli.html#cli-reference-get-started-cli
2.4.进入web console的网址:https:127.0.0.1:8443   (注意是https,然后打开的时候会有不安全的提示,别管他)
2.5 Web Console Authentication
https://docs.openshift.org/latest/dev_guide/authentication.html#dev-guide-authentication
3.发现ubuntu不是很友好,且运行console,图形化管理的话,需要一些制约条件
后面发现Ubuntu 下面的firefox也是可以运行的

https://docs.openshift.org/latest/architecture/infrastructure_components/web_console.html#architecture-infrastructure-components-web-console
正式生产的分布式环境下的条件
https://docs.openshift.org/latest/install_config/install/prerequisites.html#install-config-install-prerequisites

5.控制台发布应用,往下拉
https://docs.openshift.org/latest/dev_guide/new_app.html
创建templete和instant app
https://docs.openshift.org/latest/dev_guide/templates.html
默认不导入Default Images,查看下面的链接
https://docs.openshift.org/latest/install_config/imagestreams_templates.html#install-config-imagestreams-templates
首先需要 
Deploying a Docker Registry
https://docs.openshift.org/latest/install_config/install/docker_registry.html#install-config-install-docker-registry
按照下面的命令。总是找不到admin.kubeconfig, 

运行/oadm registry —help,发现发现可以不带参数运行registery
Install or configure an integrated Docker registry
This command sets up a Docker registry integrated with your cluster to provide notifications when
images are pushed. With no arguments, the command will check for the existing registry service
called 'docker-registry' and try to create it. If you want to test whether the registry has
been created add the --dry-run flag and the command will exit with 1 if the registry does not
exist. 
6.权限不够,无法创建docker registry
https://docs.openshift.org/latest/architecture/additional_concepts/authorization.html#roles
需要在 cluster policy or in a local policy.中定义各个角色
https://docs.openshift.org/latest/architecture/additional_concepts/authorization.html#roles
看下面关于policy的建议和例子
https://github.com/openshift/origin/blob/master/docs/proposals/policy.md
修改权限,查看policy的命令
https://docs.openshift.org/latest/admin_guide/manage_authorization_policy.html#viewing-cluster-roles
查看cluster级别的
oc describe clusterPolicy default
6.1默认的admin和test账户都无法查看cluster级别的policy
需要权限,国外开发组的邮件
Did you already log in as user test? Only a cluster admin can give that role to another user, so you need to run that command as the bootstrap cluster admin user. The credentials for that user are in the admin.kubeconfig file on the API server.
oadm policy add-cluster-role-to-user cluster-admin test --config=/home/zhk/Downloads/openshift-origin-server-v1.3.0-alpha.2-983578e-linux-64bit/openshift.local.config/master/admin.kubeconfig

You can add and remove roles to and from users and groups using oadm policy commands.
利用oadm policy命令修改policy
admin.kubeconfig文件是在
/root/Downloads/openshift-origin-server-v1.3.0-alpha.2-983578e-linux-64bit/openshift.local.config/master
或者(后面的centos)
/home/zhk/Downloads/openshift-origin-server-v1.3.0-alpha.2-983578e-linux-64bit/openshift.local.config/master
角色授予成功后,test下面会多出 3个project,这就证明角色已经分配给test了。

6.3 oadm policy add-cluster-role-to-user <role> <username>
增加cluster级别的角色给某个用户
但是跑下面的命令,却没有权限查看

1.templates相当于应用程序模版,
https://docs.openshift.org/latest/dev_guide/templates.html#dev-guide-templates
2.导入默认的install-config-imagestreams-templates
https://docs.openshift.org/latest/install_config/imagestreams_templates.html#install-config-imagestreams-templates
3.admin.kubeconfig文件是在
/root/Downloads/openshift-origin-server-v1.3.0-alpha.2-983578e-linux-64bit/openshift.local.config/master
即在master节点下面

7.根据下面的链接尝试创建集成的docker  registry

https://docs.openshift.org/latest/install_config/install/docker_registry.html#install-config-install-docker-registry
oadm registry --config=/root/Downloads/openshift-origin-server-v1.3.0-alpha.2-983578e-linux-64bit/openshift.local.config/master/admin.kubeconfig --service-account=registry
1.第一步,运行上面的命令 
根据此次命令的运行,可能命令行加上参数 —config=admin.kubeconfig的时候,当前用户就拥有了全局的权限吧。可能是之前没有理解下面红框内的英文的意思。
根据上面的链接,只执行了第一步,后面的什么deploy the registry as a daemons对于导入默认的instant app和template貌似并不是要求的,所以先放一放。目前,test用户拥有最高权限
8.目前根据https://docs.openshift.org/latest/install_config/imagestreams_templates.html
已经完成下面这4个步骤。 
9.
可见,集成默认的instant app和template就是在操作open shift这个project,从命令行的参数 -n open shift可以看出来,目前,test用户因为有了cluster-admin的角色,所以可以查看open shift这个project了
10.
单核的阿里云的ubuntu执行起来比较慢,但是登录vnc查看远程桌面的话,发现终端是一直在执行脚本的,导致ssh这边看上去好像卡住了一样,耐心等待

Openshift Origin开发日记 1 - 10相关推荐

  1. Openshift Origin开发日记 11-20

    11. 至此,登录一个用户,比如test,add to project点击之后,可以发现现在可以选择template了 12.根据下面的视频链接,测试下 https://access.redhat.c ...

  2. 在MacPro上安装 openshift origin

    mac 上安装openshift origin 最近在研究openshift,但是官网的online环境申请人数太多,比较慢,再一个就是官网已经暂停注册.所以才在本机搞个origin玩玩. " ...

  3. 开发日记-20190513 关键词 汇编语言(六)

    其实,每次当我写一篇开发日记,并且这篇开发日记并没有关键词,或者我并没有和你扯东扯西的情况下... 这意味着我这天偷懒了= = ;AddTwo.asm --两个32位整数相加.386.model fl ...

  4. LayIM.AspNetCore Middleware 开发日记(一)闲言碎语

    前言 前几天写博客的时候突然看见了历史上的今天.不禁感慨时光如梭,这系列博客后来被我标注了已经过时,但是还有很多小伙伴咨询我.既然过时就要更新,正好 .NET Core 也出来很久了,于是乎想到把La ...

  5. OpenShift Origin中的Kubernetes Spark运算符(第1部分)

    本系列有关Radanalytics.io的Kubernetes Spark运算符 OpenShift起源 . 它是一个开源的运营商来管理 Apache Spark集群和应用程序. 为了在OpenShi ...

  6. Linux 小程序开发日记(终章)(pyqt+yolov5)

    Linux 小程序开发日记(终章) 哈喽大家好,我是爱喝欢乐水的柳橙汁,这一篇,是最后一篇啦.我会将所有个过程都梳理一遍. 关于代码的详细注释,大家就参考一下之前的笔记吧.这一篇博客我就放上我精简的代 ...

  7. python疲劳检测代码_【君奉天|开发日记】疲劳驾驶检测

    我之前写的关于DuerOS开发日记: 今天看了2017百度世界大会上李彦宏董事长介绍了百度的疲劳驾驶检测,正好我之前阿德里安·罗斯布鲁克的文章中介绍了利用Facial landmarks + drow ...

  8. 开发日记2021-17、20周

    2021-4-19 温习了下观察者模式,学习了状态模式. 但是感觉状态模式不是太能把握透彻,代码结构不太一样,理解起来有些偏差. 写着写着就陷入到了沉思中,总会忘记要把想法记下来. 这里就是草稿就是思 ...

  9. YunTable开发日记(16)-教程(0.9版RC)

    为了帮助广大初学者能尽快上手YunTable,我代表整个YunTable核心团队写一篇使用教程,原因很简单,那就是我写文章比较熟练,呵呵:) 本教程将首先给大家介绍YunTable的架构和命令接口,以 ...

最新文章

  1. 数组面试题--数组求和
  2. python提取txt中指定内容_提取视频中的音频,Python三行程序搞定!
  3. Ubutnu中ln创建软连接失败
  4. MATLAB制作简易小动画入门详解
  5. 使用pycharm创建Django项目
  6. kindeditor富文本编辑器下载使用
  7. 数学模型——数学与人类文明的桥梁
  8. gimp:图层的混合模式
  9. 【自动控制原理_B站网课笔记】开环系统Nyquist曲线绘制
  10. CreateProcessAsUser的用法
  11. npm audit fix命令使用
  12. 十二.vue-resourse实现get,post,jsonp请求
  13. Ubuntu系统---安装“搜狗拼音法”导致桌面打不开
  14. 使用SquirrelMail配置Webmail系统,并实现通Macallan Mail Solution邮件服务器的连接
  15. Golang洗牌算法
  16. IDC许可证是什么,如何办理IDC增值电信业务经营许可证年报
  17. rust火箭基地主楼开启方法_新版rust火箭基地通电的地方在哪里 | 手游网游页游攻略大全...
  18. 程序员面试到底面什么?
  19. 自架 Android BT / NAS 機:超靜音超省錢超低功耗
  20. Python3 表格超链接

热门文章

  1. HP中国区总裁孙振耀的退休感言1
  2. android虚拟机详解
  3. C++11学习笔记: auto关键字
  4. selenium之下拉选择框
  5. antd vue 表格排序升序
  6. hackinglab基础关--第七关
  7. Javaweb:Servlet过滤器以及常见应用展示
  8. asp作品借书网 asp.net期末作品ASP.NET简单图书管理系统
  9. 全栈工程师就是一棵歪脖子树【转载】
  10. pythonxpath定位_selenium+python自动化-xpath定位语法