From bfbd1d86fd93393731f094690d35dd8e438140f1 Mon Sep 17 00:00:00 2001 From: tehNooB <125163838+JamesTurland@users.noreply.github.com> Date: Mon, 30 Oct 2023 20:40:36 +0000 Subject: [PATCH] Create k3s --- Kubernetes/RKE2/k3s | 61 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Kubernetes/RKE2/k3s diff --git a/Kubernetes/RKE2/k3s b/Kubernetes/RKE2/k3s new file mode 100644 index 0000000..61f4512 --- /dev/null +++ b/Kubernetes/RKE2/k3s @@ -0,0 +1,61 @@ +#!/bin/bash + +echo "apiVersion: apps/v1 +kind: DaemonSet +metadata: + creationTimestamp: null + name: kube-vip-ds + namespace: kube-system +spec: + selector: + matchLabels: + name: kube-vip-ds + template: + metadata: + creationTimestamp: null + labels: + name: kube-vip-ds + spec: + containers: + - args: + - manager + env: + - name: vip_arp + value: \"true\" + - name: vip_interface + value: $vipInterface + - name: port + value: \"6443\" + - name: vip_cidr + value: \"32\" + - name: cp_enable + value: \"true\" + - name: cp_namespace + value: kube-system + - name: svc_enable + value: \"true\" + - name: vip_address + value: $vipAddress + image: ghcr.io/kube-vip/kube-vip:v0.5.11 + imagePullPolicy: Always + name: kube-vip + resources: {} + securityContext: + capabilities: + add: + - NET_ADMIN + - NET_RAW + - SYS_TIME + hostNetwork: true + nodeSelector: + node-role.kubernetes.io/master: \"true\" + serviceAccountName: kube-vip + tolerations: + - effect: NoSchedule + key: node-role.kubernetes.io/master + updateStrategy: {} +status: + currentNumberScheduled: 0 + desiredNumberScheduled: 0 + numberMisscheduled: 0 + numberReady: 0"