Explorar el Código

modified the teardown and README

dotbalo hace 6 años
padre
commit
bbc1f6881f

+ 2 - 1
prometheus-operator/README.md

@@ -1,5 +1,6 @@
 ````
   1. Change ssl files of etcd to yours in the deploy
   2. Change tlsConfig and addresses of etcd to yours in the manifests/prometheus/prometheus-etcd.yaml
-  3. Install: ./deploy and Uninstall: ./teardown
+  3. Modify the smtp and receivers configuration in the altermanager.yaml
+  4. Install: ./deploy and Uninstall: ./teardown
 ````

+ 1 - 1
prometheus-operator/alertmanager.yaml

@@ -7,7 +7,7 @@ global:
   smtp_smarthost: 'smtp.exmail.qq.com:25'
   smtp_from: 'dukuan@xxx.com'
   smtp_auth_username: 'dukuan@xxx.com'
-  smtp_auth_password: 'DKxxxxZ'
+  smtp_auth_password: 'DKxxx'
   # HipChat告警配置
   # hipchat_auth_token: '123456789'
   # hipchat_auth_url: 'https://hipchat.foobar.org/'

+ 1 - 1
prometheus-operator/deploy

@@ -12,7 +12,7 @@ if [ -z "${NAMESPACE}" ]; then
 fi
 
 kubectl create namespace "$NAMESPACE"
-
+#kubectl create -f bundle.yaml
 kubectl create secret generic  alertmanager-main --from-file=alertmanager.yaml --from-file=mail-template.tmpl -n monitoring
 
 kubectl -n monitoring create secret generic etcd-certs --from-file=/etc/kubernetes/pki/etcd/peer.crt   --from-file=/etc/kubernetes/pki/etcd/peer.key  --from-file=/etc/kubernetes/pki/etcd/ca.crt

+ 3 - 0
prometheus-operator/teardown

@@ -28,3 +28,6 @@ sleep 5
 
 kctl delete -f manifests/prometheus-operator
 
+kubectl delete secret  alertmanager-main -n monitoring
+kubectl delete -f manifests/prometheus/prometheus-etcd.yaml -n monitoring
+kubectl -n monitoring delete secret  etcd-certs