From c24aef3d7ca19189f0efcc6c9378c309e7952168 Mon Sep 17 00:00:00 2001 From: Jan Novak Date: Sat, 8 Jun 2024 11:16:47 +0200 Subject: [PATCH] add skeleton of values file for cilium, add some bash notes into readme --- README.md | 24 +++++++++++++++++++++++- vagrant/k8s/cilium-values.yaml | 12 ++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 vagrant/k8s/cilium-values.yaml diff --git a/README.md b/README.md index 34aba7e..24f1f0e 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,25 @@ # Home Kubernetes -Home kubernetes lab IAC and documentation \ No newline at end of file +Home kubernetes lab IAC and documentation + + + +## helper commands & notes + +```bash +export KUBECONFIG=/etc/kubernetes/admin.conf +alias k=kubectl + + +# install helm +curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null +sudo apt-get install apt-transport-https --yes +echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list +sudo apt-get update +sudo apt-get install helm + +# cilium installation +helm repo add cilium https://helm.cilium.io/ +helm install cilium cilium/cilium --version 1.15.5 \ + --namespace kube-system +``` \ No newline at end of file diff --git a/vagrant/k8s/cilium-values.yaml b/vagrant/k8s/cilium-values.yaml new file mode 100644 index 0000000..56ddeaf --- /dev/null +++ b/vagrant/k8s/cilium-values.yaml @@ -0,0 +1,12 @@ +cluster: + name: "home-kube" +hubble: + relay: + enabled: true + ui: + enabled: true +ipam: + mode: cluster-pool + operator: + clusterPoolIPv4MaskSize: 24 + clusterPoolIPv4PodCIDRList: "10.96.0.0/16" \ No newline at end of file