From 3763da810217045d957407065986f3620ac541fc Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Fri, 19 Jan 2024 23:05:20 -0700 Subject: [PATCH] Delete Containers/Kubernetes/RKE2 Playbooks/3B-deploy-worker-node.yml.md --- .../3B-deploy-worker-node.yml.md | 38 ------------------- 1 file changed, 38 deletions(-) delete mode 100644 Containers/Kubernetes/RKE2 Playbooks/3B-deploy-worker-node.yml.md diff --git a/Containers/Kubernetes/RKE2 Playbooks/3B-deploy-worker-node.yml.md b/Containers/Kubernetes/RKE2 Playbooks/3B-deploy-worker-node.yml.md deleted file mode 100644 index 0d10a18..0000000 --- a/Containers/Kubernetes/RKE2 Playbooks/3B-deploy-worker-node.yml.md +++ /dev/null @@ -1,38 +0,0 @@ -# 3B-deploy-worker-node.yml - -```jsx title="3B-deploy-worker-node.yml" ---- -- name: RKE2 Kubernetes Worker Node Deployment - hosts: all - become: yes - tasks: - - name: Download and install RKE2 agent - shell: "curl -sfL https://get.rke2.io | INSTALL_RKE2_TYPE=agent sh -" - - - name: Create Rancher-Kubernetes-specific config directory - file: - path: "/etc/rancher/rke2/" - state: directory - - - name: Inject IP of Primary Cluster Host (First Node) into Config File - lineinfile: - path: "/etc/rancher/rke2/config.yaml" - line: "server: https://192.168.3.21:9345" - - - name: Get the node token from the first node in the cluster - shell: "cat /var/lib/rancher/rke2/server/node-token" - register: node_token - run_once: true - delegate_to: first_node_host - - - name: Inject the Primary Cluster Host trust token into the config file - lineinfile: - path: "/etc/rancher/rke2/config.yaml" - line: "token: {{ node_token.stdout }}" - - - name: Enable and start the RKE2 agent service - systemd: - name: rke2-agent.service - state: started - enabled: yes -``` \ No newline at end of file