Tag: kubernetes gce

尝试启动API服务器时,hyperkube卡住了

我在hyperkube中运行Kubernetes 1.5.0,并且在日志中循环重复以下行: E0228 21:28:35.891472 20321 reflector.go:188] pkg/kubelet/config/apiserver.go:44: Failed to list *api.Pod: Get http://localhost:8443/api/v1/pods?fieldSelector=spec.nodeName%3D127.0.0.1&resourceVersion=0: dial tcp 127.0.0.1:8443: getsockopt: connection refused E0228 21:28:35.892410 20321 reflector.go:188] pkg/kubelet/kubelet.go:386: Failed to list *api.Node: Get http://localhost:8443/api/v1/nodes?fieldSelector=metadata.name%3D127.0.0.1&resourceVersion=0: dial tcp 127.0.0.1:8443: getsockopt: connection refused 以下是我如何启动Hyperkube: docker run \ –volume=/:/rootfs:ro \ –volume=/sys:/sys:ro \ –volume=/var/lib/docker/:/var/lib/docker:rw \ –volume=/var/lib/kubelet/:/var/lib/kubelet:rw \ –volume=/var/run:/var/run:rw \ –net=host \ –pid=host \ –privileged=true […]

GCE的443号端口在kubernetes上超时

我对kubernates集群设置有点新鲜感,对我一无所知。 我创build了一个kubernetes集群,目前我只运行一个提供静态网页的docker服务。 它正在开放标准端口80。 现在我想将一个SSL证书附加到域,并设法在本地运行。 但是,当我尝试将我的服务发布到kubernates群集时, https: //my.domain.com超时。 看起来服务没有收到请求,但被kuernates或GCE阻止。 我是否需要打开防火墙,或者设置群集部署以打开端口443? 可能是什么问题? 我听说过Ingress和kubernetes的秘密,那就是要走的路。 但我发现所有使用Ingress-nginx,因为我只有一个docker服务,我不使用Nginx。 对我来说,似乎让443电话接通服务将是最简单的解决scheme。 还是我错了? 以下是我的设置: apiVersion: v1 kind: Service metadata: name: client spec: type: LoadBalancer ports: – port: 80 targetPort: 80 protocol: TCP name: http – port: 443 targetPort: 443 protocol: TCP name: https selector: name: client-pods —– apiVersion: extensions/v1beta1 kind: Deployment metadata: name: client […]

Elasticsearch群集Kubernetes启动时的红色状态

我试着按照这里的教程: https ://vichargrave.github.io/articles/2016-10/running-elasticsearch-on-kubernetes在Kubernetes上创build一个Elasticsearch集群。 为了简化问题,我只创build了一个主节点,一个客户机节点和一个数据节点。 创build并运行pod和部署,但启动时集群运行状况为红色,而我甚至没有创build任何索引。 用我得到的集群健康命令: { "cluster_name" : "dev-es-cluster", "status" : "red", "timed_out" : false, "number_of_nodes" : 3, "number_of_data_nodes" : 1, "active_primary_shards" : 0, "active_shards" : 0, "relocating_shards" : 0, "initializing_shards" : 0, "unassigned_shards" : 0, "delayed_unassigned_shards" : 0, "number_of_pending_tasks" : 0, "number_of_in_flight_fetch" : 0, "task_max_waiting_in_queue_millis" : 0, "active_shards_percent_as_number" : "NaN" } 我确切地说,我可以显示节点,因为我得到: ip […]

在GCE上通过jenkins工作时,无法部署k8s pod

我已经在谷歌容器引擎中创build了一个集群 ,并且我部署了一个运行jenkins的pod。 然后configuration一个将构build,运行,推送和部署示例应用程序的工作。 所以所有这些工作步骤正在执行,除了“deploy-sampleapp-step”由于以下错误 [sampleapp_master-HAWDXNK5BCRQ7EWPPOHGW7RUWBBM25WIAIKOP6UBHIDYZGTMQIJA] Running shell script + kubectl –namespace=production apply -f k8s/services/ error: group map[:0xc820374b60 apps:0xc820374bd0 authorization.k8s.io:0xc820374c40 componentconfig:0xc820374d90 extensions:0xc820374e00 policy:0xc820374e70 storage.k8s.io:0xc8202cc770 federation:0xc820374af0 autoscaling:0xc820374cb0 batch:0xc820374d20 rbac.authorization.k8s.io:0xc820374ee0 authentication.k8s.io:0xc820374fc0] is already registered 所以我正在使用群集版本1.6.4 那么有没有人有任何想法如何升级这个问题 在此先感谢添加一些可能对上述问题有用的信息 – user @ yproject-173008:〜$ kubectl cluster-info Kubernetes master在https:// IP上运行GLBCDefaultBackend在https:// IP / api / v1 / proxy / namespaces / kube-system / […]