How to use kubeadm to create kubernetes cluster?

sope

I init k8s cluster master with kubeadm, but I felt very confused. The version of kubeadm:

# ./kubeadm version
kubeadm version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.1", GitCommit:"82450d03cb057bab0950214ef122b67c83fb11df", GitTreeState:"clean", BuildDate:"2016-12-14T00:52:01Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"linux/amd64"}

When I run command with kubeadm init, told me must start kubelet.service:

# ./kubeadm init
Running pre-flight checks
preflight check errors:
    kubelet service is not active, please run 'systemctl start kubelet.service'

And then When I retry this command after systemctl restart kubelet.service, told me Port 10250 in use:

# systemctl restart kubelet.service
# ./kubeadm init
Running pre-flight checks
preflight check errors:
    Port 10250 is in use
    /var/lib/kubelet is not empty

Is there any way to run kubelet with no port OR can I change the port of kubelet?

jzeef

The reason that it mentions the port is in use is because you already ran kubeadm init once and it has already changed a number of things.

run kubeadm reset first to undo all of the changes from the first time you ran it.

Then run systemctl restart kubelet

Finally, when you run kubeadm init you should no longer get the error.

Any time kubeadm does something that's not right or otherwise fails, it needs to be reset to work properly again.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

how to use Kubernetes DNS for pods?

分類Dev

How to use local docker containers with Kubernetes

分類Dev

HPA + Cluster Autoscaler + OPA within Federated Kubernetes cluster on GKE

分類Dev

How to add an Azure AKS Kubernetes Cluster self-signed CA to GitLab CI/CD Kubernetes integration?

分類Dev

Kubernetes cluster autoscaler does not seem to work on GKE?

分類Dev

Pip installing a package inside of a Kubernetes cluster

分類Dev

Kubernetes Cluster Context with Multiple Namespaces

分類Dev

Kubernetes - How to access nginx load balancing from outside the cluster using a NodePort service

分類Dev

how to configure already running cluster in kubernetes

分類Dev

How to create a GCP Kubernetes Engine cluster spanning two regions?

分類Dev

What is the recommended architecture for scheduled jobs in Kubernetes cluster?

分類Dev

Kubernetes on single Windows Server Core node cluster

分類Dev

How to remove GPU in Google Kubernetes cluster (GKE)

分類Dev

How to create Kafka user and consumer group for ACLs in a running cluster?

分類Dev

How to create a user in a Kubernetes cluster?

分類Dev

Upgrade Kubernetes Cluster using Terraform's provisioner

分類Dev

Reset Kubernetes cluster

分類Dev

How to deploy to a (local) Kubernetes cluster using Jenkins

分類Dev

Kubernetes cluster does not run after reboot

分類Dev

How to find available resources in a Kubernetes Cluster level?

分類Dev

Setting Up Prometheus with Python in Kubernetes Cluster

分類Dev

How to create connectors for Kafka-connect on Kubernetes?

分類Dev

Terraform - How to Create a GKE Cluster and Install Helm Charts?

分類Dev

Kubernetes: Nodes/Pods not showing with kubectl after building cluster with kubeadm

分類Dev

Is there any posible to create external load balancer for pod in cluster created by kubeadm tool

分類Dev

Schedule Cluster resizing on Google Kubernetes Engine

分類Dev

How retrive passwords from varibales in ConfigMap and use them in kubernetes deployment

分類Dev

How to enable Client Certificate in Google Kubernetes Engine Cluster

分類Dev

terraformazurerm_kubernetes_clusterノード

Related 関連記事

  1. 1

    how to use Kubernetes DNS for pods?

  2. 2

    How to use local docker containers with Kubernetes

  3. 3

    HPA + Cluster Autoscaler + OPA within Federated Kubernetes cluster on GKE

  4. 4

    How to add an Azure AKS Kubernetes Cluster self-signed CA to GitLab CI/CD Kubernetes integration?

  5. 5

    Kubernetes cluster autoscaler does not seem to work on GKE?

  6. 6

    Pip installing a package inside of a Kubernetes cluster

  7. 7

    Kubernetes Cluster Context with Multiple Namespaces

  8. 8

    Kubernetes - How to access nginx load balancing from outside the cluster using a NodePort service

  9. 9

    how to configure already running cluster in kubernetes

  10. 10

    How to create a GCP Kubernetes Engine cluster spanning two regions?

  11. 11

    What is the recommended architecture for scheduled jobs in Kubernetes cluster?

  12. 12

    Kubernetes on single Windows Server Core node cluster

  13. 13

    How to remove GPU in Google Kubernetes cluster (GKE)

  14. 14

    How to create Kafka user and consumer group for ACLs in a running cluster?

  15. 15

    How to create a user in a Kubernetes cluster?

  16. 16

    Upgrade Kubernetes Cluster using Terraform's provisioner

  17. 17

    Reset Kubernetes cluster

  18. 18

    How to deploy to a (local) Kubernetes cluster using Jenkins

  19. 19

    Kubernetes cluster does not run after reboot

  20. 20

    How to find available resources in a Kubernetes Cluster level?

  21. 21

    Setting Up Prometheus with Python in Kubernetes Cluster

  22. 22

    How to create connectors for Kafka-connect on Kubernetes?

  23. 23

    Terraform - How to Create a GKE Cluster and Install Helm Charts?

  24. 24

    Kubernetes: Nodes/Pods not showing with kubectl after building cluster with kubeadm

  25. 25

    Is there any posible to create external load balancer for pod in cluster created by kubeadm tool

  26. 26

    Schedule Cluster resizing on Google Kubernetes Engine

  27. 27

    How retrive passwords from varibales in ConfigMap and use them in kubernetes deployment

  28. 28

    How to enable Client Certificate in Google Kubernetes Engine Cluster

  29. 29

    terraformazurerm_kubernetes_clusterノード

ホットタグ

アーカイブ