Skip to content

Commit

Permalink
metrics server in dev cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
eguzki committed Apr 3, 2024
1 parent a10c9af commit 4a31717
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ local-cleanup: ## Delete local cluster
local-cluster-setup: ## Sets up Kind cluster with GatewayAPI manifests and istio GW, nothing Kuadrant.
$(MAKE) kind-delete-cluster
$(MAKE) kind-create-cluster
$(MAKE) deploy-metrics-server
$(MAKE) namespace
$(MAKE) gateway-api-install
$(MAKE) install-metallb
Expand Down
13 changes: 13 additions & 0 deletions config/metrics-server/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
resources:
- https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.7.1/components.yaml
patches:
- patch: |-
- op: add
path: /spec/template/spec/containers/0/args/-
value: --kubelet-insecure-tls
target:
version: v1
kind: Deployment
name: metrics-server
namespace: kube-system
7 changes: 7 additions & 0 deletions make/metrics-server.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

##@ kubernetes metrics server
## https://github.com/kubernetes-sigs/metrics-server

.PHONY: deploy-metrics-server
deploy-metrics-server: kustomize ## Deploy Gateway API gateway
$(KUSTOMIZE) build config/metrics-server | kubectl apply -f -

0 comments on commit 4a31717

Please sign in to comment.