CoreDNS

how to know the CoreDNS take effect in kubernetes pod [duplicate]

北城以北 提交于 2020-02-26 04:05:42
问题 This question already has answers here : CoreDNS only works in one host in kubernete cluster (2 answers) Closed 6 days ago . I am deploy coredns (running in node-01): { "kind": "Deployment", "apiVersion": "extensions/v1beta1", "metadata": { "name": "coredns", "namespace": "kube-system", "selfLink": "/apis/extensions/v1beta1/namespaces/kube-system/deployments/coredns", "uid": "5d470d90-6cdf-4ef1-be00-6774d70fcb54", "resourceVersion": "14708222", "generation": 18, "creationTimestamp": "2019-09

how to know the CoreDNS take effect in kubernetes pod [duplicate]

感情迁移 提交于 2020-02-26 04:05:28
问题 This question already has answers here : CoreDNS only works in one host in kubernete cluster (2 answers) Closed 6 days ago . I am deploy coredns (running in node-01): { "kind": "Deployment", "apiVersion": "extensions/v1beta1", "metadata": { "name": "coredns", "namespace": "kube-system", "selfLink": "/apis/extensions/v1beta1/namespaces/kube-system/deployments/coredns", "uid": "5d470d90-6cdf-4ef1-be00-6774d70fcb54", "resourceVersion": "14708222", "generation": 18, "creationTimestamp": "2019-09

Resolve custom dns in kubernetes cluster (AKS)

偶尔善良 提交于 2020-02-05 22:56:37
问题 We currently have pods in a kubernetes cluster (AKS) that need to resolve two different domains. The first domain beeing the cluster domain default.svc.cluster.local and the second one beeing mydns.local how can this be achieved? 回答1: I found the solution myself. There are two ways to achieve the desired name resolution: If your AKS Cluster is within an Azure VNET you can set the DNS settings in the VNET to the custom DNS Server that is able to resolve your custom domain. If your Pods have no

No route to host from some Kubernetes containers to other containers in same cluster

半世苍凉 提交于 2020-02-01 09:48:28
问题 This is a Kubespray deployment using calico. All the defaults are were left as-is except for the fact that there is a proxy. Kubespray ran to the end without issues. Access to Kubernetes services started failing and after investigation, there was no route to host to the coredns service. Accessing a K8S service by IP worked. Everything else seems to be correct, so I am left with a cluster that works, but without DNS. Here is some background information: Starting up a busybox container: #

Serverless Kubernetes 入门:对 Kubernetes 做减法

亡梦爱人 提交于 2020-01-10 15:13:50
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 背景 Kubernetes 作为通用的容器编排系统,承载了广泛的应用和场景,包括 CI/CD,数据计算,在线应用,AI 等,然而由于其通用性和复杂性,管理一个 Kubernetes 集群对于很多用户而言还是充满挑战的,主要体现在: 学习成本高; 集群运维管理成本高,包括节点管理、容量规划,以及各种节点异常问题的定位; 计算成本在很多场景中没有达到最优,比如对于一个定时运行 Jobs 的集群,长期持有资源池对于用户来说是浪费的行为,资源利用率不高。 对 Kubernetes 集群做减法 无节点管理 我们相信未来用户会更加关注应用的开发,而不是基础设施的维护。体现在 Kubernetes 集群中,我们希望用户能够关注在 pod/service/ingress/job 等应用编排语义上,对底层 node 则可以减少关注。 无需管理节点也可以显著降低集群的运维管理成本,经统计 Kubernetes 常见的异常问题中大多数与节点相关,比如 Node NotReady 问题,也无需担忧 Node 的安全问题,以及基础系统软件的升级和维护。 在 ASK 集群中,我们使用虚拟节点 virtual-kubelet 代替 ecs 节点,虚拟节点的容量可以认为是“无限大”,用户不需要为集群的容量担忧,无需预先做容量规划。 无

Serverless Kubernetes 入门:对 Kubernetes 做减法

。_饼干妹妹 提交于 2020-01-08 10:34:47
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 作者 | 贤维 阿里巴巴高级技术专家 导读 :Serverless Kubernetes 是阿里云容器服务团队对未来 Kubernetes 演进方向的一种探索,通过对 Kubernetes 做减法,降低运维管理负担,简化集群管理,让 Kubernetes 从复杂到简单。 背景 Kubernetes 作为通用的容器编排系统,承载了广泛的应用和场景,包括 CI/CD,数据计算,在线应用,AI 等,然而由于其通用性和复杂性,管理一个 Kubernetes 集群对于很多用户而言还是充满挑战的,主要体现在: 学习成本高; 集群运维管理成本高,包括节点管理、容量规划,以及各种节点异常问题的定位; 计算成本在很多场景中没有达到最优,比如对于一个定时运行 Jobs 的集群,长期持有资源池对于用户来说是浪费的行为,资源利用率不高。 对 Kubernetes 集群做减法 无节点管理 我们相信未来用户会更加关注应用的开发,而不是基础设施的维护。体现在 Kubernetes 集群中,我们希望用户能够关注在 pod/service/ingress/job 等应用编排语义上,对底层 node 则可以减少关注。 无需管理节点也可以显著降低集群的运维管理成本,经统计 Kubernetes 常见的异常问题中大多数与节点相关,比如 Node

基于国内阿里云镜像解决kubeflow一键安装

筅森魡賤 提交于 2019-12-26 16:09:33
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 简介: google出品在国内都存在墙的问题,而kubeflow作为云原生的机器学习套件对团队的帮助很大,对于无翻墙条件的团队,基于国内镜像搭建kubeflow可以帮助大家解决不少麻烦,这里给大家提供一套基于国内阿里云镜像的kubeflow 0.6的安装方案。 环境准备 kubeflow 为环境要求很高,看官方要求: at least one worker node with a minimum of: 4 CPU 50 GB storage 12 GB memory 当然,没达到也能安装,不过在后面使用中会出现资源问题,因为这是整包安装方案。 一个已经安装好的kubernetes集群,这里我采用的是rancher安装的集群。 sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher 这里我选择的是k8s的1.14版本,kubeflow和k8s之间的版本兼容可以查看 官网说明 ,这里我的kubeflow采用了0.6版本。 如果直接想安装可以直接调到 kubeflow一键安装部分 kustomize 下载kustomize文件 官方的教程是用 kfclt 安装的,kfclt 本质上是使用了 kustomize

Kubernetes coredns pods stuck in Pending status. Cannot start the dashboard

﹥>﹥吖頭↗ 提交于 2019-12-11 04:21:26
问题 I am building a Kubernetes cluster following this tutorial, and I have troubles to access the Kubernetes dashboard. I already created another question about it that you can see here, but while digging up into my cluster, I think that the problem might be somewhere else and that's why I create a new question. I start my master, by running the following commands: > kubeadm reset > kubeadm init --apiserver-advertise-address=[MASTER_IP] > file.txt > tail -2 file.txt > join.sh # I keep this file

How to patch a ConfigMap in Kubernetes

一个人想着一个人 提交于 2019-12-09 16:57:47
问题 Kubernetes ships with a ConfigMap called coredns that lets you specify DNS settings. I want to modify or patch a small piece of this configuration by adding: apiVersion: v1 kind: ConfigMap data: upstreamNameservers: | ["1.1.1.1", "1.0.0.1"] I know I can use kubectrl edit to edit the coredns ConfigMap is there some way I can take the above file containing only the settings I want to insert or update and have it merged on top of or patched over the existing ConfigMap ? The reason for this is

kubeadmin-常用镜像(国内镜像)

*爱你&永不变心* 提交于 2019-12-07 00:41:29
#!/bin/sh # kubeadm config images list 查看当前容器版本 images=( kube-apiserver:v1.14.0 kube-controller-manager:v1.14.0 kube-scheduler:v1.14.0 kube-proxy:v1.14.0 pause:3.1 etcd:3.3.10 coredns:1.3.1 kubernetes-dashboard-amd64:v1.10.1 heapster-grafana-amd64:v5.0.4 heapster-amd64:v1.5.4 heapster-influxdb-amd64:v1.5.2 ) for imageName in ${images[@]} ; do docker pull registry.cn-hangzhou.aliyuncs.com/google_containers/${imageName} docker tag registry.cn-hangzhou.aliyuncs.com/google_containers/${imageName} k8s.gcr.io/${imageName} docker rmi registry.cn-hangzhou.aliyuncs.com/google_containers/${imageName}