소스 검색

modified the teardown and README

dotbalo 6 년 전
부모
커밋
bbc1f6881f
4개의 변경된 파일7개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 1
      prometheus-operator/README.md
  2. 1 1
      prometheus-operator/alertmanager.yaml
  3. 1 1
      prometheus-operator/deploy
  4. 3 0
      prometheus-operator/teardown

+ 2 - 1
prometheus-operator/README.md

@@ -1,5 +1,6 @@
 ````
 ````
   1. Change ssl files of etcd to yours in the deploy
   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
   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_smarthost: 'smtp.exmail.qq.com:25'
   smtp_from: 'dukuan@xxx.com'
   smtp_from: 'dukuan@xxx.com'
   smtp_auth_username: 'dukuan@xxx.com'
   smtp_auth_username: 'dukuan@xxx.com'
-  smtp_auth_password: 'DKxxxxZ'
+  smtp_auth_password: 'DKxxx'
   # HipChat告警配置
   # HipChat告警配置
   # hipchat_auth_token: '123456789'
   # hipchat_auth_token: '123456789'
   # hipchat_auth_url: 'https://hipchat.foobar.org/'
   # hipchat_auth_url: 'https://hipchat.foobar.org/'

+ 1 - 1
prometheus-operator/deploy

@@ -12,7 +12,7 @@ if [ -z "${NAMESPACE}" ]; then
 fi
 fi
 
 
 kubectl create namespace "$NAMESPACE"
 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 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
 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
 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