From 45353f5fb2b3af8ae8afb22f6ac743a38c38fd5b Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Mon, 26 Aug 2024 12:25:36 +1000 Subject: [PATCH] add configmap for kubeproxy --- .../configmaps/env/k3s-cluster/Chart.yaml | 23 +++++++++++++++++++ .../configmaps/env/k3s-cluster/config.json | 12 ++++++++++ .../env/k3s-cluster/templates/kubeproxy.yaml | 5 ++++ 3 files changed, 40 insertions(+) create mode 100644 resources/configmaps/env/k3s-cluster/Chart.yaml create mode 100644 resources/configmaps/env/k3s-cluster/config.json create mode 100644 resources/configmaps/env/k3s-cluster/templates/kubeproxy.yaml diff --git a/resources/configmaps/env/k3s-cluster/Chart.yaml b/resources/configmaps/env/k3s-cluster/Chart.yaml new file mode 100644 index 0000000..077b9d7 --- /dev/null +++ b/resources/configmaps/env/k3s-cluster/Chart.yaml @@ -0,0 +1,23 @@ +apiVersion: v2 +name: configmaps +description: Applications + +# A chart can be either an 'application' or a 'library' chart. +# +# Application charts are a collection of templates that can be packaged into versioned archives +# to be deployed. +# +# Library charts provide useful utilities or functions for the chart developer. They're included as +# a dependency of application charts to inject those utilities and functions into the rendering +# pipeline. Library charts do not define any templates and therefore cannot be deployed. +type: application + +# This is the chart version. This version number should be incremented each time you make changes +# to the chart and its templates, including the app version. +# Versions are expected to follow Semantic Versioning (https://semver.org/) +version: 0.1.0 + +# This is the version number of the application being deployed. This version number should be +# incremented each time you make changes to the application. Versions are not expected to +# follow Semantic Versioning. They should reflect the version the application is using. +appVersion: "0.0.1" diff --git a/resources/configmaps/env/k3s-cluster/config.json b/resources/configmaps/env/k3s-cluster/config.json new file mode 100644 index 0000000..fdfb0da --- /dev/null +++ b/resources/configmaps/env/k3s-cluster/config.json @@ -0,0 +1,12 @@ +{ + "appName": "configmaps", + "userGivenName": "configmaps", + "namespace": "kube-system", + "destNamespace": "kube-system", + "destServer": "https://kubernetes.default.svc", + "srcPath": "resources/configmaps/env/k3s-cluster", + "srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git", + "srcTargetRevision": "", + "labels": null, + "annotations": null +} \ No newline at end of file diff --git a/resources/configmaps/env/k3s-cluster/templates/kubeproxy.yaml b/resources/configmaps/env/k3s-cluster/templates/kubeproxy.yaml new file mode 100644 index 0000000..009bc79 --- /dev/null +++ b/resources/configmaps/env/k3s-cluster/templates/kubeproxy.yaml @@ -0,0 +1,5 @@ +apiVersion: kubeproxy.config.k8s.io/v1alpha1 +kind: KubeProxyConfiguration +mode: "ipvs" +ipvs: + strictARP: true \ No newline at end of file