欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
OpenShift
来自开放百科 - 灰狐
(版本间的差异)
小 (→其它) |
小 (→macOS) |
||
第23行: | 第23行: | ||
==安装== | ==安装== | ||
+ | ===Docker=== | ||
+ | $ sudo docker run -d --name "origin" \ | ||
+ | --privileged --pid=host --net=host \ | ||
+ | -v /:/rootfs:ro -v /var/run:/var/run:rw -v /sys:/sys -v /sys/fs/cgroup:/sys/fs/cgroup:rw \ | ||
+ | -v /var/lib/docker:/var/lib/docker:rw \ | ||
+ | -v /var/lib/origin/openshift.local.volumes:/var/lib/origin/openshift.local.volumes:rslave \ | ||
+ | openshift/origin start | ||
+ | $ sudo docker exec -it origin bash | ||
+ | |||
===macOS=== | ===macOS=== | ||
使用[[Homebrew]] | 使用[[Homebrew]] |
2018年4月17日 (二) 07:17的版本
OpenShift 是 Red Hat 推出的 Platform as a Service (PaaS) 开源云平台。
OpenShift 3 使用 Docker 和 Kubernetes 帮助用户构建、部署和管理他们的应用。
简介
OpenShift Origin is a platform for developing, building, and deploying containerized applications.
版本
- Announcing the OpenShift Container Platform 3.5 GA
- Announcing the Release of OpenShift Origin V4
- What's New in OpenShift 3.3 – Cluster Management Web Console Enterprise Container Registry Developer Experience
- Origin 1.1 and OpenShift 3.1
- OpenShift V3 Deep Dive Tutorial | The Next Generation of PaaS
- Origin 1.0 and OpenShift 3
产品
- OpenShift Origin:开源云PaaS
- OpenShift Online:公有云PaaS
- OpenShift Enterprise:私有云PaaS
标准
安装
Docker
$ sudo docker run -d --name "origin" \ --privileged --pid=host --net=host \ -v /:/rootfs:ro -v /var/run:/var/run:rw -v /sys:/sys -v /sys/fs/cgroup:/sys/fs/cgroup:rw \ -v /var/lib/docker:/var/lib/docker:rw \ -v /var/lib/origin/openshift.local.volumes:/var/lib/origin/openshift.local.volumes:rslave \ openshift/origin start $ sudo docker exec -it origin bash
macOS
使用Homebrew
$ brew cask install minishift $ brew cask install --force minishift
其它
- Minikube Run Kubernetes locally
- Minishift Run OpenShift locally
使用Minishift快速部署,使用xhyve hypervisor启动本地OpenShift集群。
$ brew install --HEAD xhyve $ brew cask install minishift $ brew install docker-machine-driver-xhyve $ sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve $ sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve $ minishift start $ minishift ip $ minishift oc-env $ oc new-app https://github.com/openshift/nodejs-ex -l name=myapp $ oc logs -f bc/nodejs-ex $ oc expose svc/nodejs-ex $ minishift openshift service nodejs-ex --in-browser $ minishift image list --vm $ minishift addons list $ minishift stop
或 OpenShift Origin Virtual Machine Deployment Guide
在一个空目录下:
$ vagrant init openshift/origin-all-in-one $ vagrant up --provider=virtualbox
升级
$ vagrant up $ vagrant box update --box openshift/origin-all-in-one $ vagrant destroy --force $ vagrant up --provider=virtualbox
卸载
$ vagrant halt $ vagrant destroy --force $ vagrant box remove --force openshift/origin-all-in-one
下载oc,并加入path
oc version
之前版本安装步骤:
下载OpenShift Vagrant VirtualBox VM快速体验,可从百度云盘下载2.8G的镜像文件。
vagrant box add openshift3 openshift-bootstrap-1.1.box vagrant up vagrant ssh passwd 输入新密码,如:huihoo.io oc version oc get svc NAME CLUSTER_IP EXTERNAL_IP PORT(S) SELECTOR AGE docker-registry 172.30.236.154 <none> 5000/TCP docker-registry=default 67d kubernetes 172.30.0.1 <none> 443/TCP,53/UDP,53/TCP <none> 67d router 172.30.233.69 <none> 80/TCP router=router 67d https://localhost:8443/console https://localhost:8443/swaggerapi/api/v1 https://localhost:8443/swaggerapi/oapi/v1 system/admin test/test
Using OpenShift 3 on your local environment
- 运行一个Docker容器
- 下载二进制包
- 编译源代码
生态系统
语言支持
Python
- Getting Started With Python you can easily deploy and run Python applications.
Go
Java
Web Console
网络
存储
OpenShift的存储应该是其一大亮点。
OpenShift 支持以下的 PersistentVolume 插件:
- NFS
- HostPath (single node testing only)
- GlusterFS
- Ceph RBD
- OpenStack Cinder
- AWS Elastic Block Store (EBS)
- GCE Persistent Disk
- iSCSI
- Fibre Channel
区块链
IoT
OpenShift PEPs
- OpenShift PEP 010: Cartridge V3 and Docker Containers
- OpenShift PEP 013: OpenShift 3.x System Design
Application
Source-To-Image(S2I)
Marketplace
Commons
Kubernetes
Prometheus
系统监控、告警、pull metrics and push alters、时序数据库。
- Exporters and integrations 支持和集成大量第三方产品和服务
- Prometheus 1.0 on OpenShift: PostgreSQL Metrics Collection
OpenStack
- OpenShift on OpenStack
- Introducing OpenShift on OpenStack Special Interest Group
- Docker on OpenStack
- Setting up OpenShift 3 on OpenStack
CI/CD/Jenkins
- OpenShift V3 Plugin for Jenkins
- Jenkins Docker Image
- CI/CD with OpenShift
- Pipelines with Jenkins 2 on OpenShift
- OpenShift Ecosystem: Ultimate DevOps with CloudBees Jenkins Enterprise and OpenShift
- OpenShift Ecosystem: Continuous Integration with Diamanti
- Jenkins Pipeline plugin
- jenkins-kubernetes-plugin
- Jenkins Slaves in OpenShift Using an External Jenkins Environment
更多有关 OpenShift with Jenkins的文章>>>
Akka
Apache Spark
Apache Kafka
- Kafka as a Service running on Kubernetes and OpenShift
Casandra
- Origin Metrics使用Casandra做metric datastore。
Ansible
API/Nginx
- OpenShift Ecosystem: Implementing the NGINX Proxy Model on Red Hat OpenShift
- Building Microservices: Using an API Gateway
- OpenShift Ecosystem: API Management on Red Hat OpenShift with 3scale
Jupyter
- Jupyter on OpenShift: Using OpenShift for Data Analytics
- Jupyter on OpenShift Part 2: Using Jupyter Project Images
- Jupyter on OpenShift Part 3: Creating a S2I Builder Image
- Jupyter on OpenShift Part 4: Adding a Persistent Workspace
- Jupyter on OpenShift Part 5: Ad-hoc Package Installation
- Jupyter on OpenShift Part 6: Running as an Assigned User ID
- Jupyter on OpenShift Part 7: Adding the Image to the Catalog
用户
开发者
文档
- 红帽 OpenShift 的业务价值
- 平台即服务、DevOps和应用集成:加速交付应用新途径
- OpenShift 3 Technical Architecture
- OpenShift 3 and The Next Generation of PaaS
- Using OpenShift & PaaS to accelerate DevOps & Continuous Delivery
图集
链接
- OpenShift官网
- 红帽OpenShift
- Awesome Linux Containers
- OpenShift官方博客
- OpenShift @ GitHub
- OpenShift Origin
- OpenShift CI
- OpenShift Enterprise
- AtomicOpenShift @ Trello
- OpenShift文档
- OpenShift Developer Portal
- OpenShift负责人谈PaaS、Docker、Kubernetes及与CloudFoundry的竞争
- Building on Kubernetes: Bringing Google-Scale Container Orchestration and Management to the Enterprise
- OpenShift, Kubernetes, Docker and Apache Hadoop YARN
- OpenShift V3 Deep Dive Tutorial | The Next Generation of PaaS
- 开源巨头Red Hat发布首个OpenShift区块链倡议
分享您的观点