From d93d36fef0522d2e1034fad3b7d28a1bacc367f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Rodr=C3=ADguez?= Date: Wed, 30 Oct 2024 09:05:28 +0100 Subject: [PATCH] =?UTF-8?q?a=C3=B1adida=20imagen=20y=20modificada=20pagina?= =?UTF-8?q?=20k8s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../posts/2024-10-24_k8s_ansible/get_nodes.png | Bin 0 -> 9641 bytes .../posts/2024-10-24_k8s_ansible/index.md | 13 +++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 src/content/posts/2024-10-24_k8s_ansible/get_nodes.png diff --git a/src/content/posts/2024-10-24_k8s_ansible/get_nodes.png b/src/content/posts/2024-10-24_k8s_ansible/get_nodes.png new file mode 100644 index 0000000000000000000000000000000000000000..aa35053bd1c40bf6e65dee99e05829aea8cff737 GIT binary patch literal 9641 zcmajFWmr^U_x24UAq`51bO}fc(%{hD-9v+P_s}6oiHbd>VwCNr}h9f02*3tG9Da=`FQ=zUD3!34UMqx-+?~lR%(NW#v-XC z3()m9Kgo7+rXKpfhcX%stS$8E7{SEOh_Ty``-qX&jgBYW!bwc%-(X`R9A-64K-k>< z@kOI4Cb{LQGHrZ!D2{ae*E#{qo^ek0QFJIYh3xI$Z-(T3#93%PjIahYIe(dvKlnf@ z!|ly4E+eTw;}$DQ+S=ONN=hv30)=HR@1J2fwSn6!D#|NzLJtpMpwoDskb9{fUi>~@ z{O1^;A|(I6s81LF75V=J{qn~#154eY4X7VoshgHjpS=#Gr(|-@)mMHO1QojUvbR)o zS#4`5uHNX3=f3#_q>KT=FL*isoZlG?VE+)l-fY!y4?4_gncn>1oB@9>UW*!A2vKt> z#a!L;cRPK$^v;Xs-@|{TS@msJ5S^ENrrZ31x<&53<9@soWlVhbm{cf z8jve&YZFXy_^I3WY}{WOww%NBEYU?Ty4;WJBL{J3Z4!7NHZzvI<+R%J?sFPZCyS_> z5`liG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_d?NTkcCQu0Vh$;`Y(=_);>+9{M(2K_Qo08_fPA zQ`aP)mt&>NX-(>`5n@Sx?z#6?ac_BQU4T6aU~4majlGwgqgZ)K200iVFM9!qgW>%^ zY2UP0rRYc1q$)ekm>(SWIwEx_DF4I=|;eg&PS0i6zA1I+6c5cf@P|0N9O zdyZ8e72(eefN$q@Ei;8}`r!>gF|Vx1Pw!7E!%(~b5Twz(n>eiwed|V zSs-PUSm*&vTWbaITF?hYly}*dz?7oSSw@L-ZDw z2JVPyYsYn4VAkaS2T^pC_8DEEB$R+PG1m7Hf%^pjgf8Ha`^#2kfw(e8(~R?nN1!k; zdT6>3;G}l46S`!RWuv4@bQZc0%b3blBx9MIwi(DE&+Xa#6=BA=J*qq81G?^Q#+If4 z3>l;s?(Po0C1RMgFd^MqMnz7rHP zE@Vp5%jd;<=kkCX0Gew8;W&W4kfum!PcUn}&eU!d1}LYHXc-Ee{0^O#PFf^0QQ_v@y3+InjE0teO|{^;)@X72i=A z&o2G-Mws+Tv=;@UBW+6cf~e*~5cBJD=FX>-Omn|IOwueL+pAlk)KnsKaDLHh?kx8W zy~ZAbeaY~ampm$bWBFa@Vf7}|Wy8^s+2_hgUwt?tl{|p3J`=yfyD~~nU-gOFug4CJ zOZ9@3)j+y;=YTi7uI%QXNt)bC)LsSr?;;3N@jm(w4-PZORse`{T9wU(61gJRfNQ7&tF}e(J1}6!> zVC2w1_CZXAV{+|5Crj2HQWy1BW;Zg$BLr|y^f>yl$zoTIocFu`@eO({GyMPh8s<7D z1~M32sal{P>_Y4gLSo9$`LNyiRq=-%PO0tc55@YT2K@(WxI4}8>*XHz|1zfi_zY9` z?I*JZTP1B7 G@qYoz%th${ literal 0 HcmV?d00001 diff --git a/src/content/posts/2024-10-24_k8s_ansible/index.md b/src/content/posts/2024-10-24_k8s_ansible/index.md index a263178..35135b3 100644 --- a/src/content/posts/2024-10-24_k8s_ansible/index.md +++ b/src/content/posts/2024-10-24_k8s_ansible/index.md @@ -8,6 +8,11 @@ category: '' draft: true lang: '' --- + +:::note +Los archivos del proyecto se encuentran en [este repositorio](https://github.com/robertorodriguez98/k3s-ansible) +::: + ## Preparación del escenario Se van a crear 3 máquinas virtuales, 1 actuará de plano de control, y las otras 2 serán nodos. Para crear el escenario se va a usar **Vagrant** con **virtualbox** como proveedor, utilizando el siguiente `Vagrantfile`: @@ -134,3 +139,11 @@ all: - name: instalamos k3s con el token shell: "curl -sfL https://get.k3s.io | K3S_URL=https://{{ ip_pcontrol }}:6443 K3S_TOKEN={{ hostvars['p_nodo'].token_k3s }} sh -" ``` + +Tras ejecutar el playbook, k3s se habrá instalado correctamente. Podemos comprobarlo con `kubectl` + +```shell +kubectl get nodes +``` + +![kubectl get nodes](get_nodes.png)