kubernetes_health_checker 0.0.0.10 → 0.0.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1fa405fdebd9727d126c5704c9cd167e9b566e4055095f9371a55fe4689e621c
4
- data.tar.gz: f13eb694c1b1a5d7ec2ca6ee03a869cc36940f43cf1091b266e4758433fdb511
3
+ metadata.gz: 7b7ea28e7f7a35b4d2847d43a20f0a43f15e868702bc1cff7c86f781a423be91
4
+ data.tar.gz: 25835b041b7d6190358c47dc140bab225e0472e9025e58646ea915f059f8f6dd
5
5
  SHA512:
6
- metadata.gz: d9777ca163cfddbd7f63fd9c0e55e291a100504f12437b38eb93edf56d92177ac284dc4d212b0ebb75593cde2fbab7b5fa4a735981bceab06a7916e4d2f7079b
7
- data.tar.gz: 7541e1cd839ad74da2bd3e18ece7d1c676591e937b7d4c5676d9faf25de2d180d3fdc6da4c19168d158230ec01e0860e8881315bba07101f05cc2056b794b333
6
+ metadata.gz: 77a3fa14e4c3099aa9851265a3138d500c28e2c4beb414aeced4720a4a2acd08163167b51497fd1ce95da24803e8f3591d36e7f873d2bec0895a476466a98cfd
7
+ data.tar.gz: d8c2ab225c0bbf8f0611e43409caecdb5825714a3269f3a717786fc4bdfec39ae064a81fe96cecffc71d39a414a273a64a3f3df4c33aa42eb85037e31fa09c6e
@@ -48,7 +48,7 @@ module KubernetesHealthChecker
48
48
  opts = options.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
49
49
  @alert_threshold = opts[:alert_threshold] || 5
50
50
  @slack_channel = opts[:channel] || '@rohan'
51
- @namespace = opts[:namespace] || 'default'
51
+ @namespace = opts[:namespace].split(',') || ['default']
52
52
  @test = opts[:test] || false
53
53
  @url = opts[:url]
54
54
  @pods_data = {}
@@ -66,7 +66,10 @@ module KubernetesHealthChecker
66
66
  path = File.expand_path(file_name, __FILE__)
67
67
  output = File.read(path)
68
68
  else
69
- output = `kubectl get pods --namespace #{@namespace}`
69
+ output = ''
70
+ @namespace.each do |namespace|
71
+ output += `kubectl get pods --namespace #{namespace}`
72
+ end
70
73
  end
71
74
  end
72
75
 
@@ -67,4 +67,41 @@ update-dropped-email-alerts-consumer-rc-n3069 1/1 Running 1
67
67
  update-email-count-rc-s29lk 1/1 Running 0 1d
68
68
  update-primary-emails-rc-6sd8b 1/1 Running 0 1d
69
69
  update-sources-consumer-rc-zrf2f 1/1 Running 0 22h
70
- vacuum-analyze-db-rc-jr14r 1/1 Running 0 1d
70
+ vacuum-analyze-db-rc-jr14r 1/1 Running 0 1d
71
+ NAME READY STATUS RESTARTS AGE
72
+ dns-controller-3754226746-q9gh8 1/1 Running 0 68d
73
+ etcd-server-events-ip-172-22-46-89.us-west-2.compute.internal 1/1 Running 0 68d
74
+ etcd-server-ip-172-22-46-89.us-west-2.compute.internal 1/1 Running 0 68d
75
+ kube-apiserver-ip-172-22-46-89.us-west-2.compute.internal 1/1 Running 0 68d
76
+ kube-controller-manager-ip-172-22-46-89.us-west-2.compute.internal 1/1 Running 0 68d
77
+ kube-dns-2044079913-gtvgz 3/3 Running 6 68d
78
+ kube-dns-2044079913-rstfc 3/3 Running 0 2h
79
+ kube-dns-autoscaler-4184363331-7nfb6 1/1 Running 0 2h
80
+ kube-proxy-ip-172-22-37-19.us-west-2.compute.internal 1/1 Running 1 1d
81
+ kube-proxy-ip-172-22-40-122.us-west-2.compute.internal 1/1 Running 3 1d
82
+ kube-proxy-ip-172-22-44-28.us-west-2.compute.internal 1/1 Running 1 68d
83
+ kube-proxy-ip-172-22-44-73.us-west-2.compute.internal 1/1 Running 0 2h
84
+ kube-proxy-ip-172-22-45-205.us-west-2.compute.internal 1/1 Running 1 23h
85
+ kube-proxy-ip-172-22-45-246.us-west-2.compute.internal 1/1 Running 2 10d
86
+ kube-proxy-ip-172-22-46-89.us-west-2.compute.internal 1/1 Running 0 68d
87
+ kube-proxy-ip-172-22-46-95.us-west-2.compute.internal 1/1 Running 6 1d
88
+ kube-proxy-ip-172-22-47-29.us-west-2.compute.internal 1/1 Running 0 19d
89
+ kube-proxy-ip-172-22-53-157.us-west-2.compute.internal 1/1 Running 3 68d
90
+ kube-proxy-ip-172-22-54-130.us-west-2.compute.internal 1/1 Running 1 68d
91
+ kube-proxy-ip-172-22-57-129.us-west-2.compute.internal 1/1 Running 0 2h
92
+ kube-proxy-ip-172-22-61-28.us-west-2.compute.internal 1/1 Running 3 1d
93
+ kube-scheduler-ip-172-22-46-89.us-west-2.compute.internal 1/1 Running 0 68d
94
+ kube-state-metrics-55cff5b9c-ldzll 2/2 Running 0 2h
95
+ weave-net-5ddrg 2/2 Running 3 68d
96
+ weave-net-672x6 2/2 Running 3 68d
97
+ weave-net-6tp6n 2/2 Running 0 68d
98
+ weave-net-8mps8 2/2 Running 6 68d
99
+ weave-net-9c2hc 2/2 Running 7 68d
100
+ weave-net-9kjrh 2/2 Running 10 19d
101
+ weave-net-bgbpd 2/2 Running 25 68d
102
+ weave-net-gcr68 2/2 Running 0 2h
103
+ weave-net-h29cn 2/2 Running 1 19d
104
+ weave-net-mqjcw 2/2 Running 4 68d
105
+ weave-net-r85qh 2/2 Running 0 2h
106
+ weave-net-wgsml 2/2 Running 12 68d
107
+ weave-net-zdz7j 2/2 Running 4 19d
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubernetes_health_checker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.10
4
+ version: 0.0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rohan Sahai