-
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.
- Loading branch information
roma.roma
committed
Feb 2, 2021
1 parent
706a57b
commit f86ab4c
Showing
5 changed files
with
64 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
|
||
|
||
|
||
|
||
FROM php:8-fpm | ||
WORKDIR /app/ | ||
|
||
|
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,55 @@ | ||
kubectl create namespace prometheus | ||
helm install prometheus stable/prometheus \ | ||
--namespace prometheus \ | ||
--set alertmanager.persistentVolume.storageClass="gp2" \ | ||
--set server.persistentVolume.storageClass="gp2" \ | ||
--set server.nodeSelector.system=prometheus \ | ||
--set alertmanager.nodeSelector.system=prometheus | ||
|
||
kubectl get all -n prometheus | ||
|
||
|
||
|
||
|
||
|
||
#####Grafana for INGRESS ALB AWS | ||
|
||
kubectl create namespace grafana | ||
helm install grafana grafana/grafana \ | ||
--set persistence.storageClassName="gp2" \ | ||
--set persistence.enabled=true \ | ||
--set nodeSelector.system=prometheus \ | ||
--set adminPassword='J213k4kl!1hhaB' \ | ||
--values grafana.yaml \ | ||
--set service.type=NodePort | ||
|
||
|
||
|
||
|
||
================== | ||
Install the metrics server | ||
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.3.6/components.yaml | ||
|
||
|
||
|
||
kubectl apply -f https://raw.githubusercontent.com/kubernetes/autoscaler/master/cluster-autoscaler/cloudprovider/aws/examples/cluster-autoscaler-autodiscover.yaml | ||
|
||
kubectl -n kube-system annotate deployment.apps/cluster-autoscaler cluster-autoscaler.kubernetes.io/safe-to-evict="false" | ||
kubectl -n kube-system edit deployment.apps/cluster-autoscaler | ||
|
||
|
||
- ./cluster-autoscaler | ||
- --v=4 | ||
- --stderrthreshold=info | ||
- --cloud-provider=aws | ||
- --skip-nodes-with-local-storage=false | ||
- --expander=least-waste | ||
- --node-group-auto-discovery=asg:tag=k8s.io/cluster-autoscaler/enabled,k8s.io/cluster-autoscaler/tagnameDOMAIN | ||
- --balance-similar-node-groups | ||
- --skip-nodes-with-system-pods=false | ||
- --scale-down-delay-after-add=3m30s | ||
- --node-deletion-delay-timeout=1m0s | ||
- --scale-down-delay-after-failure=1m0s | ||
|
||
ATACH policy eks-auto-scale | ||
kubectl -n default describe secret $(kubectl -n default get secret | grep admin-user | awk '{print $1}') |
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,9 @@ | ||
datasources: | ||
datasources.yaml: | ||
apiVersion: 1 | ||
datasources: | ||
- name: Prometheus | ||
type: prometheus | ||
url: http://prometheus-server.prometheus.svc.cluster.local | ||
access: proxy | ||
isDefault: true |
File renamed without changes.