sharing
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div :style="$isDev ? 'background-color: #grey;' : ''" v-if="!$frontmatter.lessAds && $themeConfig.showAds">
|
<div :style="$isDev ? 'background-color: #grey;' : ''">
|
||||||
<div class="ads" v-if="!$frontmatter.isSharing">
|
<div class="ads" v-if="!$frontmatter.lessAds && $themeConfig.showAds && !isSharing">
|
||||||
<div>
|
<div>
|
||||||
<a @click="clickAds" :href="random.url" target="_blank" rel="nofollow" style="text-decoration: none;">
|
<a @click="clickAds" :href="random.url" target="_blank" rel="nofollow" style="text-decoration: none;">
|
||||||
<span class="name">
|
<span class="name">
|
||||||
@ -39,7 +39,15 @@
|
|||||||
export default {
|
export default {
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
ads: require('./ad-list')
|
ads: require('./ad-list'),
|
||||||
|
isSharing: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted () {
|
||||||
|
if (typeof window !== 'undefined') {
|
||||||
|
if (location.search !== undefined && location.search.indexOf('sharing') >= 0) {
|
||||||
|
this.isSharing = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
@ -30,7 +30,11 @@
|
|||||||
|
|
||||||
<Content class="theme-default-content" style="padding-top: 0; margin-top: -3rem; padding-bottom: 1rem;"/>
|
<Content class="theme-default-content" style="padding-top: 0; margin-top: -3rem; padding-bottom: 1rem;"/>
|
||||||
<div class="page-nav" style="max-width: 1000px; padding-top:0; margin-top: 1rem;" v-if="$frontmatter.isSharing">
|
<div class="page-nav" style="max-width: 1000px; padding-top:0; margin-top: 1rem;" v-if="$frontmatter.isSharing">
|
||||||
Kuboard - 快速在 Kubernetes 上落地微服务
|
<p style="text-align: center;">
|
||||||
|
<a href="/">
|
||||||
|
<img src="/images/logo-main.png" style="margin: auto;">
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<JoinCommunity></JoinCommunity>
|
<JoinCommunity></JoinCommunity>
|
||||||
<PageEdit style="max-width: 1000px;"/>
|
<PageEdit style="max-width: 1000px;"/>
|
||||||
@ -57,7 +61,8 @@ export default {
|
|||||||
mounted () {
|
mounted () {
|
||||||
if (typeof window !== 'undefined') {
|
if (typeof window !== 'undefined') {
|
||||||
if (location.search !== undefined && location.search.indexOf('sharing') >= 0) {
|
if (location.search !== undefined && location.search.indexOf('sharing') >= 0) {
|
||||||
this.$frontmatter.isSharing = true
|
// 如果带参数 sharing,则设置 $frontmatter.isSharing = true
|
||||||
|
this.$set(this.$frontmatter, 'isSharing', true)
|
||||||
document.title = this.$frontmatter.sharingTitle || this.$page.title
|
document.title = this.$frontmatter.sharingTitle || this.$page.title
|
||||||
this.$frontmatter.title = this.$frontmatter.sharingTitle
|
this.$frontmatter.title = this.$frontmatter.sharingTitle
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,13 +8,13 @@ meta:
|
|||||||
|
|
||||||
# 日志终端访问的问题
|
# 日志终端访问的问题
|
||||||
|
|
||||||
极少数情况下,您可能会碰到能够正常访问 Kuboard 和使用 Kuboard 的各项功能,但是,访问 Kuboard 的日志界面和终端界面时,始终会出现弹窗提示,并将您指引到了现在的这个页面上来。本文描述了如何排查 Kuboard 日志/终端界面不能访问的问题
|
极少数情况下,您可能能够正常访问 Kuboard 和使用 Kuboard 的各项功能,但是,访问 Kuboard 提供的日志界面和终端界面时,始终会出现弹窗提示,并将您指引到了现在的这个页面上来。本文描述了如何排查 Kuboard 日志/终端界面不能访问的问题
|
||||||
|
|
||||||
## 第一步
|
## 第一步
|
||||||
|
|
||||||
Kuboard 日志界面和终端界面都使用了 websocket 与服务器端通信,正常情况下,会工作得很好,但是当出现如下几种情况时,websocket 的连接就会出现问题:
|
Kuboard 日志界面和终端界面都使用了 websocket 与服务器端通信,正常情况下,会工作得很好,但是当出现如下几种情况时,websocket 的连接就会出现问题:
|
||||||
* 您所访问的容器已经停止
|
* 您所访问的容器已经停止
|
||||||
* 您当前使用的浏览器不支持 WebSocket,推荐使用最新版本的 chrome 浏览器
|
* 您当前使用的浏览器不支持 WebSocket,推荐使用最新版本的 chrome 浏览器,也可以尝试最新版本的 firefox
|
||||||
|
|
||||||
如果您还有问题,请尝试:
|
如果您还有问题,请尝试:
|
||||||
* 清空浏览器缓存,重新登录 Kuboard
|
* 清空浏览器缓存,重新登录 Kuboard
|
||||||
@ -29,8 +29,6 @@ Kuboard 日志界面和终端界面都使用了 websocket 与服务器端通信
|
|||||||
* 您通过 VPN 接入到服务器所在的网络,然后访问 Kuboard 的节点端口 32567
|
* 您通过 VPN 接入到服务器所在的网络,然后访问 Kuboard 的节点端口 32567
|
||||||
* 您的网络运营商(如长城宽带、小区宽带、电力猫等)为了节省出口带宽,对所有的 HTTP 服务都做了代理和缓存
|
* 您的网络运营商(如长城宽带、小区宽带、电力猫等)为了节省出口带宽,对所有的 HTTP 服务都做了代理和缓存
|
||||||
|
|
||||||
## 第三步
|
|
||||||
|
|
||||||
此时,您可以尝试使用 kubectl port-forward 的方式来访问 Kuboard。具体步骤如下:
|
此时,您可以尝试使用 kubectl port-forward 的方式来访问 Kuboard。具体步骤如下:
|
||||||
|
|
||||||
* 请参考 [在客户端电脑安装 kubectl](/install/install-kubectl.html)
|
* 请参考 [在客户端电脑安装 kubectl](/install/install-kubectl.html)
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
vssueId: 9
|
vssueId: 9
|
||||||
layout: LearningLayout
|
layout: LearningLayout
|
||||||
|
sharingTitle: 这里有一份免费在线答疑的 K8S 教程
|
||||||
sidebarDepth: 0
|
sidebarDepth: 0
|
||||||
description: 本教程的主要依据是:Kubernetes官网文档,以及使用Kubernetes落地SpringCloud微服务并投产的实战经验,在线答疑。适用人群_ Kubernetes 初学者_学习过 Kubernetes,但在投产过程中仍有诸多疑虑和困惑的技术爱好者
|
description: 本教程的主要依据是:Kubernetes官网文档,以及使用Kubernetes落地SpringCloud微服务并投产的实战经验,在线答疑。适用人群_ Kubernetes 初学者_学习过 Kubernetes,但在投产过程中仍有诸多疑虑和困惑的技术爱好者
|
||||||
meta:
|
meta:
|
||||||
|
|||||||
@ -28,7 +28,7 @@ meta:
|
|||||||
|
|
||||||
### 通过APIServer进行控制
|
### 通过APIServer进行控制
|
||||||
|
|
||||||
以 Kubernetes 中自带的一个控制器 Job Controller 为例。KUbernetes 自带的控制器都是通过与集群中 API Server 交互来达到调整状态的目的。
|
以 Kubernetes 中自带的一个控制器 Job Controller 为例。Kubernetes 自带的控制器都是通过与集群中 API Server 交互来达到调整状态的目的。
|
||||||
|
|
||||||
Job 是一种 Kubernetes API 对象,一个 Job 将运行一个(或多个)Pod,执行一项任务,然后停止。当新的 Job 对象被创建时,Job Controller 将确保集群中有合适数量的节点上的 kubelet 启动了指定个数的 Pod,以完成 Job 的执行任务。Job Controller 自己并不执行任何 Pod 或容器,而是发消息给 API Server,由其他的控制组件配合 API Server,以执行创建或删除 Pod 的实际动作。
|
Job 是一种 Kubernetes API 对象,一个 Job 将运行一个(或多个)Pod,执行一项任务,然后停止。当新的 Job 对象被创建时,Job Controller 将确保集群中有合适数量的节点上的 kubelet 启动了指定个数的 Pod,以完成 Job 的执行任务。Job Controller 自己并不执行任何 Pod 或容器,而是发消息给 API Server,由其他的控制组件配合 API Server,以执行创建或删除 Pod 的实际动作。
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
vssueId: 60
|
vssueId: 60
|
||||||
layout: LearningLayout
|
layout: LearningLayout
|
||||||
|
sharingTitle: Kubernetes 中如何管理存储(Volume/PersistentVolume/PersistentVolumeClaim 傻傻分不清)
|
||||||
description: Kubernetes教程_本文介绍了存储卷PersistentVolume_存储卷声明PersistentVolumeClaim的概念_他们的关系_以及如何使用
|
description: Kubernetes教程_本文介绍了存储卷PersistentVolume_存储卷声明PersistentVolumeClaim的概念_他们的关系_以及如何使用
|
||||||
meta:
|
meta:
|
||||||
- name: keywords
|
- name: keywords
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
vssueId: 28
|
vssueId: 28
|
||||||
layout: LearningLayout
|
layout: LearningLayout
|
||||||
|
sharingTitle: 在 Kubernetes 中使用私有镜像仓库中的镜像
|
||||||
description: Kubernetes教程_通过Kuboard配置Kubernetes_使用私有registry中的docker镜像
|
description: Kubernetes教程_通过Kuboard配置Kubernetes_使用私有registry中的docker镜像
|
||||||
meta:
|
meta:
|
||||||
- name: keywords
|
- name: keywords
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
vssueId: 57
|
vssueId: 57
|
||||||
|
sharingTitle: Kubernetes 核心概念详解之:Ingress
|
||||||
layout: LearningLayout
|
layout: LearningLayout
|
||||||
description: Kubernetes教程_本文介绍Kubernetes_Ingress的概念_包括Ingress基本概念_如何配置Ingress_Controller_如何使用kubectl_Kuboard操作Ingress信息
|
description: Kubernetes教程_本文介绍Kubernetes_Ingress的概念_包括Ingress基本概念_如何配置Ingress_Controller_如何使用kubectl_Kuboard操作Ingress信息
|
||||||
meta:
|
meta:
|
||||||
|
|||||||
Reference in New Issue
Block a user