add in scripts
This commit is contained in:
parent
f7119c091b
commit
fb5c0c7775
|
|
@ -0,0 +1,2 @@
|
|||
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
|
||||
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
|
||||
|
|
@ -0,0 +1 @@
|
|||
kubectl get ingress -n argocd
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
ARGO_INGRESS_NAME="argocd-server-ingress" # Or whatever your Argo CD ingress is named
|
||||
ARGO_NAMESPACE="argocd" # Your Argo CD namespace
|
||||
kubectl get ingress "$ARGO_INGRESS_NAME" -n "$ARGO_NAMESPACE" -o jsonpath='{.spec.rules[0].host}' 2>/dev/null
|
||||
|
|
@ -0,0 +1 @@
|
|||
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d; echo
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
kubectl get ingress -n monitoring monitoring-kube-prometheus-alertmanager -o yaml
|
||||
kubectl get ingress -n monitoring monitoring-kube-prometheus-prometheus -o yaml
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
# run in k8s/monitoring folder
|
||||
helm upgrade monitoring . --namespace monitoring -f values-production.yaml
|
||||
|
|
@ -0,0 +1 @@
|
|||
kubectl get all -n monitoring #--showlabels
|
||||
|
|
@ -0,0 +1 @@
|
|||
kubectl get pods --all-namespaces
|
||||
|
|
@ -0,0 +1 @@
|
|||
kubectl get pods -n monitoring
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
PASS=$($SCRIPT_DIR/get-argocd-secret)
|
||||
ARGOCD_HOST=$($SCRIPT_DIR/get-argocd-host)
|
||||
echo $PASS $ARGOCD_HOST
|
||||
argocd login $ARGOCD_HOST --username admin --password $PASS --insecure # Add --insecure if you're using a self-signed cert or port-forwarding
|
||||
|
|
@ -0,0 +1 @@
|
|||
kubectl logs -f prometheus-monitoring-kube-prometheus-prometheus-0 -n monitoring
|
||||
Loading…
Reference in New Issue