kubeadm

kube-controller-manager doesn't start when using “cloud-provider=aws” with kubeadm

冷暖自知 提交于 2019-12-02 08:49:16
问题 I'm trying to use Kubernetes integration with AWS, but kube-controller-manager don't start. (BTW: Everything works perfectly without the ASW option) Here is what I do: -- 1 -- ubuntu@ip-172-31-17-233:~$ more /etc/kubernetes/aws.conf apiVersion: kubeadm.k8s.io/v1alpha1 kind: MasterConfiguration cloudProvider: aws kubernetesVersion: 1.10.3 -- 2 -- ubuntu@ip-172-31-17-233:~$ more /etc/kubernetes/cloud-config.conf [Global] KubernetesClusterTag=kubernetes KubernetesClusterID=kubernetes (I tried

How to install Kubernetes cluster behind proxy with Kubeadm?

心已入冬 提交于 2019-12-02 05:20:06
问题 I met a couple of problems when installing the Kubernetes with Kubeadm. I am working behind the corporate network. I declared the proxy settings in the session environment. $ export http_proxy=http://proxy-ip:port/ $ export https_proxy=http://proxy-ip:port/ $ export no_proxy=master-ip,node-ip,127.0.0.1 After installing all the necessary components and dependencies, I began to initialize the cluster. In order to use the current environment variables, I used sudo -E bash . $ sudo -E bash -c

How to config simple login/pass authentication for kubernetes desktop UI

大兔子大兔子 提交于 2019-12-01 06:38:04
I'm pretty new in kubernetes, I just install kubernetes via kubeadm and run dashboard UI but can't config access to it. Following docs I add line --basic-auth-file=/etc/kubernetes/auth.csv to /etc/kubernetes/manifests/kube-apiserver.yaml, create file and put in one string like pass,admin,admin . But after that api server crashed and back to normal after deleting this string and reboot the server. How I can pass this parametr to api server without api server crashing, and maybe something else need add or remove from this file? Here is my kube-apiserver.yaml apiVersion: v1 kind: Pod metadata:

How to config simple login/pass authentication for kubernetes desktop UI

别说谁变了你拦得住时间么 提交于 2019-12-01 03:30:59
问题 I'm pretty new in kubernetes, I just install kubernetes via kubeadm and run dashboard UI but can't config access to it. Following docs I add line --basic-auth-file=/etc/kubernetes/auth.csv to /etc/kubernetes/manifests/kube-apiserver.yaml, create file and put in one string like pass,admin,admin . But after that api server crashed and back to normal after deleting this string and reboot the server. How I can pass this parametr to api server without api server crashing, and maybe something else

how to upgrade kubernetes from v1.10.0 to v1.10.11

 ̄綄美尐妖づ 提交于 2019-11-30 23:16:23
i installed kubernetes via kubeadm under the 1.9 and upgraded it to 1.10.0 a while back using kubeadm upgrade . i'm quite happy with 1.10.x and don't want to deal with potential issues with upgrading to anything newer just yet. So i would like to upgrade to 1.10.11. i tried $ kubeadm upgrade plan v1.10.11 [preflight] Running pre-flight checks. [upgrade] Making sure the cluster is healthy: [upgrade/config] Making sure the configuration is correct: [upgrade/config] Reading configuration from the cluster... [upgrade/config] FYI: You can look at this config file with 'kubectl -n kube-system get cm

kubernetes set service cidr and pod cidr the same

こ雲淡風輕ζ 提交于 2019-11-30 20:02:52
When we use kubeadm to set up a k8s cluster, there are two options to config: --pod-network-cidr --service-cidr (default ‘10.96.0.0/12’) Question is: If I use 10.244.0.0./12 for pod-network-cidr , do I need to save that IP range for Kubernetes? What happens if we already start to use 10.244.0.0/12 for other machines. Can I set service-cidr and the pod-network-cidr the same range? I don't understand how service-cidr works. To reply briefly: You do have to reserve both the pod-network range and the service network range. You can't use those on your LAN (and you can't have routes to it). Both

Restart Kubernetes API server with different options

孤街浪徒 提交于 2019-11-30 18:17:11
I'm pretty new to Kubernetes and clusters so this might be very simple. I set up a Kubernetes cluster with 5 nodes using kubeadm following this guide . I got some issues but it all worked in the end. So now I want to install the Web UI (Dashboard) . To do so I need to set up authentication: Please note, this works only if the apiserver is set up to allow authentication with username and password. This is not currently the case with the some setup tools (e.g., kubeadm). Refer to the authentication admin documentation for information on how to configure authentication manually. So I got to read

kubelet failed with kubelet cgroup driver: “cgroupfs” is different from docker cgroup driver: “systemd”

十年热恋 提交于 2019-11-30 14:11:54
Configuration for cgroup driver is right in /etc/systemd/system/kubelet.service.d/10-kubeadm.conf Environment="KUBELET_CGROUP_ARGS=--cgroup-driver=systemd" I also checked the Environment with cli $ systemctl show --property=Environment kubelet | cat Environment=KUBELET_KUBECONFIG_ARGS=--kubeconfig=/etc/kubernetes/kubelet.conf\x20--require-kubeconfig=true KUBELET_SYSTEM_PODS_ARGS=--pod-manifest-path=/etc/kubernetes/manifests\x20--allow-privileged=true KUBELET_NETWORK_ARGS=--network-plugin=cni\x20--cni-conf-dir=/etc/cni/net.d\x20--cni-bin-dir=/opt/cni/bin KUBELET_DNS_ARGS=--cluster-dns=10.96.0

kubernetes set service cidr and pod cidr the same

ぃ、小莉子 提交于 2019-11-30 04:15:31
问题 When we use kubeadm to set up a k8s cluster, there are two options to config: --pod-network-cidr --service-cidr (default ‘10.96.0.0/12’) Question is: If I use 10.244.0.0./12 for pod-network-cidr , do I need to save that IP range for Kubernetes? What happens if we already start to use 10.244.0.0/12 for other machines. Can I set service-cidr and the pod-network-cidr the same range? I don't understand how service-cidr works. 回答1: To reply briefly: You do have to reserve both the pod-network

Restart Kubernetes API server with different options

戏子无情 提交于 2019-11-30 03:10:40
问题 I'm pretty new to Kubernetes and clusters so this might be very simple. I set up a Kubernetes cluster with 5 nodes using kubeadm following this guide. I got some issues but it all worked in the end. So now I want to install the Web UI (Dashboard). To do so I need to set up authentication: Please note, this works only if the apiserver is set up to allow authentication with username and password. This is not currently the case with the some setup tools (e.g., kubeadm). Refer to the