- 浏览: 99542 次
文章分类
最新评论
-
jXee:
lgs0626 写道求源码,兄弟给共享下吧 "jee ...
jee6 学习笔记 4 - CRUD 2: View Details, Primefaces row selection -
lgs0626:
求源码,兄弟给共享下吧
jee6 学习笔记 4 - CRUD 2: View Details, Primefaces row selection
### how to access k8s web console if it's still available
1. Run the proxy:
$ cd /c/tools/env-prod
$ ls -l
-rwxr-xr-x 1 John.Wang 1049089 85 May 14 14:45 prod.listAllPods.sh*
-rw-r--r-- 1 John.Wang 1049089 6146 Oct 4 2017 prod_cluster_config
$ kubectl --kubeconfig=prod_cluster_config --namespace=env-prod proxy
Starting to serve on 127.0.0.1:8001
2. Open the web console in your browser:
http://localhost:8001/ui
OR
http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/
YOU MUST CHANGE "https" to "http" in "https:kubernetes-dashboard". And the final url is as follows:
http://localhost:8001/api/v1/namespaces/kube-system/services/http:kubernetes-dashboard:/proxy/
select your namespace, like "env-pod"
3. How to restart a pod?
>> Just "delete" the current pod: k8s would start a new pod for it.
kubectl --kubeconfig=test_cluster_config --namespace=env-qa delete pod order-service-5fbb59878d-qqqs9
### how to tail container log with kubectl
command: kubectl --kubeconfig=prod_cluster_config --namespace=env-prod logs pod-name --tail=50 [-f]
$ cd /c/tools/env-prod/
## find the pod-name by listing all the pods
$ kubectl --kubeconfig=prod_cluster_config --namespace=env-prod get pods | grep scheduling
NAME READY STATUS RESTARTS AGE
scheduling-service-6995d7fc67-zpdfm 1/1 Running 0 9d
## to tail 50 lines of the container's log and stop
$ kubectl --kubeconfig=prod_cluster_config --namespace=env-prod logs scheduling-service-6995d7fc67-zpdfm --tail=50
## to keep tailing 30 lines of the container's log
$ kubectl --kubeconfig=prod_cluster_config --namespace=env-prod logs scheduling-service-6995d7fc67-zpdfm --tail=30 -f
1. Run the proxy:
$ cd /c/tools/env-prod
$ ls -l
-rwxr-xr-x 1 John.Wang 1049089 85 May 14 14:45 prod.listAllPods.sh*
-rw-r--r-- 1 John.Wang 1049089 6146 Oct 4 2017 prod_cluster_config
$ kubectl --kubeconfig=prod_cluster_config --namespace=env-prod proxy
Starting to serve on 127.0.0.1:8001
2. Open the web console in your browser:
http://localhost:8001/ui
OR
http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/
YOU MUST CHANGE "https" to "http" in "https:kubernetes-dashboard". And the final url is as follows:
http://localhost:8001/api/v1/namespaces/kube-system/services/http:kubernetes-dashboard:/proxy/
select your namespace, like "env-pod"
3. How to restart a pod?
>> Just "delete" the current pod: k8s would start a new pod for it.
kubectl --kubeconfig=test_cluster_config --namespace=env-qa delete pod order-service-5fbb59878d-qqqs9
### how to tail container log with kubectl
command: kubectl --kubeconfig=prod_cluster_config --namespace=env-prod logs pod-name --tail=50 [-f]
$ cd /c/tools/env-prod/
## find the pod-name by listing all the pods
$ kubectl --kubeconfig=prod_cluster_config --namespace=env-prod get pods | grep scheduling
NAME READY STATUS RESTARTS AGE
scheduling-service-6995d7fc67-zpdfm 1/1 Running 0 9d
## to tail 50 lines of the container's log and stop
$ kubectl --kubeconfig=prod_cluster_config --namespace=env-prod logs scheduling-service-6995d7fc67-zpdfm --tail=50
## to keep tailing 30 lines of the container's log
$ kubectl --kubeconfig=prod_cluster_config --namespace=env-prod logs scheduling-service-6995d7fc67-zpdfm --tail=30 -f
发表评论
-
ActiveMQ and Spring JMS Framework Message Loss
2019-06-28 07:15 29Java Message Service (JMS) prov ... -
Call Stored Procedure with JPA 2.1
2018-06-27 10:57 657JPA 2.1 introduces APIs to call ... -
Send response and then process - async processing
2017-10-12 09:35 555If your request processing take ... -
java 8 time api test
2017-08-29 05:40 477public class ParseUtcDateTime ... -
Setup ApiKey in header with Swagger generated client code
2017-08-23 06:41 472@Value("${api.base.path} ... -
Simple tool to monitor jvm memory usage and garbage collection
2016-10-13 06:06 359JDK has built-in tool to moni ... -
Externalize Application Config properties with JBoss 7.1
2017-06-02 12:09 335If you have configuration pro ... -
JPA native query does not support setting list parameters
2014-03-27 06:45 1008you might want to do the ... -
Owning Side and Inverse Side of JPA entity relationships
2013-09-10 07:08 804Entity relationships may be b ... -
avoid setParameter for "order by" in JPQL
2013-03-07 05:55 776you might want to create a JP ... -
JPA Path Expression, operator IN and Collection properties
2013-01-23 16:25 1393If we want to select the Orde ... -
与JEE6/EJB3.1相比, Spring framework 丧失了几乎所有的优势
2013-01-19 13:13 1033The Spring framework was a ma ... -
Simple EasyMock tutorial
2012-12-20 11:57 670http://veerasundar.com/blog/20 ... -
Servlet 3.0 @WebFilter and @WebServlet
2012-12-04 07:09 2676Servlet 3.0 provides new annota ... -
Why JSF2 @ViewScoped not working?
2012-12-03 06:55 1367javax.faces.bean.ViewScoped sai ... -
When to configure an XA datasource?
2012-11-16 12:58 1262If you ever came across this wa ... -
java ee transaction and datasource concepts
2012-11-10 13:48 10431. What is a transaction? A tra ... -
pass params to primefaces confirmation dialog box
2012-09-28 19:30 1334<p:dataTable id="idStuD ... -
Handle Big Dataset with Real Pagination with Primefaces 3.3 LazyDataModel
2012-09-21 13:41 5618If you have millions of record ... -
why Oracle sequence not working with JPA entity ID?
2012-09-19 08:08 967Suppose you have an Oracle seq ...
相关推荐
k8s.gcr.io/kube-proxy v1.22.0 k8s.gcr.io/kube-controller-manager v1.22.0 k8s.gcr.io/kube-apiserver v1.22.0 calico/kube-controllers v3.22.5 calico/cni v3.22.5 calico/pod2daemon-flexvol v3.22.5 ...
在k8s中,服务发现是通过kube-apiserver、kube-proxy和endpoints资源来实现的。当一个Pod被创建或者销毁时,endpoints资源会实时更新,反映当前集群中Pod的状态。Go-k8s库则提供了接口,使得Haproxy能够监听这些变化...
kubernetes的k8s.gcr.io/kube-proxy:v1.17.3镜像包,版本为v1.17.3。文件是kube-proxy_v_1_17.3.tar
- **作用**:节点是承载实际业务负载的基础单元,每个节点上运行着必要的K8s组件,如kubelet和kube-proxy,以确保容器能够正常运行和服务访问。 #### Pod - **定义**:Pod是K8s中最小的可部署单位,一个Pod可以包含...
在Kubernetes(简称k8s)环境中,证书是保障集群安全和通信的重要组成部分。默认情况下,k8s的证书有效期通常为一年,但这可能会导致在证书即将到期时需要频繁进行更新,增加了管理负担。本教程将详细介绍如何将k8s...
部署k8s1.28集群所需离线镜像包,已经为大家准备好了,大家有需要可以自行下载,下载后部署的方法,在主页k8s专栏的文章中有详细说明,如果大家有疑问可以查看文章,或者私信我,我会尽快回复,谢谢大家 registry....
一条命令安装k8s sealos init --user root --passwd 1 --version v1.18.0 --pkg-url /root/kube1.18.0.tar.gz --master 192.168.36.135 --network calico --podcidr 10.10.0.0/16
"nginx-1.23.2.tar"是一个Nginx服务器的源码包,虽然k8s通常不依赖于特定的Web服务器,但Nginx可以作为Ingress控制器使用,提供对外访问服务的入口。如果你计划使用Nginx Ingress,你需要编译并安装Nginx。 最后,...
"二进制高可用k8s集群一键部署脚本"是为简化k8s集群搭建过程而设计的工具,它基于阿良的二进制部署文档,旨在帮助开发者和学习者快速创建一个稳定的高可用k8s集群。 首先,了解二进制部署意味着不依赖于预打包的...
java websocket proxy k8s docker terminal 之所以有这个项目是因为有多个区域部署k8s集群, 每个集群里的容器都需要有终端访问。 应用程序都是运行在k8s里的, 采用sa认证的方式, k8s集群的api server外面并不能...
2. **配置脚本**:生成k8s组件的配置文件,如kubelet、kube-proxy的配置。 3. **启动脚本**:启动k8s组件,并可能使用`systemd`服务管理。 4. **验证脚本**:检查安装是否成功,运行一些基本的k8s命令以验证组件的...
Kubernetes(K8s)是一个开源的容器编排系统,用于自动化部署、扩展和管理容器化应用程序。它最初是由Google设计并捐赠给了云原生计算基金会(CNCF)来维护。随着容器技术的兴起和微服务架构的流行,Kubernetes已经...
### K8s (Kubernetes) 安装教程与一键安装脚本详解 #### 一、前言 在本文中,我们将详细介绍如何通过一键脚本在常见的Linux发行版上(如Ubuntu 16.04 64位、CentOS 7 64位和Debian 9 64位)安装Kubernetes(简称k8...
这个镜像包包含了四个关键组件的镜像文件:`controller.tar`、`api.tar`、`proxy.tar`和`scheduler.tar`,这些组件是k8s集群正常运行的核心部分。 1. **API Server**: `api.tar`包含了Kubernetes API服务器的镜像...
本文档采用k8s v1.10.0二进制的集群部署方式,主要更改 使用kube-router 代理kube-proxy,使用ingress-nginx做边缘负载,使用haproxy+heartbeat实现高可用 本文档持续更新,后续将继续深入了解prometheus,helm等组件...
Kubernetes(简称K8s)是Google开源的容器集群管理系统,它提供了一种自动化的方式来部署、扩展和管理容器化的应用程序。K8s-v1.23.4是Kubernetes的一个特定版本,它带来了许多性能改进、安全增强以及对新特性的支持...
Kubernetes(简称k8s)是Google开源的容器编排系统,用于自动化容器化应用程序的部署、扩展和管理。本文将详细介绍如何使用提供的"K8s安装部署软件.zip"压缩包来一步步搭建自己的k8s集群,同时也会涉及Docker的安装...
是实现service的通信与负载均衡机制的重要组件,kube-proxy负责为Pod创建代理服务,从apiserver获取所有service信息,并根据service信息创建代理服务,实现service到Pod的请求路由和转发,从而实现K8s层级的虚拟转发...