-
Notifications
You must be signed in to change notification settings - Fork 0
/
cheat_sheet.txt
43 lines (19 loc) · 1.44 KB
/
cheat_sheet.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
echo "Username: $(kubectl get secret prom-stack-test-release-grafana --namespace monitoring --output=jsonpath='{.data.admin-password}' | base64 --decode)"
kubectl expose deployment thanos-test-release-query-frontend --type=NodePort --name=
helm install c7n/prometheus-operator \
-f prometheus-observability.yaml \
--name prometheus-operator \
--version 8.5.8 \
--namespace monit
helm install prometheus-operator -f prometheus-observability.yaml center/choerodon/prometheus-operator -n monit
kubectl -n monit create secret generic thanos-objectstorage --from-file=thanos.yaml=thanos_bucket.yaml
#DELETE VALIDATING WEBHOOKS CONFIGS
kubectl get validatingwebhookconfigurations.admissionregistration.k8s.io //delete all objects
kubectl get MutatingWebhookConfiguration //delete all objects
#EXEC INTO CONTAINER
kubectl exec -it -n monit prometheus-prometheus-operator-prometheus-0 -c thanos-sidecar -- /bin/sh
echo "Username: $(kubectl get secret prometheus-operator-grafana --namespace monit --output=jsonpath='{.data.admin-password}' | base64 --decode)"
echo "Username: $(kubectl get secret prometheus-operator-grafana --namespace monit --output=jsonpath='{.data.admin-user}' | base64 --decode)"
echo "Username: $(kubectl get secret rook-ceph-dashboard-password --namespace rook-ceph --output=jsonpath='{.data.admin-password}' | base64 --decode)"
#DELETE PODS TO RESTART THEM
kubectl delete pod -l k8s-app=kube-proxy -n kube-system