diff --git a/metrics-server/base/metrics-server-namespace.yaml b/metrics-server/base/metrics-server-namespace.yaml deleted file mode 100644 index 42f4d1f..0000000 --- a/metrics-server/base/metrics-server-namespace.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: metrics-server diff --git a/metrics-server/kustomization.yaml b/metrics-server/kustomization.yaml index 0d82769..7b3b135 100644 --- a/metrics-server/kustomization.yaml +++ b/metrics-server/kustomization.yaml @@ -1,8 +1,8 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization -namespace: metrics-server - 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 diff --git a/metrics-server/metrics-server-args-patch.yaml b/metrics-server/metrics-server-args-patch.yaml new file mode 100644 index 0000000..f1d8afa --- /dev/null +++ b/metrics-server/metrics-server-args-patch.yaml @@ -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