Por si a alguien no le funciona el CTRL +C y el CTRL +V (Es un tedio teclear los tokens letra por letra). Al parecer el problema es recurrente en Firefox, si pueden usen un browser basado en Chromium.
El copy y el paste funcionan con:
CTRL + Insert -> Copy
SHIFT + Insert -> Paste
Me has salvado la vida. Gracias amigo.
Ctrl+Shift+V -> Pegar también
Al parecer la página ya no está funcionando, pero pueden realizar las mismas dinámicas de esta clase en la siguiente liga:
si funciona, pero tarda mucho, o no responde a las petciciones
play-with-kubernetes se explica en el sitio de Kubernetes ya no funciona. Sin embargo labs.play-with-k8s sí está activo actualmente
no me gusta que uses esto para enseñar kubeadm. sido mucho mejor configurar todo desde 0 para aprender.
Opino lo mismo
opino lo mismo
Va muy rapido y explica y nombra 500 mil cosas por segundo, es imposible seguirlo. Asume muchos conocimientos que no tenemos porque saber. La verdad explica muy mal , se nota que tiene muchos conocimientos, pero su fuerte no es enseñar
¿Ya revisaste los cursos anteriores de docker, docker swarm y previos? Ayudan mucho
estoy de acuerdo... y ya hice docker, docker swarm y aun asi me cuesta entenderle
sí funciona Play with Kuberntes
Para ingresar puedes hacerlo con la ID de docker o github, yo entre mi ID de docker la primera vez no carga, de ahi recargue la página y entré
No siempre funciona, hay días que no responde y es la mayoría lamentablemente
The most Popular CNI plugins:
flannel.
calico.
weave.
canal. (una combinación de múltiples plugins)
++Weave:++
Weave crea una red superpuesta de malla entre cada uno de los nodos del clúster, lo que ++permite un enrutamiento flexible++ entre los participantes. Esto, junto con algunas otras características únicas, permite a Weave enrutar inteligentemente en situaciones que de otro modo podrían causar problemas.
Fuente: https://rancher.com/blog/2019/2019-03-21-comparing-kubernetes-cni-providers-flannel-calico-canal-and-weave/
A mi se me instalo kube-router con CNI:
++kube-router:++
El Kube-router es una solución turnkey para redes de Kubernetes con el objetivo de ++proporcionar simplicidad operativa.++ La creación de redes es difícil como tal. ++En un clúster de Kubernetes típico, necesitaría instalar varios componentes de red para diversas funciones.++ Con muchas partes móviles, hace que las redes de Kubernetes sean aún más difíciles. El Kube-router proporciona una alternativa cohesiva pero esbelta y poderosa para varios componentes de red que usaría.
++Kube-router++ proporcionar un alto rendimiento es el núcleo de todas las elecciones de diseño realizadas en Kube-router. Ya sea el uso de IPVS / LVS para ++proxy de servicio++ o el uso de ++enrutamiento directo a través de los nodos para redes de pod,++ etc.
Si funciona, sólo que debes ingresar desde la pagina oficial de
Para la fecha 29/11/2021 no funciono la pagina se quedo en negro y kubeadmin no funciona para windows. habia empezado super el curso pero estas ultimas clases necesitan actualización.
Anexo documentación
Hola Dejo un par de preguntas... Veo muchos tutoriales en internet como instalar un clúster de k8s y todos mencionan desactivar el Firewall.. Imagino que es para desarrollo no?. Y otra pregunta. estoy en una empresa que quiere montar su clúster de kubernetes pero no en la nube ya que tiene su propio Data center... recomiendan instalar un clúster con kubeadm y empezar a jugar con eso. O alguna otra alternativa?. Estaría bueno agregar al curso los prerrequisitos antes de empezar con kubeadm
Sí, nunca desactives el firewall en servidores de producción.
Definitivamente kubeadm creo es un buen bootstrap para empezar.
En cuanto a la decisión de usar su propio data center, son libres de hacerlo y puede que tengan muy buenos motivos para hacerlo pero creo que no estaría de más evaluar las muchas ventajas que dan los servicios en la nube.
hay un curso de kubernetes mas sencillo? porque aqui explican muy rapido y los comandos no se asimilan rapido porque el los coloca pero no explica para que sirven.
Puedes utilizar el motor de búsqueda de Platzi con la palabra "Kubernetes" y repasar los otros cursos que tiene la plataforma.
Para los que quedamos con un sin sabor de profundizar más acerca del proceso de levantar un cluster de k8s, les comparto una, guía de instalación para rocky linux, distribución basada en redhat.
[init] using Kubernetes version: v1.11.10[preflight] running pre-flight checks
[WARNINGPort-10251]:Port10251 is in use
[WARNINGPort-10252]:Port10252 is in use
[WARNINGFileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml]:/etc/kubernetes/manifests/kube-apiserver.yaml already exists
[WARNINGFileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml]:/etc/kubernetes/manifests/kube-controller-manager.yaml already exists
[WARNINGFileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml]:/etc/kubernetes/manifests/kube-scheduler.yaml already exists
[WARNINGFileAvailable--etc-kubernetes-manifests-etcd.yaml]:/etc/kubernetes/manifests/etcd.yaml already exists
[WARNINGService-Docker]: docker service is not active, please run 'systemctl start docker.service'[WARNINGFileContent--proc-sys-net-bridge-bridge-nf-call-iptables]:/proc/sys/net/bridge/bridge-nf-call-iptables does not exist
I111803:59:58.0062314930 kernel_validator.go:81]Validating kernel version
I111803:59:58.0102524930 kernel_validator.go:96]Validating kernel config
[preflight]The system verification failed.Printing the output from the verification:KERNEL_VERSION:4.4.0-165-generic
DOCKER_VERSION:18.06.1-ce
OS:LinuxCGROUPS_CPU: enabled
CGROUPS_CPUACCT: enabled
CGROUPS_CPUSET: enabled
CGROUPS_DEVICES: enabled
CGROUPS_FREEZER: enabled
CGROUPS_MEMORY: enabled
[WARNINGSystemVerification]: docker version is greater than the most recently validated version.Docker version:18.06.1-ce.Max validated version:17.03[WARNINGSystemVerification]: failed to parse kernel config: unable to load kernel module "configs": output -"", err - exit status 1[WARNINGPort-10250]:Port10250 is in use
[WARNINGDirAvailable--var-lib-etcd]:/var/lib/etcd is not empty
[preflight/images]Pulling images required for setting up a Kubernetes cluster
[preflight/images]This might take a minute or two, depending on the speed of your internet connection
[preflight/images]You can also perform this action in beforehand using 'kubeadm config images pull'[preflight]WARNING: unable to stop the kubelet service momentarily:[exit status 1][kubelet]Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env"[kubelet]Writing kubelet configuration to file "/var/lib/kubelet/config.yaml"[preflight]Activating the kubelet service
[preflight]WARNING: unable to start the kubelet service:[exit status 1][preflight] please ensure kubelet is reloaded and running manually.[certificates]Using the existing ca certificate and key.[certificates]Using the existing apiserver certificate and key.[certificates]Using the existing apiserver-kubelet-client certificate and key.[certificates]Using the existing sa key.[certificates]Using the existing front-proxy-ca certificate and key.[certificates]Using the existing front-proxy-client certificate and key.[certificates]Using the existing etcd/ca certificate and key.[certificates]Using the existing etcd/server certificate and key.[certificates]Using the existing etcd/peer certificate and key.[certificates]Using the existing etcd/healthcheck-client certificate and key.[certificates]Using the existing apiserver-etcd-client certificate and key.[certificates] valid certificates and keys now exist in"/etc/kubernetes/pki"[kubeconfig]Using existing up-to-date KubeConfig file:"/etc/kubernetes/admin.conf"[kubeconfig]Using existing up-to-date KubeConfig file:"/etc/kubernetes/kubelet.conf"[kubeconfig]Using existing up-to-date KubeConfig file:"/etc/kubernetes/controller-manager.conf"[kubeconfig]Using existing up-to-date KubeConfig file:"/etc/kubernetes/scheduler.conf"[controlplane] wrote StaticPod manifest for component kube-apiserver to "/etc/kubernetes/manifests/kube-apiserver.yaml"[controlplane] wrote StaticPod manifest for component kube-controller-manager to "/etc/kubernetes/manifests/kube-controller-manager.yaml"[controlplane] wrote StaticPod manifest for component kube-scheduler to "/etc/kubernetes/manifests/kube-scheduler.yaml"[etcd]WroteStaticPod manifest for a local etcd instance to "/etc/kubernetes/manifests/etcd.yaml"[init] waiting for the kubelet to boot up the control plane asStaticPodsfrom directory "/etc/kubernetes/manifests"[init]this might take a minute or longer if the control plane images have to be pulled
Unfortunately, an error has occurred: timed out waiting for the condition
This error is likely caused by:-The kubelet is not running
-The kubelet is unhealthy due to a misconfiguration of the node in some way(required cgroups disabled)-No internet connection is available so the kubelet cannot pull or find the following control plane images:- k8s.gcr.io/kube-apiserver-amd64:v1.11.10- k8s.gcr.io/kube-controller-manager-amd64:v1.11.10- k8s.gcr.io/kube-scheduler-amd64:v1.11.10- k8s.gcr.io/etcd-amd64:3.2.18-You can check or miligate thisin beforehand with"kubeadmconfig images pull" to make sure the images
are downloaded locally and cached.If you are on a systemd-powered system, you can try to troubleshoot the error with the following commands:-'systemctl status kubelet'-'journalctl -xeu kubelet'Additionally, a control plane component may have crashed or exited when started by the container runtime.To troubleshoot, l
WARNING!!!!This is a sandbox environment.Using personal credentials
is HIGHLY! discouraged.Any consequences of doing so, are
completely the user's responsibilites.[node1 ~]$ kubeadm init --apiserver-advertise-address $(hostname -i)Initializing machine IDfrom random generator.[init] using Kubernetes version: v1.11.10[preflight] running pre-flight checks
[WARNINGService-Docker]: docker service is not active, please run 'systemctl start d
ocker.service'
[WARNINGFileContent--proc-sys-net-bridge-bridge-nf-call-iptables]:/proc/sys/net/bri
dge/bridge-nf-call-iptables does not exist
I111803:47:05.1612051004 kernel_validator.go:81]Validating kernel version
I111803:47:05.1629641004 kernel_validator.go:96]Validating kernel config
[preflight]The system verification failed.Printing the output from the verification:KERNEL_VERSION:4.4.0-165-generic
DOCKER_VERSION:18.06.1-ce
OS:LinuxCGROUPS_CPU: enabled
CGROUPS_CPUACCT: enabledCGROUPS_CPUSET: enabled
CGROUPS_DEVICES: enabled
CGROUPS_FREEZER: enabled
CGROUPS_MEMORY: enabled
[WARNINGSystemVerification]: docker version is greater than the most recently valida
ted version.Docker version:18.06.1-ce.Max validated version:17.03[WARNINGSystemVerification]: failed to parse kernel config: unable to load kernel mo
dule "configs": output -"", err - exit status 1[preflight/images]Pulling images required for setting up a Kubernetes cluster
[preflight/images]This might take a minute or two, depending on the speed of your internet connection
[preflight/images]You can also perform this action in beforehand using 'kubeadm config images pull'[kubelet]Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env"[kubelet]Writing kubelet configuration to file "/var/lib/kubelet/config.yaml"[preflight]Activating the kubelet service
[certificates]Generated ca certificate and key.[certificates]Generated apiserver certificate and key.[certificates] apiserver serving cert is signed forDNS names [node1 kubernetes kubernetes.default kubernetes.default.svc kubernetes.default.svc.cluster.local] and IPs[10.96.0.1192.168.0.23][certificates]Generated apiserver-kubelet-client certificate and key.[certificates]Generated sa key and public key.[certificates]Generated front-proxy-ca certificate and key.[certificates]Generated front-proxy-client certificate and key.[certificates]Generated etcd/ca certificate and key.[certificates]Generated etcd/server certificate and key.[certificates] etcd/server serving cert is signed forDNS names [node1 localhost] and IPs[127.0.0.1::1][certificates]Generated etcd/peer certificate and key.[certificates] etcd/peer serving cert is signed forDNS names [node1 localhost] and IPs[192.168.0.23127.0.0.1::1][certificates]Generated etcd/healthcheck-client certificate and key.[certificates]Generated apiserver-etcd-client certificate and key.[certificates] valid certificates and keys now exist in"/etc/kubernetes/pki"[kubeconfig]WroteKubeConfig file to disk:"/etc/kubernetes/admin.conf"[kubeconfig]WroteKubeConfig file to disk:"/etc/kubernetes/kubelet.conf"[kubeconfig]WroteKubeConfig file to disk:"/etc/kubernetes/controller-manager.conf"[kubeconfig]WroteKubeConfig file to disk:"/etc/kubernetes/scheduler.conf"[controlplane] wrote StaticPod manifest for component kube-apiserver to "/etc/kubernetes/manifests/kube-apiserver.yaml"[controlplane] wrote StaticPod manifest for component kube-controller-manager to "/etc/kubernetes/manifests/kube-controller-manager.yaml"[controlplane] wrote StaticPod manifest for component kube-scheduler to "/etc/kubernetes/manifests/kube-scheduler.yaml"[etcd]WroteStaticPod manifest for a local etcd instance to "/etc/kubernetes/manifests/etcd.yaml"[init] waiting for the kubelet to boot up the control plane asStaticPodsfrom directory "/etc/kubernetes/manifests"[init]this might take a minute or longer if the control plane images have to be pulled
Unfortunately, an error has occurred: timed out waiting for the condition
This error is likely caused by:-The kubelet is not running
-The kubelet is unhealthy due to a misconfiguration of the node in some way(required cgroups disabled)-No internet connection is available so the kubelet cannot pull or find the following control plane images:- k8s.gcr.io/kube-apiserver-amd64:v1.11.10- k8s.gcr.io/kube-controller-manager-amd64:v1.11.10- k8s.gcr.io/kube-scheduler-amd64:v1.11.10- k8s.gcr.io/etcd-amd64:3.2.18-You can check or miligate thisin beforehand with"kubeadmconfig images pull" to make sure the images
are downloaded locally and cached.If you are on a systemd-powered system, you can try to troubleshoot the error with the following commands:-'systemctl status kubelet'-'journalctl -xeu kubelet'Additionally, a control plane component may have crashed or exited when started by the container runtime.To troubleshoot, list all containers using your preferred container runtimesCLI, e.g.docker.
Tengo el mismo error -.-!
En la última parte, cuando trato de instalar "NGINX" nunca termina el proceso de "ContainerCreating". He seguido los pasos tal cual
Para inicializar un cluster
hay cosas que ya estan descatualizadas y toca buscarlas por aparte, la forma de iniclializar un network es con el siguiente comando