forked from StuxxNet/pick-esquenta
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adiciona metric server no eks e kustomize
- Loading branch information
Showing
18 changed files
with
160 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Default values for metrics-server. | ||
# This is a YAML-formatted file. | ||
# Declare variables to be passed into your templates. | ||
|
||
image: | ||
repository: cgr.dev/chainguard/metrics-server | ||
tag: "latest" | ||
pullPolicy: IfNotPresent | ||
|
||
replicas: 3 | ||
|
||
updateStrategy: | ||
type: RollingUpdate | ||
rollingUpdate: | ||
maxSurge: 0 | ||
maxUnavailable: 1 | ||
|
||
podDisruptionBudget: | ||
enabled: true | ||
minAvailable: 1 | ||
|
||
addonResizer: | ||
enabled: false | ||
image: | ||
repository: registry.k8s.io/autoscaling/addon-resizer | ||
tag: 1.8.19 | ||
resources: | ||
requests: | ||
cpu: 40m | ||
memory: 25Mi | ||
limits: | ||
cpu: 40m | ||
memory: 25Mi | ||
nanny: | ||
cpu: 0m | ||
extraCpu: 1m | ||
memory: 0Mi | ||
extraMemory: 2Mi | ||
minClusterSize: 100 | ||
pollPeriod: 300000 | ||
threshold: 5 | ||
|
||
metrics: | ||
enabled: true | ||
|
||
serviceMonitor: | ||
enabled: true | ||
interval: 1m | ||
scrapeTimeout: 10s |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- configmap.yml | ||
- serviceaccount.yml | ||
- deployment.yml | ||
- service.yml | ||
- ingress.yml | ||
- service-monitor.yml | ||
- hpa.yml |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: giropops-senhas | ||
namespace: giropops-senhas | ||
spec: | ||
rules: | ||
- host: giropops-senhas.aws-cluster.com.br |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ../../base | ||
|
||
patches: | ||
- path: ingress.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: giropops-senhas | ||
namespace: giropops-senhas | ||
spec: | ||
rules: | ||
- host: giropops-senhas.kubernetes.docker.internal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ../../base | ||
|
||
patches: | ||
- path: ingress.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
NAMESPACE_LIST=($(kubectl get ns --no-headers | awk -F" " '{print $1}')) | ||
|
||
for NAMESPACE in "${NAMESPACE_LIST[@]}" | ||
do | ||
echo "Checando PDB no namespace ${NAMESPACE}" | ||
PDB_LIST=($(kubectl get pdb -n ${NAMESPACE} --no-headers | awk -F" " '{print $1}')) | ||
for PDB in "${PDB_LIST[@]}" | ||
do | ||
echo "Deletando PDB ${PDB} do namespace ${NAMESPACE}" | ||
kubectl delete pdb ${PDB} -n ${NAMESPACE} | ||
done | ||
done |