feat(cluster): add kured as optional deployment

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl committed 2022-06-09 09:13:42 -04:00
1 parent 46f1a392fb
commit 3a5b188e9a
6 files changed
+45 -5

No files matched your search

+6
View File
@@ -43,6 +43,12 @@ export BOOTSTRAP_AGE_PUBLIC_KEY=""
# e.g. 192.168.1.254
export BOOTSTRAP_KUBE_VIP_ADDR=""
# Choose your timezone
# Used to set your systems timezone
# and Kured timezone
# e.g. America/New_York
export BOOTSTRAP_TIMEZONE="Etc/UTC"
#
# Ansible related variables
#
@@ -0,0 +1,32 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: kured
namespace: kube-system
spec:
interval: 5m
chart:
spec:
chart: kured
version: 2.15.0
sourceRef:
kind: HelmRepository
name: weaveworks-kured-charts
namespace: flux-system
interval: 5m
install:
createNamespace: true
remediation:
retries: 3
upgrade:
remediation:
retries: 3
values:
configuration:
annotateNodes: true
startTime: "10pm"
endTime: "2am"
logFormat: "json"
rebootCommand: "/bin/systemctl reboot"
timeZone: "${TIMEZONE}"
@@ -0,0 +1,5 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- helm-release.yaml
@@ -2,6 +2,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
# - kured
- metrics-server
- reflector
- reloader
-5
View File
@@ -2,11 +2,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
# Be sure to NOT downgrade k3s by keep the value in
# ./provision/ansible/inventory/group_vars/kubernetes/k3s.yml
# updated if you need to re-run the Ansible playbook.
# To enable automatic Kubernetes upgrades uncomment
# the below line
# - system-upgrade
- default
- kube-system
+1
View File
@@ -5,6 +5,7 @@ metadata:
name: cluster-settings
namespace: flux-system
data:
TIMEZONE: ${BOOTSTRAP_TIMEZONE}
METALLB_LB_RANGE: ${BOOTSTRAP_METALLB_LB_RANGE}
METALLB_K8S_GATEWAY_ADDR: ${BOOTSTRAP_METALLB_K8S_GATEWAY_ADDR}
METALLB_TRAEFIK_ADDR: ${BOOTSTRAP_METALLB_TRAEFIK_ADDR}