部署对象式存储minio
运维主机HDSS7-200.host.com
上:
准备docker镜像
镜像下载地址
1 |
[root@hdss7-200 ~]# docker pull minio/minio:latest |
准备资源配置清单
vi /data/k8s-yaml/minio/deployment.yaml
1 |
kind: Deployment |
vi /data/k8s-yaml/minio/svc.yaml
1 |
apiVersion: v1 |
vi /data/k8s-yaml/minio/ingress.yaml
1 |
kind: Ingress |
解析域名
HDSS7-11.host.com
上
1 |
minio 60 IN A 10.4.7.10 |
应用资源配置清单
任意运算节点上:
1 |
[root@hdss7-21 ~]# kubectl apply -f https://k8s-yaml.od.com/minio/deployment.yaml |
浏览器访问
http://minio.od.com
部署Redis
准备docker镜像
运维主机HDSS7-200.host.com
上:
镜像下载地址
1 |
[root@hdss7-200 ~]# docker pull redis:4.0.14 |
准备资源配置清单
vi /data/k8s-yaml/redis/deployment.yaml
1 |
kind: Deployment |
vi /data/k8s-yaml/redis/svc.yaml
1 |
apiVersion: v1 |
应用资源配置清单
任意运算节点上:
1 |
[root@hdss7-21 ~]# kubectl apply -f https://k8s-yaml.od.com/redis/deployment.yaml |
部署CloudDriver
运维主机HDSS7-200.host.com
上:
准备docker镜像
镜像下载地址
1 |
[root@hdss7-200 ~]# docker pull quay.io/container-image/spinnaker-clouddriver:4.3.0-20190128134206 |
准备cluster-admin用户配置
运维主机HDSS7-200.host.com
上:
-
签发admin.pem、admin-key.pem
参考实验文档1
-
做admin.kubeconfig
1 |
[root@hdss7-200 certs]# kubectl config set-cluster myk8s --certificate-authority=./ca.pem --embed-certs=true --server=https://10.4.7.10:7443 --kubeconfig=config |
-
验证
将config文件拷贝至任意运算节点/root/.kube下,使用kubectl验证
-
创建cm
1 |
[root@hdss7-21 .kube]# kubectl create cm kubeconfig --from-file=config -n spinnaker |
准备资源配置清单
vi /data/k8s-yaml/clouddriver/cm.yaml
1 |
kind: ConfigMap |
vi /data/k8s-yaml/clouddriver/deployment.yaml
1 |
apiVersion: extensions/v1beta1 |
vi /data/k8s-yaml/clouddriver/svc.yaml
1 |
apiVersion: v1 |
应用资源配置清单
任意一台运算节点上:
1 |
[root@hdss7-21 ~]# kubectl apply -f http://k8s-yaml.od.com/clouddriver/cm.yaml |
部署Front50
运维主机HDSS7-200.host.com
上:
准备docker镜像
镜像下载地址
1 |
[root@hdss7-200 ~]# docker pull quay.io/container-image/spinnaker-front50:0.15.0-20190123154713 |
准备资源配置清单
vi /data/k8s-yaml/front50/cm.yaml
1 |
kind: ConfigMap |
vi /data/k8s-yaml/front50/deployment.yaml
1 |
apiVersion: extensions/v1beta1 |
vi /data/k8s-yaml/front50/svc.yaml
1 |
apiVersion: v1 |
应用资源配置清单
任意一台运算节点上:
1 |
[root@hdss7-21 ~]# kubectl apply -f http://k8s-yaml.od.com/front50/cm.yaml |
浏览器访问
http://minio.od.com
登录并观察存储是否创建
部署Orca
运维主机HDSS7-200.host.com
上:
准备docker镜像
镜像下载地址
1 |
[root@hdss7-200 ~]# docker pull quay.io/container-image/spinnaker-orca:2.3.0-20190128134206 |
准备资源配置清单
vi /data/k8s-yaml/orca/cm.yaml
1 |
kind: ConfigMap |
vi /data/k8s-yaml/orca/deployment.yaml
1 |
apiVersion: extensions/v1beta1 |
vi /data/k8s-yaml/orca/svc.yaml
1 |
apiVersion: v1 |
应用资源配置清单
任意一台运算节点上:
1 |
[root@hdss7-21 ~]# kubectl apply -f http://k8s-yaml.od.com/orca/cm.yaml |
部署Echo
运维主机HDSS7-200.host.com
上:
准备docker镜像
镜像下载地址
1 |
[root@hdss7-200 ~]# docker pull quay.io/container-image/spinnaker-echo:2.3.0-20190123200115 |
准备资源配置清单
vi /data/k8s-yaml/echo/cm.yaml
1 |
kind: ConfigMap |
vi /data/k8s-yaml/echo/deployment.yaml
1 |
apiVersion: extensions/v1beta1 |
vi /data/k8s-yaml/echo/svc.yaml
1 |
apiVersion: v1 |
应用资源配置清单
任意一台运算节点上:
1 |
[root@hdss7-21 ~]# kubectl apply -f http://k8s-yaml.od.com/echo/cm.yaml |
部署Igor
运维主机HDSS7-200.host.com
上:
准备docker镜像
镜像下载地址
1 |
[root@hdss7-200 ~]# docker pull quay.io/container-image/spinnaker-igor:1.1.0-20190123154713 |
准备资源配置清单
vi /data/k8s-yaml/igor/cm.yaml
1 |
kind: ConfigMap |
vi /data/k8s-yaml/igor/deployment.yaml
1 |
apiVersion: extensions/v1beta1 |
vi /data/k8s-yaml/igor/svc.yaml
1 |
apiVersion: v1 |
应用资源配置清单
任意一台运算节点上:
1 |
[root@hdss7-21 ~]# kubectl apply -f http://k8s-yaml.od.com/igor/cm.yaml |
部署Gate
运维主机HDSS7-200.host.com
上:
准备docker镜像
镜像下载地址
1 |
[root@hdss7-200 ~]# docker pull quay.io/container-image/spinnaker-gate:1.5.0-20190123154713 |
准备资源配置清单
vi /data/k8s-yaml/gate/cm.yaml
1 |
kind: ConfigMap |
vi /data/k8s-yaml/gate/deployment.yaml
1 |
apiVersion: extensions/v1beta1 |
vi /data/k8s-yaml/gate/svc.yaml
1 |
apiVersion: v1 |
vi /data/k8s-yaml/gate/ingress.yaml
1 |
kind: Ingress |
应用资源配置清单
任意一台运算节点上:
1 |
[root@hdss7-21 ~]# kubectl apply -f http://k8s-yaml.od.com/gate/cm.yaml |
部署Deck
运维主机HDSS7-200.host.com
上:
准备docker镜像
镜像下载地址
1 |
[root@hdss7-200 ~]# docker pull quay.io/container-image/spinnaker-deck:2.7.0-20190123200115 |
准备资源配置清单
vi /root/setttings.js
1 |
'use strict'; |
vi /root/spinnaker.conf.gen
1 |
|
vi /data/k8s-yaml/deck/deployment.yaml
1 |
apiVersion: extensions/v1beta1 |
vi /data/k8s-yaml/deck/svc.yaml
1 |
apiVersion: v1 |
vi /data/k8s-yaml/deck/ingress.yaml
1 |
kind: Ingress |
应用资源配置清单
任意一台运算节点上:
1 |
[root@hdss7-21 ~]# kubectl create cm deck --from-file=settings.js --from-file=spinnaker.conf.gen -n spinnaker |