参考的URL是

http://www.cnblogs.com/zhenyuyaodidiao/p/6500830.html

安装kubernets本身比较顺利,只是作dashboard时,老是日文版,

当时用的docker镜像是registry.cn-beijing.aliyuncs.com/bbt_k8s/kubernetes-dashboard-amd64   v1.6.0 ,

后来,升级为registry.cn-beijing.aliyuncs.com/bbt_k8s/kubernetes-dashboard-amd64   v1.6.1之后,就成中文的了。

另外,部署deployment的yaml文件,找了好几个,后来,从github上下载的一个才真正可用。

接下来,dns之类的,都要走一遍。

===================

kubernetes-dashboard.yaml

  1. # Copyright 2015 Google Inc. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14.  
  15. # Configuration to deploy release version of the Dashboard UI.
  16. #
  17. # Example usage: kubectl create -f <this_file>
  18.  
  19. kind: Deployment
  20. apiVersion: extensions/v1beta1
  21. metadata:
  22. labels:
  23. k8s-app: kubernetes-dashboard
  24. name: kubernetes-dashboard
  25. namespace: kube-system
  26. spec:
  27. replicas: 1
  28. revisionHistoryLimit: 10
  29. selector:
  30. matchLabels:
  31. k8s-app: kubernetes-dashboard
  32. template:
  33. metadata:
  34. labels:
  35. k8s-app: kubernetes-dashboard
  36. # Comment the following annotation if Dashboard must not be deployed on master
  37. annotations:
  38. scheduler.alpha.kubernetes.io/tolerations: |
  39. [
  40. {
  41. "key": "dedicated",
  42. "operator": "Equal",
  43. "value": "master",
  44. "effect": "NoSchedule"
  45. }
  46. ]
  47. spec:
  48. containers:
  49. - name: kubernetes-dashboard
  50. image: registry.cn-beijing.aliyuncs.com/bbt_k8s/kubernetes-dashboard-amd64:v1.6.1
  51. ports:
  52. - containerPort: 9090
  53. protocol: TCP
  54. args:
  55. # Uncomment the following line to manually specify Kubernetes API server Host
  56. # If not specified, Dashboard will attempt to auto discover the API server and connect
  57. # to it. Uncomment only if the default does not work.
  58. - --apiserver-host=http://192.168.1.111:8080
  59. livenessProbe:
  60. httpGet:
  61. path: /
  62. port: 9090
  63. initialDelaySeconds: 30
  64. timeoutSeconds: 30
  65. ---
  66. kind: Service
  67. apiVersion: v1
  68. metadata:
  69. labels:
  70. k8s-app: kubernetes-dashboard
  71. name: kubernetes-dashboard
  72. namespace: kube-system
  73. spec:
  74. ports:
  75. - port: 80
  76. targetPort: 9090
  77. selector:
  78. k8s-app: kubernetes-dashboard

===================

手工安装kubernetes的更多相关文章

  1. Centos7手工安装Kubernetes集群

    安装Kubernetes集群有多种方式,前面介绍了Kubeadm的方式,本文将介绍手工安装的方法. 安装环境有3台Azure上的VM: Hkube01:10.0.1.4 Hkube02:10.0.1. ...

  2. 从一到万的运维之路,说一说VM/Docker/Kubernetes/ServiceMesh

    摘要:本文从单机真机运营的历史讲起,逐步介绍虚拟化.容器化.Docker.Kubernetes.ServiceMesh的发展历程.并重点介绍了容器化阶段之后,各项重点技术的安装.使用.运维知识.可以说 ...

  3. [笔记]kubernetes 无法启动问题

    在启动kubernetes的时候报错误. ERROR: timed out for http://localhost:4001/v2/keys/ 原因是无法启动etcd, etcd 监听4001本地端 ...

  4. 基于Kubernetes在AWS上部署Kafka时遇到的一些问题

    作者:Jack47 转载请保留作者和原文出处 欢迎关注我的微信公众账号程序员杰克,两边的文章会同步,也可以添加我的RSS订阅源. 交代一下背景:我们的后台系统是一套使用Kafka消息队列的数据处理管线 ...

  5. 基于Python+Django的Kubernetes集群管理平台

    ➠更多技术干货请戳:听云博客 时至今日,接触kubernetes也有一段时间了,而我们的大部分业务也已经稳定地运行在不同规模的kubernetes集群上,不得不说,无论是从应用部署.迭代,还是从资源调 ...

  6. Docker中部署Kubernetes

    Kubernetes为Google开源的容器管理框架,提供了Docker容器的夸主机.集群管理.容器部署.高可用.弹性伸缩等一系列功能:Kubernetes的设计目标包括使容器集群任意时刻都处于用户期 ...

  7. kubernetes部署Fluentd+Elasticsearch+kibana 日志收集系统

    一.介绍 1. Fluentd 是一个开源收集事件和日志系统,用与各node节点日志数据的收集.处理等等.详细介绍移步-->官方地址:http://fluentd.org/ 2. Elastic ...

  8. kubernetes 文档

    kubernetes 官方文档:http://kubernetes.io/docs/ null

  9. kubernetes 1.4.5集群部署

    2016/11/16 23:39:58 环境: centos7 [fu@centos server]$ uname -a Linux centos 3.10.0-327.el7.x86_64 #1 S ...

随机推荐

  1. SIP初步

    http://blog.sina.com.cn/s/blog_6b10255301012db7.html 1.什么是SIP SIP(会话发起协议)属于IP应用层协议,用于在IP网上为用户提供会话应用. ...

  2. jquery $.getJSON 注意细节

    服务端: var json = "{\"title\": \"Recent Uploads tagged mountrainier\",\" ...

  3. 大数据Hadoop-2

    大数据Hadoop学习之搭建Hadoop平台(2.1) 关于大数据,一看就懂,一懂就懵. 大数据的发展也有些年头了,如今正走在风口浪尖上,作为小白,我也来凑一份热闹. 大数据经过多年的发展,有着不同的 ...

  4. [CF1065C]Make It Equal

    题目大意:$n$列箱子,横向消除,一次可以把一行及以上的所有箱子消除,但是一次最多只可以消除$k$个,求最少用几次把箱子的高度变成一样 题解:贪心,求出比一个高度高的有几个箱子,消除即可 卡点:代码改 ...

  5. SetLocalTime设置本地时间

    /***************************************************************** 函数名:EnableSetTimePriviledge 功 能:开 ...

  6. 洛谷P3763 [Tjoi2017]DNA 【后缀数组】

    题目链接 洛谷P3763 题解 后缀数组裸题 在BZOJ被卡常到哭QAQ #include<algorithm> #include<iostream> #include< ...

  7. 线程--promise furture 同步

    http://www.cnblogs.com/haippy/p/3279565.html std::promise 类介绍 promise 对象可以保存某一类型 T 的值,该值可被 future 对象 ...

  8. 如何用listview显示服务端数据

    https://www.cnblogs.com/caobotao/p/5061627.html

  9. request.getParameterValues与request.getParameter的区别

    一. 简单的对比 request.getParameter用的比较多,相对熟悉 request.getParameterValues(String   name)是获得如checkbox类(名字相同, ...

  10. 【SPOJ-QTREE】树链剖分

    树链剖分学习 https://blog.csdn.net/u013368721/article/details/39734871 https://www.cnblogs.com/George1994/ ...