add metrics-server with insecure-api patch
This commit is contained in:
parent
c8a257436d
commit
81c1d95690
@ -1,4 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: metrics-server
|
|
@ -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
|
||||||
|
17
metrics-server/metrics-server-args-patch.yaml
Normal file
17
metrics-server/metrics-server-args-patch.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user