kubeclient 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of kubeclient might be problematic. Click here for more details.

Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +19 -11
  3. data/kubeclient.gemspec +1 -0
  4. data/lib/kubeclient.rb +1 -1
  5. data/lib/kubeclient/common.rb +3 -4
  6. data/lib/kubeclient/version.rb +1 -1
  7. data/test/cassettes/kubernetes_guestbook.yml +846 -0
  8. data/test/json/{created_namespace_b3.json → created_namespace.json} +2 -2
  9. data/test/json/{created_service_b3.json → created_service.json} +3 -3
  10. data/test/json/{empty_pod_list_b3.json → empty_pod_list.json} +2 -2
  11. data/test/json/{endpoint_list_b3.json → endpoint_list.json} +5 -5
  12. data/test/json/{entity_list_b3.json → entity_list.json} +6 -6
  13. data/test/json/{event_list_b3.json → event_list.json} +3 -3
  14. data/test/json/{namespace_b3.json → namespace.json} +2 -2
  15. data/test/json/{namespace_exception_b3.json → namespace_exception.json} +1 -1
  16. data/test/json/{namespace_list_b3.json → namespace_list.json} +4 -4
  17. data/test/json/{node_b3.json → node.json} +2 -2
  18. data/test/json/{node_list_b3.json → node_list.json} +3 -3
  19. data/test/json/persistent_volume_claims_nil_items.json +2 -2
  20. data/test/json/{pod_b3.json → pod.json} +2 -2
  21. data/test/json/{pod_list_b3.json → pod_list.json} +9 -5
  22. data/test/json/{replication_controller_b3.json → replication_controller.json} +2 -2
  23. data/test/json/{replication_controller_list_b3.json → replication_controller_list.json} +6 -4
  24. data/test/json/{secret_list_b3.json → secret_list.json} +4 -4
  25. data/test/json/{service_b3.json → service.json} +3 -3
  26. data/test/json/{service_list_b3.json → service_list.json} +8 -8
  27. data/test/json/{service_update_b3.json → service_update.json} +2 -2
  28. data/test/json/watch_stream.json +3 -0
  29. data/test/test_guestbook_go.rb +233 -0
  30. data/test/test_kubeclient.rb +37 -38
  31. data/test/test_limit_range.rb +1 -1
  32. data/test/test_namespace.rb +12 -12
  33. data/test/test_node.rb +5 -5
  34. data/test/test_persistent_volume.rb +1 -1
  35. data/test/test_persistent_volume_claim.rb +1 -1
  36. data/test/test_pod.rb +4 -4
  37. data/test/test_replication_controller.rb +4 -4
  38. data/test/test_resource_quota.rb +1 -1
  39. data/test/test_service.rb +13 -13
  40. data/test/test_watch.rb +3 -3
  41. metadata +61 -43
  42. data/test/json/watch_stream_b3.json +0 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc027533b4e27f508e12ec413cdc2420b603fc8f
4
- data.tar.gz: 74910f2c54e639a68887506ca30ce1e9e6407e8a
3
+ metadata.gz: 7d79e1741f7bd3b7cfe819fdca581595fb2b94ba
4
+ data.tar.gz: 4d24a9c760e92687ad894dee0bbf62380854d944
5
5
  SHA512:
6
- metadata.gz: 4ee8961274aa7457480c86cf1ecb88aba0a1000bc589d6cf62a0cd68cc99f9dc5db6ba0b69e41b216f82c6af3e9ab257a47df2d3562e941bf1aaa3933c62304e
7
- data.tar.gz: 3faa680ba20a338d1bb58ae7ec144d3f895bbc5525cd0cb056aebb7f200b4fb443412f3395d8dfc07c02c6435726746e9d6ab291f64f301c38e79d6dad6cabe3
6
+ metadata.gz: b4bdc0b2562a03d4e0bf28987cfc4c5a5e273e2077fcb473e97b97fd47880698cfecce42fe1014db212b03922bf235d2c28469ac3f0a6a56ebf7685bbdb73226
7
+ data.tar.gz: 5dd814c8b0b46163cff2362e199d33cb9bf97718852fbb346b06b4617ac1653c54ca3493c11c74b3ad72b75ce36361ad7fa5133dcbcb6bf28dd2fddd2c58517e
data/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  A Ruby client for Kubernetes REST api.
9
9
  The client supports GET, POST, PUT, DELETE on nodes, pods, secrets, services, replication controllers, namespaces, resource quotas, limit ranges, endpoints, persistent volumes and persistent volume claims.
10
- The client currently supports Kubernetes REST api version v1beta3.
10
+ The client currently supports Kubernetes REST api version v1.
11
11
 
12
12
  ## Installation
13
13
 
@@ -29,10 +29,10 @@ Or install it yourself as:
29
29
 
30
30
  Initialize the client:
31
31
  ```ruby
32
- client = Kubeclient::Client.new 'http://localhost:8080/api/' , "v1beta3"
32
+ client = Kubeclient::Client.new 'http://localhost:8080/api/' , "v1"
33
33
  ```
34
34
 
35
- Or without specifying version (it will be set by default to "v1beta3"
35
+ Or without specifying version (it will be set by default to "v1"
36
36
 
37
37
  ```ruby
38
38
  client = Kubeclient::Client.new 'http://localhost:8080/api/'
@@ -54,7 +54,7 @@ ssl_options = {
54
54
  ca_file: '/path/to/ca.crt',
55
55
  verify_ssl: OpenSSL::SSL::VERIFY_PEER
56
56
  }
57
- client = Kubeclient::Client.new 'https://localhost:8443/api/' , "v1beta3",
57
+ client = Kubeclient::Client.new 'https://localhost:8443/api/' , "v1",
58
58
  ssl_options: ssl_options
59
59
  ```
60
60
 
@@ -62,7 +62,7 @@ For testing and development purpose you can disable the ssl check with:
62
62
 
63
63
  ```ruby
64
64
  ssl_options = { verify_ssl: OpenSSL::SSL::VERIFY_NONE }
65
- client = Kubeclient::Client.new 'https://localhost:8443/api/' , 'v1beta3',
65
+ client = Kubeclient::Client.new 'https://localhost:8443/api/' , 'v1',
66
66
  ssl_options: ssl_options
67
67
  ```
68
68
 
@@ -75,7 +75,7 @@ auth_options = {
75
75
  username: 'username',
76
76
  password: 'password'
77
77
  }
78
- client = Kubeclient::Client.new 'https://localhost:8443/api/' , 'v1beta3',
78
+ client = Kubeclient::Client.new 'https://localhost:8443/api/' , 'v1',
79
79
  auth_options: auth_options
80
80
  ```
81
81
 
@@ -85,7 +85,7 @@ or
85
85
  auth_options = {
86
86
  bearer_token: 'MDExMWJkMjItOWY1Ny00OGM5LWJlNDEtMjBiMzgxODkxYzYz'
87
87
  }
88
- client = Kubeclient::Client.new 'https://localhost:8443/api/' , 'v1beta3',
88
+ client = Kubeclient::Client.new 'https://localhost:8443/api/' , 'v1',
89
89
  auth_options: auth_options
90
90
  ```
91
91
 
@@ -95,7 +95,7 @@ or
95
95
  auth_options = {
96
96
  bearer_token_file: '/path/to/token_file'
97
97
  }
98
- client = Kubeclient::Client.new 'https://localhost:8443/api/' , 'v1beta3',
98
+ client = Kubeclient::Client.new 'https://localhost:8443/api/' , 'v1',
99
99
  auth_options: auth_options
100
100
  ```
101
101
 
@@ -111,7 +111,7 @@ auth_options = {
111
111
  bearer_token_file: '/var/run/secrets/kubernetes.io/serviceaccount/token'
112
112
 
113
113
  }
114
- client = Kubeclient::Client.new 'https://localhost:8443/api/' , 'v1beta3',
114
+ client = Kubeclient::Client.new 'https://localhost:8443/api/' , 'v1',
115
115
  auth_options: auth_options
116
116
  ```
117
117
 
@@ -124,10 +124,18 @@ Such as: `get_pods`, `get_secrets`, `get_services`, `get_nodes`, `get_replicatio
124
124
  pods = client.get_pods
125
125
  ```
126
126
 
127
+ Get all entities of a specific type in a namespace:<br>
128
+
129
+ ```ruby
130
+ services = client.get_services(namespace: 'development')
131
+ ```
132
+
127
133
  You can get entities which have specific labels by specifying a parameter named `label_selector` (named `labelSelector` in Kubernetes server):
134
+
128
135
  ```ruby
129
136
  pods = client.get_pods(label_selector: 'name=redis-master')
130
137
  ```
138
+
131
139
  You can specify multiple labels (that option will return entities which have both labels:
132
140
  ```ruby
133
141
  pods = client.get_pods(label_selector: 'name=redis-master,app=redis')
@@ -163,7 +171,7 @@ For example: `create_pod pod_object`, `create_replication_controller rc_obj`, `c
163
171
 
164
172
  Input parameter - object of type `Service`, `Pod`, `ReplicationController`.
165
173
 
166
- The below example is for v1beta3
174
+ The below example is for v1
167
175
 
168
176
  ```ruby
169
177
  service = Service.new
@@ -181,7 +189,7 @@ For example: `update_pod`, `update_service`, `update_replication_controller`, `u
181
189
 
182
190
  Input parameter - object of type `Pod`, `Service`, `ReplicationController` etc.
183
191
 
184
- The below example is for v1beta3
192
+ The below example is for v1
185
193
 
186
194
  ```ruby
187
195
  client.update_service service1
data/kubeclient.gemspec CHANGED
@@ -23,6 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency 'rake', '~> 10.0'
24
24
  spec.add_development_dependency 'minitest'
25
25
  spec.add_development_dependency 'webmock'
26
+ spec.add_development_dependency 'vcr'
26
27
  spec.add_development_dependency 'rubocop', '= 0.30.0'
27
28
  spec.add_dependency 'rest-client'
28
29
  spec.add_dependency 'activesupport'
data/lib/kubeclient.rb CHANGED
@@ -32,7 +32,7 @@ module Kubeclient
32
32
  ClientMixin.define_entity_methods(ENTITY_TYPES)
33
33
 
34
34
  def initialize(uri,
35
- version = 'v1beta3',
35
+ version = 'v1',
36
36
  ssl_options: {
37
37
  client_cert: nil,
38
38
  client_key: nil,
@@ -128,7 +128,6 @@ module Kubeclient
128
128
 
129
129
  def watch_entities(entity_type, resource_version = nil)
130
130
  resource = resource_name(entity_type.to_s)
131
-
132
131
  uri = @api_endpoint
133
132
  .merge("#{@api_endpoint.path}/#{@api_version}/watch/#{resource}")
134
133
 
@@ -152,15 +151,15 @@ module Kubeclient
152
151
  Kubeclient::Common::WatchStream.new(uri, options)
153
152
  end
154
153
 
155
- def get_entities(entity_type, klass, options)
154
+ def get_entities(entity_type, klass, options = {})
156
155
  params = {}
157
156
  if options[:label_selector]
158
157
  params['params'] = { labelSelector: options[:label_selector] }
159
158
  end
160
159
 
161
- # TODO: namespace support?
160
+ ns_prefix = build_namespace_prefix(options[:namespace])
162
161
  response = handle_exception do
163
- rest_client[resource_name(entity_type)]
162
+ rest_client[ns_prefix + resource_name(entity_type)]
164
163
  .get(params.merge(@headers))
165
164
  end
166
165
 
@@ -1,4 +1,4 @@
1
1
  # Kubernetes REST-API Client
2
2
  module Kubeclient
3
- VERSION = '0.5.1'
3
+ VERSION = '0.6.0'
4
4
  end
@@ -0,0 +1,846 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - '*/*; q=0.5, application/xml'
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 404
19
+ message: Not Found
20
+ headers:
21
+ Content-Type:
22
+ - application/json
23
+ Date:
24
+ - Sun, 09 Aug 2015 10:03:59 GMT
25
+ Content-Length:
26
+ - '253'
27
+ body:
28
+ encoding: UTF-8
29
+ string: |-
30
+ {
31
+ "kind": "Status",
32
+ "apiVersion": "v1",
33
+ "metadata": {},
34
+ "status": "Failure",
35
+ "message": "namespaces \"kubeclient-ns\" not found",
36
+ "reason": "NotFound",
37
+ "details": {
38
+ "name": "kubeclient-ns",
39
+ "kind": "namespaces"
40
+ },
41
+ "code": 404
42
+ }
43
+ http_version:
44
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
45
+ - request:
46
+ method: delete
47
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/services/guestbook
48
+ body:
49
+ encoding: US-ASCII
50
+ string: ''
51
+ headers:
52
+ Accept:
53
+ - '*/*; q=0.5, application/xml'
54
+ Accept-Encoding:
55
+ - gzip, deflate
56
+ User-Agent:
57
+ - Ruby
58
+ response:
59
+ status:
60
+ code: 404
61
+ message: Not Found
62
+ headers:
63
+ Content-Type:
64
+ - application/json
65
+ Date:
66
+ - Sun, 09 Aug 2015 10:03:59 GMT
67
+ Content-Length:
68
+ - '239'
69
+ body:
70
+ encoding: UTF-8
71
+ string: |-
72
+ {
73
+ "kind": "Status",
74
+ "apiVersion": "v1",
75
+ "metadata": {},
76
+ "status": "Failure",
77
+ "message": "service \"guestbook\" not found",
78
+ "reason": "NotFound",
79
+ "details": {
80
+ "name": "guestbook",
81
+ "kind": "service"
82
+ },
83
+ "code": 404
84
+ }
85
+ http_version:
86
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
87
+ - request:
88
+ method: delete
89
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/services/redis-master
90
+ body:
91
+ encoding: US-ASCII
92
+ string: ''
93
+ headers:
94
+ Accept:
95
+ - '*/*; q=0.5, application/xml'
96
+ Accept-Encoding:
97
+ - gzip, deflate
98
+ User-Agent:
99
+ - Ruby
100
+ response:
101
+ status:
102
+ code: 404
103
+ message: Not Found
104
+ headers:
105
+ Content-Type:
106
+ - application/json
107
+ Date:
108
+ - Sun, 09 Aug 2015 10:03:59 GMT
109
+ Content-Length:
110
+ - '245'
111
+ body:
112
+ encoding: UTF-8
113
+ string: |-
114
+ {
115
+ "kind": "Status",
116
+ "apiVersion": "v1",
117
+ "metadata": {},
118
+ "status": "Failure",
119
+ "message": "service \"redis-master\" not found",
120
+ "reason": "NotFound",
121
+ "details": {
122
+ "name": "redis-master",
123
+ "kind": "service"
124
+ },
125
+ "code": 404
126
+ }
127
+ http_version:
128
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
129
+ - request:
130
+ method: delete
131
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/services/redis-slave
132
+ body:
133
+ encoding: US-ASCII
134
+ string: ''
135
+ headers:
136
+ Accept:
137
+ - '*/*; q=0.5, application/xml'
138
+ Accept-Encoding:
139
+ - gzip, deflate
140
+ User-Agent:
141
+ - Ruby
142
+ response:
143
+ status:
144
+ code: 404
145
+ message: Not Found
146
+ headers:
147
+ Content-Type:
148
+ - application/json
149
+ Date:
150
+ - Sun, 09 Aug 2015 10:03:59 GMT
151
+ Content-Length:
152
+ - '243'
153
+ body:
154
+ encoding: UTF-8
155
+ string: |-
156
+ {
157
+ "kind": "Status",
158
+ "apiVersion": "v1",
159
+ "metadata": {},
160
+ "status": "Failure",
161
+ "message": "service \"redis-slave\" not found",
162
+ "reason": "NotFound",
163
+ "details": {
164
+ "name": "redis-slave",
165
+ "kind": "service"
166
+ },
167
+ "code": 404
168
+ }
169
+ http_version:
170
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
171
+ - request:
172
+ method: delete
173
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/replicationcontrollers/guestbook
174
+ body:
175
+ encoding: US-ASCII
176
+ string: ''
177
+ headers:
178
+ Accept:
179
+ - '*/*; q=0.5, application/xml'
180
+ Accept-Encoding:
181
+ - gzip, deflate
182
+ User-Agent:
183
+ - Ruby
184
+ response:
185
+ status:
186
+ code: 404
187
+ message: Not Found
188
+ headers:
189
+ Content-Type:
190
+ - application/json
191
+ Date:
192
+ - Sun, 09 Aug 2015 10:03:59 GMT
193
+ Content-Length:
194
+ - '269'
195
+ body:
196
+ encoding: UTF-8
197
+ string: |-
198
+ {
199
+ "kind": "Status",
200
+ "apiVersion": "v1",
201
+ "metadata": {},
202
+ "status": "Failure",
203
+ "message": "replicationControllers \"guestbook\" not found",
204
+ "reason": "NotFound",
205
+ "details": {
206
+ "name": "guestbook",
207
+ "kind": "replicationControllers"
208
+ },
209
+ "code": 404
210
+ }
211
+ http_version:
212
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
213
+ - request:
214
+ method: delete
215
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/replicationcontrollers/redis-master
216
+ body:
217
+ encoding: US-ASCII
218
+ string: ''
219
+ headers:
220
+ Accept:
221
+ - '*/*; q=0.5, application/xml'
222
+ Accept-Encoding:
223
+ - gzip, deflate
224
+ User-Agent:
225
+ - Ruby
226
+ response:
227
+ status:
228
+ code: 404
229
+ message: Not Found
230
+ headers:
231
+ Content-Type:
232
+ - application/json
233
+ Date:
234
+ - Sun, 09 Aug 2015 10:03:59 GMT
235
+ Content-Length:
236
+ - '275'
237
+ body:
238
+ encoding: UTF-8
239
+ string: |-
240
+ {
241
+ "kind": "Status",
242
+ "apiVersion": "v1",
243
+ "metadata": {},
244
+ "status": "Failure",
245
+ "message": "replicationControllers \"redis-master\" not found",
246
+ "reason": "NotFound",
247
+ "details": {
248
+ "name": "redis-master",
249
+ "kind": "replicationControllers"
250
+ },
251
+ "code": 404
252
+ }
253
+ http_version:
254
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
255
+ - request:
256
+ method: delete
257
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/replicationcontrollers/redis-slave
258
+ body:
259
+ encoding: US-ASCII
260
+ string: ''
261
+ headers:
262
+ Accept:
263
+ - '*/*; q=0.5, application/xml'
264
+ Accept-Encoding:
265
+ - gzip, deflate
266
+ User-Agent:
267
+ - Ruby
268
+ response:
269
+ status:
270
+ code: 404
271
+ message: Not Found
272
+ headers:
273
+ Content-Type:
274
+ - application/json
275
+ Date:
276
+ - Sun, 09 Aug 2015 10:03:59 GMT
277
+ Content-Length:
278
+ - '273'
279
+ body:
280
+ encoding: UTF-8
281
+ string: |-
282
+ {
283
+ "kind": "Status",
284
+ "apiVersion": "v1",
285
+ "metadata": {},
286
+ "status": "Failure",
287
+ "message": "replicationControllers \"redis-slave\" not found",
288
+ "reason": "NotFound",
289
+ "details": {
290
+ "name": "redis-slave",
291
+ "kind": "replicationControllers"
292
+ },
293
+ "code": 404
294
+ }
295
+ http_version:
296
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
297
+ - request:
298
+ method: post
299
+ uri: http://10.35.0.23:8080/api/v1/namespaces
300
+ body:
301
+ encoding: UTF-8
302
+ string: '{"metadata":{"name":"kubeclient-ns"},"kind":"Namespace","apiVersion":"v1"}'
303
+ headers:
304
+ Accept:
305
+ - '*/*; q=0.5, application/xml'
306
+ Accept-Encoding:
307
+ - gzip, deflate
308
+ Content-Length:
309
+ - '74'
310
+ User-Agent:
311
+ - Ruby
312
+ response:
313
+ status:
314
+ code: 201
315
+ message: Created
316
+ headers:
317
+ Content-Type:
318
+ - application/json
319
+ Date:
320
+ - Sun, 09 Aug 2015 10:03:59 GMT
321
+ Content-Length:
322
+ - '297'
323
+ body:
324
+ encoding: UTF-8
325
+ string: '{"kind":"Namespace","apiVersion":"v1","metadata":{"name":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns","uid":"f41e6b27-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"534","creationTimestamp":"2015-08-09T10:03:59Z"},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Active"}}'
326
+ http_version:
327
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
328
+ - request:
329
+ method: post
330
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/services
331
+ body:
332
+ encoding: UTF-8
333
+ string: '{"metadata":{"namespace":"kubeclient-ns","labels":{"name":"guestbook"},"name":"guestbook"},"spec":{"selector":{"app":"guestbook"},"ports":[{"port":3000,"targetPort":"http-server"}]},"type":"LoadBalancer","kind":"Service","apiVersion":"v1"}'
334
+ headers:
335
+ Accept:
336
+ - '*/*; q=0.5, application/xml'
337
+ Accept-Encoding:
338
+ - gzip, deflate
339
+ Content-Length:
340
+ - '239'
341
+ User-Agent:
342
+ - Ruby
343
+ response:
344
+ status:
345
+ code: 201
346
+ message: Created
347
+ headers:
348
+ Content-Type:
349
+ - application/json
350
+ Date:
351
+ - Sun, 09 Aug 2015 10:03:59 GMT
352
+ Content-Length:
353
+ - '521'
354
+ body:
355
+ encoding: UTF-8
356
+ string: '{"kind":"Service","apiVersion":"v1","metadata":{"name":"guestbook","namespace":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns/services/guestbook","uid":"f42187e1-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"538","creationTimestamp":"2015-08-09T10:03:59Z","labels":{"name":"guestbook"}},"spec":{"ports":[{"protocol":"TCP","port":3000,"targetPort":"http-server","nodePort":0}],"selector":{"app":"guestbook"},"clusterIP":"10.0.0.80","type":"ClusterIP","sessionAffinity":"None"},"status":{"loadBalancer":{}}}'
357
+ http_version:
358
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
359
+ - request:
360
+ method: post
361
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/services
362
+ body:
363
+ encoding: UTF-8
364
+ string: '{"metadata":{"namespace":"kubeclient-ns","labels":{"app":"redis","role":"master"},"name":"redis-master"},"spec":{"selector":{"app":"redis","role":"master"},"ports":[{"port":6379,"targetPort":"redis-server"}]},"kind":"Service","apiVersion":"v1"}'
365
+ headers:
366
+ Accept:
367
+ - '*/*; q=0.5, application/xml'
368
+ Accept-Encoding:
369
+ - gzip, deflate
370
+ Content-Length:
371
+ - '244'
372
+ User-Agent:
373
+ - Ruby
374
+ response:
375
+ status:
376
+ code: 201
377
+ message: Created
378
+ headers:
379
+ Content-Type:
380
+ - application/json
381
+ Date:
382
+ - Sun, 09 Aug 2015 10:03:59 GMT
383
+ Content-Length:
384
+ - '552'
385
+ body:
386
+ encoding: UTF-8
387
+ string: '{"kind":"Service","apiVersion":"v1","metadata":{"name":"redis-master","namespace":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns/services/redis-master","uid":"f423bf8b-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"542","creationTimestamp":"2015-08-09T10:03:59Z","labels":{"app":"redis","role":"master"}},"spec":{"ports":[{"protocol":"TCP","port":6379,"targetPort":"redis-server","nodePort":0}],"selector":{"app":"redis","role":"master"},"clusterIP":"10.0.0.140","type":"ClusterIP","sessionAffinity":"None"},"status":{"loadBalancer":{}}}'
388
+ http_version:
389
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
390
+ - request:
391
+ method: post
392
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/services
393
+ body:
394
+ encoding: UTF-8
395
+ string: '{"metadata":{"namespace":"kubeclient-ns","labels":{"app":"redis","role":"slave"},"name":"redis-slave"},"spec":{"selector":{"app":"redis","role":"slave"},"ports":[{"port":6379,"targetPort":"redis-server"}]},"kind":"Service","apiVersion":"v1"}'
396
+ headers:
397
+ Accept:
398
+ - '*/*; q=0.5, application/xml'
399
+ Accept-Encoding:
400
+ - gzip, deflate
401
+ Content-Length:
402
+ - '241'
403
+ User-Agent:
404
+ - Ruby
405
+ response:
406
+ status:
407
+ code: 201
408
+ message: Created
409
+ headers:
410
+ Content-Type:
411
+ - application/json
412
+ Date:
413
+ - Sun, 09 Aug 2015 10:03:59 GMT
414
+ Content-Length:
415
+ - '548'
416
+ body:
417
+ encoding: UTF-8
418
+ string: '{"kind":"Service","apiVersion":"v1","metadata":{"name":"redis-slave","namespace":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns/services/redis-slave","uid":"f4264678-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"545","creationTimestamp":"2015-08-09T10:03:59Z","labels":{"app":"redis","role":"slave"}},"spec":{"ports":[{"protocol":"TCP","port":6379,"targetPort":"redis-server","nodePort":0}],"selector":{"app":"redis","role":"slave"},"clusterIP":"10.0.0.154","type":"ClusterIP","sessionAffinity":"None"},"status":{"loadBalancer":{}}}'
419
+ http_version:
420
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
421
+ - request:
422
+ method: post
423
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/replicationcontrollers
424
+ body:
425
+ encoding: UTF-8
426
+ string: '{"metadata":{"namespace":"kubeclient-ns","labels":{"app":"guestbook","role":"slave"},"name":"guestbook"},"spec":{"selector":{"app":"guestbook"},"template":{"metadata":{"labels":{"app":"guestbook"}},"spec":{"containers":[{"name":"guestbook","image":"kubernetes/guestbook:v2","ports":[{"name":"http-server","containerPort":3000}]}]}},"replicas":3},"kind":"ReplicationController","apiVersion":"v1"}'
427
+ headers:
428
+ Accept:
429
+ - '*/*; q=0.5, application/xml'
430
+ Accept-Encoding:
431
+ - gzip, deflate
432
+ Content-Length:
433
+ - '395'
434
+ User-Agent:
435
+ - Ruby
436
+ response:
437
+ status:
438
+ code: 201
439
+ message: Created
440
+ headers:
441
+ Content-Type:
442
+ - application/json
443
+ Date:
444
+ - Sun, 09 Aug 2015 10:03:59 GMT
445
+ Content-Length:
446
+ - '815'
447
+ body:
448
+ encoding: UTF-8
449
+ string: '{"kind":"ReplicationController","apiVersion":"v1","metadata":{"name":"guestbook","namespace":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns/replicationcontrollers/guestbook","uid":"f4287784-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"547","generation":1,"creationTimestamp":"2015-08-09T10:03:59Z","labels":{"app":"guestbook","role":"slave"}},"spec":{"replicas":3,"selector":{"app":"guestbook"},"template":{"metadata":{"creationTimestamp":null,"labels":{"app":"guestbook"}},"spec":{"containers":[{"name":"guestbook","image":"kubernetes/guestbook:v2","ports":[{"name":"http-server","containerPort":3000,"protocol":"TCP"}],"resources":{},"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"IfNotPresent"}],"restartPolicy":"Always","dnsPolicy":"ClusterFirst"}}},"status":{"replicas":0}}'
450
+ http_version:
451
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
452
+ - request:
453
+ method: post
454
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/replicationcontrollers
455
+ body:
456
+ encoding: UTF-8
457
+ string: '{"metadata":{"namespace":"kubeclient-ns","labels":{"app":"redis","role":"master"},"name":"redis-master"},"spec":{"selector":{"app":"redis","role":"master"},"template":{"metadata":{"labels":{"app":"redis","role":"master"}},"spec":{"containers":[{"name":"redis-master","image":"redis","ports":[{"name":"redis-server","containerPort":6379}]}]}},"replicas":1},"kind":"ReplicationController","apiVersion":"v1"}'
458
+ headers:
459
+ Accept:
460
+ - '*/*; q=0.5, application/xml'
461
+ Accept-Encoding:
462
+ - gzip, deflate
463
+ Content-Length:
464
+ - '405'
465
+ User-Agent:
466
+ - Ruby
467
+ response:
468
+ status:
469
+ code: 201
470
+ message: Created
471
+ headers:
472
+ Content-Type:
473
+ - application/json
474
+ Date:
475
+ - Sun, 09 Aug 2015 10:03:59 GMT
476
+ Content-Length:
477
+ - '828'
478
+ body:
479
+ encoding: UTF-8
480
+ string: '{"kind":"ReplicationController","apiVersion":"v1","metadata":{"name":"redis-master","namespace":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns/replicationcontrollers/redis-master","uid":"f42a9800-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"558","generation":1,"creationTimestamp":"2015-08-09T10:03:59Z","labels":{"app":"redis","role":"master"}},"spec":{"replicas":1,"selector":{"app":"redis","role":"master"},"template":{"metadata":{"creationTimestamp":null,"labels":{"app":"redis","role":"master"}},"spec":{"containers":[{"name":"redis-master","image":"redis","ports":[{"name":"redis-server","containerPort":6379,"protocol":"TCP"}],"resources":{},"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"IfNotPresent"}],"restartPolicy":"Always","dnsPolicy":"ClusterFirst"}}},"status":{"replicas":0}}'
481
+ http_version:
482
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
483
+ - request:
484
+ method: post
485
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/replicationcontrollers
486
+ body:
487
+ encoding: UTF-8
488
+ string: '{"metadata":{"namespace":"kubeclient-ns","labels":{"app":"redis","role":"slave"},"name":"redis-slave"},"spec":{"selector":{"app":"redis","role":"slave"},"template":{"metadata":{"labels":{"app":"redis","role":"slave"}},"spec":{"containers":[{"name":"redis-slave","image":"kubernetes/redis-slave:v2","ports":[{"name":"redis-server","containerPort":6379}]}]}},"replicas":2},"kind":"ReplicationController","apiVersion":"v1"}'
489
+ headers:
490
+ Accept:
491
+ - '*/*; q=0.5, application/xml'
492
+ Accept-Encoding:
493
+ - gzip, deflate
494
+ Content-Length:
495
+ - '420'
496
+ User-Agent:
497
+ - Ruby
498
+ response:
499
+ status:
500
+ code: 201
501
+ message: Created
502
+ headers:
503
+ Content-Type:
504
+ - application/json
505
+ Date:
506
+ - Sun, 09 Aug 2015 10:03:59 GMT
507
+ Content-Length:
508
+ - '842'
509
+ body:
510
+ encoding: UTF-8
511
+ string: '{"kind":"ReplicationController","apiVersion":"v1","metadata":{"name":"redis-slave","namespace":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns/replicationcontrollers/redis-slave","uid":"f42e1d09-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"567","generation":1,"creationTimestamp":"2015-08-09T10:03:59Z","labels":{"app":"redis","role":"slave"}},"spec":{"replicas":2,"selector":{"app":"redis","role":"slave"},"template":{"metadata":{"creationTimestamp":null,"labels":{"app":"redis","role":"slave"}},"spec":{"containers":[{"name":"redis-slave","image":"kubernetes/redis-slave:v2","ports":[{"name":"redis-server","containerPort":6379,"protocol":"TCP"}],"resources":{},"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"IfNotPresent"}],"restartPolicy":"Always","dnsPolicy":"ClusterFirst"}}},"status":{"replicas":0}}'
512
+ http_version:
513
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
514
+ - request:
515
+ method: get
516
+ uri: http://10.35.0.23:8080/api/v1/namespaces
517
+ body:
518
+ encoding: US-ASCII
519
+ string: ''
520
+ headers:
521
+ Accept:
522
+ - '*/*; q=0.5, application/xml'
523
+ Accept-Encoding:
524
+ - gzip, deflate
525
+ User-Agent:
526
+ - Ruby
527
+ response:
528
+ status:
529
+ code: 200
530
+ message: OK
531
+ headers:
532
+ Content-Type:
533
+ - application/json
534
+ Date:
535
+ - Sun, 09 Aug 2015 10:03:59 GMT
536
+ Content-Length:
537
+ - '629'
538
+ body:
539
+ encoding: UTF-8
540
+ string: '{"kind":"NamespaceList","apiVersion":"v1","metadata":{"selfLink":"/api/v1/namespaces","resourceVersion":"570"},"items":[{"metadata":{"name":"default","selfLink":"/api/v1/namespaces/default","uid":"37360c82-3e77-11e5-a75a-18037327aaeb","resourceVersion":"6","creationTimestamp":"2015-08-09T09:15:45Z"},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Active"}},{"metadata":{"name":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns","uid":"f41e6b27-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"534","creationTimestamp":"2015-08-09T10:03:59Z"},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Active"}}]}'
541
+ http_version:
542
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
543
+ - request:
544
+ method: get
545
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/services
546
+ body:
547
+ encoding: US-ASCII
548
+ string: ''
549
+ headers:
550
+ Accept:
551
+ - '*/*; q=0.5, application/xml'
552
+ Accept-Encoding:
553
+ - gzip, deflate
554
+ User-Agent:
555
+ - Ruby
556
+ response:
557
+ status:
558
+ code: 200
559
+ message: OK
560
+ headers:
561
+ Content-Type:
562
+ - application/json
563
+ Date:
564
+ - Sun, 09 Aug 2015 10:03:59 GMT
565
+ Content-Length:
566
+ - '1661'
567
+ body:
568
+ encoding: UTF-8
569
+ string: '{"kind":"ServiceList","apiVersion":"v1","metadata":{"selfLink":"/api/v1/namespaces/kubeclient-ns/services","resourceVersion":"571"},"items":[{"metadata":{"name":"guestbook","namespace":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns/services/guestbook","uid":"f42187e1-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"538","creationTimestamp":"2015-08-09T10:03:59Z","labels":{"name":"guestbook"}},"spec":{"ports":[{"protocol":"TCP","port":3000,"targetPort":"http-server","nodePort":0}],"selector":{"app":"guestbook"},"clusterIP":"10.0.0.80","type":"ClusterIP","sessionAffinity":"None"},"status":{"loadBalancer":{}}},{"metadata":{"name":"redis-master","namespace":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns/services/redis-master","uid":"f423bf8b-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"542","creationTimestamp":"2015-08-09T10:03:59Z","labels":{"app":"redis","role":"master"}},"spec":{"ports":[{"protocol":"TCP","port":6379,"targetPort":"redis-server","nodePort":0}],"selector":{"app":"redis","role":"master"},"clusterIP":"10.0.0.140","type":"ClusterIP","sessionAffinity":"None"},"status":{"loadBalancer":{}}},{"metadata":{"name":"redis-slave","namespace":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns/services/redis-slave","uid":"f4264678-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"545","creationTimestamp":"2015-08-09T10:03:59Z","labels":{"app":"redis","role":"slave"}},"spec":{"ports":[{"protocol":"TCP","port":6379,"targetPort":"redis-server","nodePort":0}],"selector":{"app":"redis","role":"slave"},"clusterIP":"10.0.0.154","type":"ClusterIP","sessionAffinity":"None"},"status":{"loadBalancer":{}}}]}'
570
+ http_version:
571
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
572
+ - request:
573
+ method: get
574
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/replicationcontrollers
575
+ body:
576
+ encoding: US-ASCII
577
+ string: ''
578
+ headers:
579
+ Accept:
580
+ - '*/*; q=0.5, application/xml'
581
+ Accept-Encoding:
582
+ - gzip, deflate
583
+ User-Agent:
584
+ - Ruby
585
+ response:
586
+ status:
587
+ code: 200
588
+ message: OK
589
+ headers:
590
+ Content-Type:
591
+ - application/json
592
+ Date:
593
+ - Sun, 09 Aug 2015 10:03:59 GMT
594
+ Transfer-Encoding:
595
+ - chunked
596
+ body:
597
+ encoding: UTF-8
598
+ string: '{"kind":"ReplicationControllerList","apiVersion":"v1","metadata":{"selfLink":"/api/v1/namespaces/kubeclient-ns/replicationcontrollers","resourceVersion":"571"},"items":[{"metadata":{"name":"guestbook","namespace":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns/replicationcontrollers/guestbook","uid":"f4287784-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"557","generation":1,"creationTimestamp":"2015-08-09T10:03:59Z","labels":{"app":"guestbook","role":"slave"}},"spec":{"replicas":3,"selector":{"app":"guestbook"},"template":{"metadata":{"creationTimestamp":null,"labels":{"app":"guestbook"}},"spec":{"containers":[{"name":"guestbook","image":"kubernetes/guestbook:v2","ports":[{"name":"http-server","containerPort":3000,"protocol":"TCP"}],"resources":{},"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"IfNotPresent"}],"restartPolicy":"Always","dnsPolicy":"ClusterFirst"}}},"status":{"replicas":3,"observedGeneration":1}},{"metadata":{"name":"redis-master","namespace":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns/replicationcontrollers/redis-master","uid":"f42a9800-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"565","generation":1,"creationTimestamp":"2015-08-09T10:03:59Z","labels":{"app":"redis","role":"master"}},"spec":{"replicas":1,"selector":{"app":"redis","role":"master"},"template":{"metadata":{"creationTimestamp":null,"labels":{"app":"redis","role":"master"}},"spec":{"containers":[{"name":"redis-master","image":"redis","ports":[{"name":"redis-server","containerPort":6379,"protocol":"TCP"}],"resources":{},"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"IfNotPresent"}],"restartPolicy":"Always","dnsPolicy":"ClusterFirst"}}},"status":{"replicas":0,"observedGeneration":1}},{"metadata":{"name":"redis-slave","namespace":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns/replicationcontrollers/redis-slave","uid":"f42e1d09-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"567","generation":1,"creationTimestamp":"2015-08-09T10:03:59Z","labels":{"app":"redis","role":"slave"}},"spec":{"replicas":2,"selector":{"app":"redis","role":"slave"},"template":{"metadata":{"creationTimestamp":null,"labels":{"app":"redis","role":"slave"}},"spec":{"containers":[{"name":"redis-slave","image":"kubernetes/redis-slave:v2","ports":[{"name":"redis-server","containerPort":6379,"protocol":"TCP"}],"resources":{},"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"IfNotPresent"}],"restartPolicy":"Always","dnsPolicy":"ClusterFirst"}}},"status":{"replicas":0}}]}'
599
+ http_version:
600
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
601
+ - request:
602
+ method: delete
603
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/services/guestbook
604
+ body:
605
+ encoding: US-ASCII
606
+ string: ''
607
+ headers:
608
+ Accept:
609
+ - '*/*; q=0.5, application/xml'
610
+ Accept-Encoding:
611
+ - gzip, deflate
612
+ User-Agent:
613
+ - Ruby
614
+ response:
615
+ status:
616
+ code: 200
617
+ message: OK
618
+ headers:
619
+ Content-Type:
620
+ - application/json
621
+ Date:
622
+ - Sun, 09 Aug 2015 10:03:59 GMT
623
+ Content-Length:
624
+ - '100'
625
+ body:
626
+ encoding: UTF-8
627
+ string: |-
628
+ {
629
+ "kind": "Status",
630
+ "apiVersion": "v1",
631
+ "metadata": {},
632
+ "status": "Success",
633
+ "code": 200
634
+ }
635
+ http_version:
636
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
637
+ - request:
638
+ method: delete
639
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/services/redis-master
640
+ body:
641
+ encoding: US-ASCII
642
+ string: ''
643
+ headers:
644
+ Accept:
645
+ - '*/*; q=0.5, application/xml'
646
+ Accept-Encoding:
647
+ - gzip, deflate
648
+ User-Agent:
649
+ - Ruby
650
+ response:
651
+ status:
652
+ code: 200
653
+ message: OK
654
+ headers:
655
+ Content-Type:
656
+ - application/json
657
+ Date:
658
+ - Sun, 09 Aug 2015 10:03:59 GMT
659
+ Content-Length:
660
+ - '100'
661
+ body:
662
+ encoding: UTF-8
663
+ string: |-
664
+ {
665
+ "kind": "Status",
666
+ "apiVersion": "v1",
667
+ "metadata": {},
668
+ "status": "Success",
669
+ "code": 200
670
+ }
671
+ http_version:
672
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
673
+ - request:
674
+ method: delete
675
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/services/redis-slave
676
+ body:
677
+ encoding: US-ASCII
678
+ string: ''
679
+ headers:
680
+ Accept:
681
+ - '*/*; q=0.5, application/xml'
682
+ Accept-Encoding:
683
+ - gzip, deflate
684
+ User-Agent:
685
+ - Ruby
686
+ response:
687
+ status:
688
+ code: 200
689
+ message: OK
690
+ headers:
691
+ Content-Type:
692
+ - application/json
693
+ Date:
694
+ - Sun, 09 Aug 2015 10:03:59 GMT
695
+ Content-Length:
696
+ - '100'
697
+ body:
698
+ encoding: UTF-8
699
+ string: |-
700
+ {
701
+ "kind": "Status",
702
+ "apiVersion": "v1",
703
+ "metadata": {},
704
+ "status": "Success",
705
+ "code": 200
706
+ }
707
+ http_version:
708
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
709
+ - request:
710
+ method: delete
711
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/replicationcontrollers/guestbook
712
+ body:
713
+ encoding: US-ASCII
714
+ string: ''
715
+ headers:
716
+ Accept:
717
+ - '*/*; q=0.5, application/xml'
718
+ Accept-Encoding:
719
+ - gzip, deflate
720
+ User-Agent:
721
+ - Ruby
722
+ response:
723
+ status:
724
+ code: 200
725
+ message: OK
726
+ headers:
727
+ Content-Type:
728
+ - application/json
729
+ Date:
730
+ - Sun, 09 Aug 2015 10:03:59 GMT
731
+ Content-Length:
732
+ - '100'
733
+ body:
734
+ encoding: UTF-8
735
+ string: |-
736
+ {
737
+ "kind": "Status",
738
+ "apiVersion": "v1",
739
+ "metadata": {},
740
+ "status": "Success",
741
+ "code": 200
742
+ }
743
+ http_version:
744
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
745
+ - request:
746
+ method: delete
747
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/replicationcontrollers/redis-master
748
+ body:
749
+ encoding: US-ASCII
750
+ string: ''
751
+ headers:
752
+ Accept:
753
+ - '*/*; q=0.5, application/xml'
754
+ Accept-Encoding:
755
+ - gzip, deflate
756
+ User-Agent:
757
+ - Ruby
758
+ response:
759
+ status:
760
+ code: 200
761
+ message: OK
762
+ headers:
763
+ Content-Type:
764
+ - application/json
765
+ Date:
766
+ - Sun, 09 Aug 2015 10:03:59 GMT
767
+ Content-Length:
768
+ - '100'
769
+ body:
770
+ encoding: UTF-8
771
+ string: |-
772
+ {
773
+ "kind": "Status",
774
+ "apiVersion": "v1",
775
+ "metadata": {},
776
+ "status": "Success",
777
+ "code": 200
778
+ }
779
+ http_version:
780
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
781
+ - request:
782
+ method: delete
783
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/replicationcontrollers/redis-slave
784
+ body:
785
+ encoding: US-ASCII
786
+ string: ''
787
+ headers:
788
+ Accept:
789
+ - '*/*; q=0.5, application/xml'
790
+ Accept-Encoding:
791
+ - gzip, deflate
792
+ User-Agent:
793
+ - Ruby
794
+ response:
795
+ status:
796
+ code: 200
797
+ message: OK
798
+ headers:
799
+ Content-Type:
800
+ - application/json
801
+ Date:
802
+ - Sun, 09 Aug 2015 10:03:59 GMT
803
+ Content-Length:
804
+ - '100'
805
+ body:
806
+ encoding: UTF-8
807
+ string: |-
808
+ {
809
+ "kind": "Status",
810
+ "apiVersion": "v1",
811
+ "metadata": {},
812
+ "status": "Success",
813
+ "code": 200
814
+ }
815
+ http_version:
816
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
817
+ - request:
818
+ method: delete
819
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns
820
+ body:
821
+ encoding: US-ASCII
822
+ string: ''
823
+ headers:
824
+ Accept:
825
+ - '*/*; q=0.5, application/xml'
826
+ Accept-Encoding:
827
+ - gzip, deflate
828
+ User-Agent:
829
+ - Ruby
830
+ response:
831
+ status:
832
+ code: 200
833
+ message: OK
834
+ headers:
835
+ Content-Type:
836
+ - application/json
837
+ Date:
838
+ - Sun, 09 Aug 2015 10:03:59 GMT
839
+ Content-Length:
840
+ - '345'
841
+ body:
842
+ encoding: UTF-8
843
+ string: '{"kind":"Namespace","apiVersion":"v1","metadata":{"name":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns","uid":"f41e6b27-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"584","creationTimestamp":"2015-08-09T10:03:59Z","deletionTimestamp":"2015-08-09T10:03:59Z"},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Terminating"}}'
844
+ http_version:
845
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
846
+ recorded_with: VCR 2.9.3