OpenShift Origin Singnal Node 安装
openshift origin 是用来支持 openshift 产品的一个上游社区项目,围绕 Docker 容器和 Kubernetes 集群技术,一套来进行应用生命周期管理的 DevOps 工具,它提供了一个完整的开源容器应用平台。
与 openshift 类型的产品 有 Pivotal 公司 (中国官网)的 CloudFoundry 和 Rancher,国内 Ranchard 的接受度是远高于 Openshift。
- Pivotal公司是由EMC和VMware联合成立的一家子公司,主要产品有 CloudFoundry/Spring(SpringBoot/SpringCould)。
-
Rancher是全球唯一提供Kubernetes、Mesos和Swarm三种调度工具的企业级分发版和商业技术支持的容器管理平台
-
Deis Build powerful, open source tools that make it easy for teams to create and manage applications on Kubernetes. Projects: Workflow/Helm/Steward
-
Eldarion Hands-free DevOps powered by Kubernetes. Eldarion uniquely offers expert, white-glove DevOps services together with a new, highly-scalable PaaS.
Kubernetes Platform as a Service providers
- Deis Workflow – Deprecated Public Releases
- Kel
- WSO2
- Kumoru – Deprecated – Not Official
- Rancher
- OpenShift Origin
- Eldarion Cloud
- IBM Bluemix Container Service
在线文档地址: https://docs.openshift.org/index.html OpenShift Origin 3.6 Documentation
版本关系图:
Docker K8S 与Openshift版本对应关系图: (kubernets创建于 2014-06-06)
备注: Centos 7.2 版本,已经安装了 docker 版本
# docker version
Client:
Version: 17.03.1-ce
API version: 1.27
Go version: go1.7.5
Git commit: c6d412e
Built: Mon Mar 27 17:05:44 2017
OS/Arch: linux/amd64
Server:
Version: 17.03.1-ce
API version: 1.27 (minimum version 1.12)
Go version: go1.7.5
Git commit: c6d412e
Built: Mon Mar 27 17:05:44 2017
OS/Arch: linux/amd64
Experimental: false
# 如果未安装则可用一下命令安装
# yum install docker
# systemctl start docker
安装步骤:
# hostnamectl
Static hostname: teambition
Icon name: computer-vm
Chassis: vm
Machine ID: 99a0b5c74c754c0c8d94775a4d1a753a
Boot ID: e4d29bee23a64794ac9c13408846e90a
Virtualization: vmware
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-514.el7.x86_64
Architecture: x86-64
# yum makecache fast
# setenforce 0
# yum list all | grep openshift # OpenShift 3.6的版本,集成的K8s 1.6
# yum info centos-release-openshift-origin36.noarch
# yum install centos-release-openshift-origin36
# yum install centos-release-openshift-origin36.noarch
# rpm -ql centos-release-openshift-origin36.noarch
# yum install origin
# openshift start
# openshift version
openshift v3.6.1+008f2d5
kubernetes v1.6.1+5115d708d7
etcd 3.2.1
登录:
https://masterip:8443 信任默认证书,默认用户名为 test:test
启动过程中错误处理:
misconfiguration: kubelet cgroup driver: “cgroupfs” is different from docker cgroup driver: “systemd”](https://github.com/kubernetes/kubernetes/issues/43805)
$ systemctl cat docker
$ vim /usr/lib/systemd/system/docker.service
ExecStart=/usr/bin/dockerd --exec-opt native.cgroupdriver=systemd
$ systemctl daemon-reload
$ systemctl restart docker