欢迎加入王导的VIP学习qq群:==>932194668<==
部署对象式存储minio
运维主机HDSS7-200.host.com
上:
准备docker镜像
1 | [root@hdss7-200 ~]# docker pull minio/minio:latest |
准备资源配置清单
vi /data/k8s-yaml/armory/minio/deployment.yaml
1 | kind: Deployment |
vi /data/k8s-yaml/armory/minio/svc.yaml
1 | apiVersion: v1 |
vi /data/k8s-yaml/armory/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/armory/minio/deployment.yaml |
浏览器访问
部署Redis
准备docker镜像
运维主机HDSS7-200.host.com
上:
镜像下载地址
1 | [root@hdss7-200 ~]# docker pull redis:4.0.14 |
准备资源配置清单
vi /data/k8s-yaml/armory/redis/deployment.yaml
1 | kind: Deployment |
vi /data/k8s-yaml/armory/redis/svc.yaml
1 | apiVersion: v1 |
应用资源配置清单
任意运算节点上:
1 | [root@hdss7-21 ~]# kubectl apply -f https://k8s-yaml.od.com/armory/redis/deployment.yaml |
部署CloudDriver
运维主机HDSS7-200.host.com
上:
准备docker镜像
1 | [root@hdss7-200 ~]# docker pull docker.io/armory/spinnaker-clouddriver-slim:release-1.8.x-14c9664 |
准备minio的secret
- 准备配置文件
1 | [default] |
- 创建secret
1 | [root@hdss7-21 clouddriver]# kubectl create secret generic credentials --from-file=./credentials -n armory |
准备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 default-kubeconfig --from-file=default-kubeconfig -n armory |
准备资源配置清单
vi /data/k8s-yaml/armory/clouddriver/init-env.yaml
1 | kind: ConfigMap |
vi /data/k8s-yaml/armory/clouddriver/default-config.yaml
1 | kind: ConfigMap |
vi /data/k8s-yaml/armory/clouddriver/custom-config.yaml
1 | kind: ConfigMap |
vi /data/k8s-yaml/armory/clouddriver/deployment.yaml
1 | apiVersion: extensions/v1beta1 |
vi /data/k8s-yaml/armory/clouddriver/svc.yaml
1 | apiVersion: v1 |
应用资源配置清单
任意一台运算节点上:
1 | [root@hdss7-21 ~]# kubectl apply -f http://k8s-yaml.od.com/armory/clouddriver/init-env.yaml |
部署Front50
运维主机HDSS7-200.host.com
上:
准备docker镜像
1 | [root@hdss7-200 ~]# docker pull docker.io/armory/spinnaker-front50-slim:release-1.8.x-93febf2 |
准备资源配置清单
vi /data/k8s-yaml/armory/front50/deployment.yaml
1 | apiVersion: extensions/v1beta1 |
vi /data/k8s-yaml/armory/front50/svc.yaml
1 | apiVersion: v1 |
应用资源配置清单
任意一台运算节点上:
1 | [root@hdss7-21 ~]# kubectl apply -f http://k8s-yaml.od.com/armory/front50/deployment.yaml |
浏览器访问
http://minio.od.com
登录并观察存储是否创建
部署Orca
运维主机HDSS7-200.host.com
上:
准备docker镜像
1 | [root@hdss7-200 ~]# docker pull docker.io/armory/spinnaker-orca-slim:release-1.8.x-de4ab55 |
准备资源配置清单
vi /data/k8s-yaml/armory/orca/deployment.yaml
1 | apiVersion: extensions/v1beta1 |
vi /data/k8s-yaml/armory/orca/svc.yaml
1 | apiVersion: v1 |
应用资源配置清单
任意一台运算节点上:
1 | [root@hdss7-21 ~]# kubectl apply -f http://k8s-yaml.od.com/armory/orca/deployment.yaml |
部署Echo
运维主机HDSS7-200.host.com
上:
准备docker镜像
1 | [root@hdss7-200 ~]# docker pull docker.io/armory/echo-armory:c36d576-release-1.8.x-617c567 |
准备资源配置清单
vi /data/k8s-yaml/armory/echo/deployment.yaml
1 | apiVersion: extensions/v1beta1 |
vi /data/k8s-yaml/armory/echo/svc.yaml
1 | apiVersion: v1 |
应用资源配置清单
任意一台运算节点上:
1 | [root@hdss7-21 ~]# kubectl apply -f http://k8s-yaml.od.com/armory/echo/deployment.yaml |
部署Igor
运维主机HDSS7-200.host.com
上:
准备docker镜像
1 | [root@hdss7-200 ~]# docker pull docker.io/armory/spinnaker-igor-slim:release-1.8-x-new-install-healthy-ae2b329 |
准备资源配置清单
vi /data/k8s-yaml/armory/igor/deployment.yaml
1 | apiVersion: extensions/v1beta1 |
vi /data/k8s-yaml/armory/igor/svc.yaml
1 | apiVersion: v1 |
应用资源配置清单
任意一台运算节点上:
1 | [root@hdss7-21 ~]# kubectl apply -f http://k8s-yaml.od.com/armory/igor/deployment.yaml |
部署Gate
运维主机HDSS7-200.host.com
上:
准备docker镜像
1 | [root@hdss7-200 ~]# docker pull docker.io/armory/gate-armory:dfafe73-release-1.8.x-5d505ca |
准备资源配置清单
vi /data/k8s-yaml/armory/gate/deployment.yaml
1 | apiVersion: extensions/v1beta1 |
vi /data/k8s-yaml/armory/gate/svc.yaml
1 | apiVersion: v1 |
应用资源配置清单
任意一台运算节点上:
1 | [root@hdss7-21 ~]# kubectl apply -f http://k8s-yaml.od.com/armory/gate/deployment.yaml |
部署Deck
运维主机HDSS7-200.host.com
上:
准备docker镜像
1 | [root@hdss7-200 ~]# docker pull docker.io/armory/deck-armory:d4bf0cf-release-1.8.x-0a33f94 |
准备资源配置清单
vi /data/k8s-yaml/armory/deck/deployment.yaml
1 | apiVersion: extensions/v1beta1 |
vi /data/k8s-yaml/armory/deck/svc.yaml
1 | apiVersion: v1 |
应用资源配置清单
任意一台运算节点上:
1 | [root@hdss7-21 ~]# kubectl apply -f http://k8s-yaml.od.com/armory/deck/deployment.yaml |
部署Nginx
运维主机HDSS7-200.host.com
上:
准备docker镜像
1 | [root@hdss7-200 ~]# docker pull docker.io/library/nginx |
准备资源配置清单
vi /data/k8s-yaml/armory/nginx/deployment.yaml
1 | apiVersion: extensions/v1beta1 |
vi /data/k8s-yaml/armory/nginx/svc.yaml
1 | apiVersion: v1 |
vi /data/k8s-yaml/armory/nginx/ingress.yaml
1 | apiVersion: extensions/v1beta1 |
应用资源配置清单
任意一台运算节点上:
1 | [root@hdss7-21 ~]# kubectl apply -f http://k8s-yaml.od.com/armory/nginx/deployment.yaml |