feat!: for a single master node do not use etcd and add option to not use kube-vip

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl committed 2023-12-29 19:21:26 -05:00
1 parent 5d4b0f52c3
commit ec8c19a24e
5 files changed
+63 -11

No files matched your search

@@ -61,7 +61,7 @@ data:
regex: (apiserver_response_sizes_bucket|apiserver_watch_events_sizes_bucket)
kubeControllerManager:
enabled: true
endpoints:
endpoints: &endpoints
{% for item in bootstrap_nodes.master %}
- {{ item.address }}
{% endfor %}
@@ -72,17 +72,15 @@ data:
sourceLabels: ["__name__"]
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)_(.+)"
kubeEtcd:
{% if bootstrap_nodes.master | length > 1 %}
enabled: true
endpoints:
{% for item in bootstrap_nodes.master %}
- {{ item.address }}
{% endfor %}
{% else %}
enabled: false
{% endif %}
endpoints: *endpoints
kubeScheduler:
enabled: true
endpoints:
{% for item in bootstrap_nodes.master %}
- {{ item.address }}
{% endfor %}
endpoints: *endpoints
serviceMonitor:
metricRelabelings:
# Remove duplicate labels provided by k3s