feat: enable etcd monitoring for k0s (#1179)
* feat: enable etcd monitoring for k0s Signed-off-by: Devin Buhl <devin@buhl.casa> * fix: always enable etcd on k3s Signed-off-by: Devin Buhl <devin@buhl.casa> --------- Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
1 parent
ca9d1818fc
commit
95094450fb
4 files changed
+9
-12
No files matched your search
@@ -9,11 +9,8 @@
|
||||
k3s_release_version: "v1.29.0+k3s1"
|
||||
k3s_install_hard_links: true
|
||||
k3s_become: true
|
||||
#% if bootstrap_nodes.master | length > 1 %#
|
||||
k3s_etcd_datastore: true
|
||||
#% else %#
|
||||
k3s_etcd_datastore: false
|
||||
#% endif %#
|
||||
k3s_use_unsupported_config: true
|
||||
k3s_registration_address: "{{ kube_api_addr }}"
|
||||
# /var/lib/rancher/k3s/server/manifests
|
||||
k3s_server_manifests_templates:
|
||||
|
||||
-4
@@ -103,11 +103,7 @@ spec:
|
||||
regex: "(apiserver_audit|apiserver_client|apiserver_delegated|apiserver_envelope|apiserver_storage|apiserver_webhooks|attachdetach_controller|authenticated_user|authentication|cronjob_controller|disabled_metric|endpoint_slice|ephemeral_volume|garbagecollector_controller|get_token|go|hidden_metric|job_controller|kubernetes_build|kubernetes_feature|leader_election|node_collector|node_ipam|process_cpu|process_max|process_open|process_resident|process_start|process_virtual|pv_collector|registered_metric|replicaset_controller|rest_client|retroactive_storageclass|root_ca|running_managed|scrape_duration|scrape_samples|scrape_series|service_controller|storage_count|storage_operation|ttl_after|volume_operation|workqueue)_(.+)"
|
||||
#% endif %#
|
||||
kubeEtcd:
|
||||
#% if bootstrap_nodes.master | length > 1 %#
|
||||
enabled: true
|
||||
#% else %#
|
||||
enabled: false
|
||||
#% endif %#
|
||||
endpoints: *endpoints
|
||||
kubeScheduler:
|
||||
enabled: true
|
||||
|
||||
@@ -67,6 +67,10 @@ spec:
|
||||
extraArgs:
|
||||
# Required to monitor kube-scheduler with kube-prometheus-stack
|
||||
bind-address: "0.0.0.0"
|
||||
storage:
|
||||
etcd:
|
||||
extraArgs:
|
||||
listen-metrics-urls: http://0.0.0.0:2381 # Required to monitor etcd with kube-prometheus-stack
|
||||
api:
|
||||
sans:
|
||||
- "#{ bootstrap_kube_api_addr }#"
|
||||
|
||||
Reference in new issue
Block a user