add metrics-server with insecure-api patch

This commit is contained in:
Mans Ziesel 2024-11-06 20:29:34 +01:00
parent c8a257436d
commit 81c1d95690
3 changed files with 21 additions and 8 deletions

View File

@ -1,4 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
name: metrics-server

View File

@ -1,8 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
namespace: metrics-server
resources: resources:
- ./base/metrics-server-namespace.yaml
- https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.7.2/components.yaml - https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.7.2/components.yaml
patches:
- path: metrics-server-args-patch.yaml

View File

@ -0,0 +1,17 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: metrics-server
namespace: kube-system
spec:
template:
spec:
containers:
- name: metrics-server
args:
- --kubelet-insecure-tls
- --cert-dir=/tmp
- --secure-port=10250
- --kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname
- --kubelet-use-node-status-port
- --metric-resolution=15s