ruboty-k8s 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ruboty/k8s/version.rb +1 -1
  3. data/ruboty-k8s.gemspec +1 -9
  4. metadata +4 -183
  5. data/lib/kubeclient/.gitignore +0 -15
  6. data/lib/kubeclient/.rubocop.yml +0 -16
  7. data/lib/kubeclient/.travis.yml +0 -12
  8. data/lib/kubeclient/Gemfile +0 -4
  9. data/lib/kubeclient/LICENSE.txt +0 -22
  10. data/lib/kubeclient/README.md +0 -428
  11. data/lib/kubeclient/Rakefile +0 -12
  12. data/lib/kubeclient/kubeclient.gemspec +0 -31
  13. data/lib/kubeclient/lib/kubeclient.rb +0 -32
  14. data/lib/kubeclient/lib/kubeclient/common.rb +0 -512
  15. data/lib/kubeclient/lib/kubeclient/config.rb +0 -126
  16. data/lib/kubeclient/lib/kubeclient/entity_list.rb +0 -16
  17. data/lib/kubeclient/lib/kubeclient/kube_exception.rb +0 -14
  18. data/lib/kubeclient/lib/kubeclient/missing_kind_compatibility.rb +0 -68
  19. data/lib/kubeclient/lib/kubeclient/version.rb +0 -4
  20. data/lib/kubeclient/lib/kubeclient/watch_notice.rb +0 -7
  21. data/lib/kubeclient/lib/kubeclient/watch_stream.rb +0 -80
  22. data/lib/kubeclient/test/cassettes/kubernetes_guestbook.yml +0 -879
  23. data/lib/kubeclient/test/config/allinone.kubeconfig +0 -20
  24. data/lib/kubeclient/test/config/external-ca.pem +0 -18
  25. data/lib/kubeclient/test/config/external-cert.pem +0 -19
  26. data/lib/kubeclient/test/config/external-key.rsa +0 -27
  27. data/lib/kubeclient/test/config/external.kubeconfig +0 -20
  28. data/lib/kubeclient/test/config/nouser.kubeconfig +0 -16
  29. data/lib/kubeclient/test/config/userauth.kubeconfig +0 -28
  30. data/lib/kubeclient/test/json/bindings_list.json +0 -10
  31. data/lib/kubeclient/test/json/component_status.json +0 -17
  32. data/lib/kubeclient/test/json/component_status_list.json +0 -52
  33. data/lib/kubeclient/test/json/config_map_list.json +0 -9
  34. data/lib/kubeclient/test/json/core_api_resource_list.json +0 -181
  35. data/lib/kubeclient/test/json/core_api_resource_list_without_kind.json +0 -129
  36. data/lib/kubeclient/test/json/core_oapi_resource_list_without_kind.json +0 -197
  37. data/lib/kubeclient/test/json/created_endpoint.json +0 -28
  38. data/lib/kubeclient/test/json/created_namespace.json +0 -20
  39. data/lib/kubeclient/test/json/created_secret.json +0 -16
  40. data/lib/kubeclient/test/json/created_service.json +0 -31
  41. data/lib/kubeclient/test/json/empty_pod_list.json +0 -9
  42. data/lib/kubeclient/test/json/endpoint_list.json +0 -48
  43. data/lib/kubeclient/test/json/entity_list.json +0 -56
  44. data/lib/kubeclient/test/json/event_list.json +0 -35
  45. data/lib/kubeclient/test/json/limit_range.json +0 -23
  46. data/lib/kubeclient/test/json/limit_range_list.json +0 -31
  47. data/lib/kubeclient/test/json/namespace.json +0 -13
  48. data/lib/kubeclient/test/json/namespace_exception.json +0 -8
  49. data/lib/kubeclient/test/json/namespace_list.json +0 -32
  50. data/lib/kubeclient/test/json/node.json +0 -29
  51. data/lib/kubeclient/test/json/node_list.json +0 -37
  52. data/lib/kubeclient/test/json/persistent_volume.json +0 -37
  53. data/lib/kubeclient/test/json/persistent_volume_claim.json +0 -32
  54. data/lib/kubeclient/test/json/persistent_volume_claim_list.json +0 -40
  55. data/lib/kubeclient/test/json/persistent_volume_claims_nil_items.json +0 -8
  56. data/lib/kubeclient/test/json/persistent_volume_list.json +0 -45
  57. data/lib/kubeclient/test/json/pod.json +0 -92
  58. data/lib/kubeclient/test/json/pod_list.json +0 -79
  59. data/lib/kubeclient/test/json/pod_template_list.json +0 -9
  60. data/lib/kubeclient/test/json/processed_template.json +0 -27
  61. data/lib/kubeclient/test/json/replication_controller.json +0 -57
  62. data/lib/kubeclient/test/json/replication_controller_list.json +0 -66
  63. data/lib/kubeclient/test/json/resource_quota.json +0 -46
  64. data/lib/kubeclient/test/json/resource_quota_list.json +0 -54
  65. data/lib/kubeclient/test/json/secret_list.json +0 -44
  66. data/lib/kubeclient/test/json/service.json +0 -33
  67. data/lib/kubeclient/test/json/service_account.json +0 -25
  68. data/lib/kubeclient/test/json/service_account_list.json +0 -82
  69. data/lib/kubeclient/test/json/service_illegal_json_404.json +0 -1
  70. data/lib/kubeclient/test/json/service_list.json +0 -97
  71. data/lib/kubeclient/test/json/service_patch.json +0 -25
  72. data/lib/kubeclient/test/json/service_update.json +0 -22
  73. data/lib/kubeclient/test/json/versions_list.json +0 -6
  74. data/lib/kubeclient/test/json/watch_stream.json +0 -3
  75. data/lib/kubeclient/test/test_common.rb +0 -32
  76. data/lib/kubeclient/test/test_component_status.rb +0 -30
  77. data/lib/kubeclient/test/test_config.rb +0 -72
  78. data/lib/kubeclient/test/test_endpoint.rb +0 -35
  79. data/lib/kubeclient/test/test_guestbook_go.rb +0 -238
  80. data/lib/kubeclient/test/test_helper.rb +0 -10
  81. data/lib/kubeclient/test/test_kubeclient.rb +0 -611
  82. data/lib/kubeclient/test/test_limit_range.rb +0 -27
  83. data/lib/kubeclient/test/test_missing_methods.rb +0 -42
  84. data/lib/kubeclient/test/test_namespace.rb +0 -61
  85. data/lib/kubeclient/test/test_node.rb +0 -33
  86. data/lib/kubeclient/test/test_persistent_volume.rb +0 -30
  87. data/lib/kubeclient/test/test_persistent_volume_claim.rb +0 -30
  88. data/lib/kubeclient/test/test_pod.rb +0 -29
  89. data/lib/kubeclient/test/test_pod_log.rb +0 -50
  90. data/lib/kubeclient/test/test_process_template.rb +0 -44
  91. data/lib/kubeclient/test/test_replication_controller.rb +0 -27
  92. data/lib/kubeclient/test/test_resource_list_without_kind.rb +0 -78
  93. data/lib/kubeclient/test/test_resource_quota.rb +0 -25
  94. data/lib/kubeclient/test/test_secret.rb +0 -70
  95. data/lib/kubeclient/test/test_service.rb +0 -293
  96. data/lib/kubeclient/test/test_service_account.rb +0 -28
  97. data/lib/kubeclient/test/test_watch.rb +0 -119
  98. data/lib/kubeclient/test/txt/pod_log.txt +0 -6
  99. data/lib/kubeclient/test/valid_token_file +0 -1
@@ -1,126 +0,0 @@
1
- require 'yaml'
2
- require 'base64'
3
- require 'pathname'
4
-
5
- module Kubeclient
6
- # Kubernetes client configuration class
7
- class Config
8
- # Kubernetes client configuration context class
9
- class Context
10
- attr_reader :api_endpoint, :api_version, :ssl_options, :auth_options
11
-
12
- def initialize(api_endpoint, api_version, ssl_options, auth_options)
13
- @api_endpoint = api_endpoint
14
- @api_version = api_version
15
- @ssl_options = ssl_options
16
- @auth_options = auth_options
17
- end
18
- end
19
-
20
- def initialize(kcfg, kcfg_path)
21
- @kcfg = kcfg
22
- @kcfg_path = kcfg_path
23
- raise 'Unknown kubeconfig version' if @kcfg['apiVersion'] != 'v1'
24
- end
25
-
26
- def self.read(filename)
27
- Config.new(YAML.load_file(filename), File.dirname(filename))
28
- end
29
-
30
- def contexts
31
- @kcfg['contexts'].map { |x| x['name'] }
32
- end
33
-
34
- def context(context_name = nil)
35
- cluster, user = fetch_context(context_name || @kcfg['current-context'])
36
-
37
- ca_cert_data = fetch_cluster_ca_data(cluster)
38
- client_cert_data = fetch_user_cert_data(user)
39
- client_key_data = fetch_user_key_data(user)
40
- auth_options = fetch_user_auth_options(user)
41
-
42
- ssl_options = {}
43
-
44
- if !ca_cert_data.nil?
45
- cert_store = OpenSSL::X509::Store.new
46
- cert_store.add_cert(OpenSSL::X509::Certificate.new(ca_cert_data))
47
- ssl_options[:verify_ssl] = OpenSSL::SSL::VERIFY_PEER
48
- ssl_options[:cert_store] = cert_store
49
- else
50
- ssl_options[:verify_ssl] = OpenSSL::SSL::VERIFY_NONE
51
- end
52
-
53
- unless client_cert_data.nil?
54
- ssl_options[:client_cert] = OpenSSL::X509::Certificate.new(client_cert_data)
55
- end
56
-
57
- unless client_key_data.nil?
58
- ssl_options[:client_key] = OpenSSL::PKey.read(client_key_data)
59
- end
60
-
61
- Context.new(cluster['server'], @kcfg['apiVersion'], ssl_options, auth_options)
62
- end
63
-
64
- private
65
-
66
- def ext_file_path(path)
67
- Pathname(path).absolute? ? path : File.join(@kcfg_path, path)
68
- end
69
-
70
- def fetch_context(context_name)
71
- context = @kcfg['contexts'].detect do |x|
72
- break x['context'] if x['name'] == context_name
73
- end
74
-
75
- raise "Unknown context #{context_name}" unless context
76
-
77
- cluster = @kcfg['clusters'].detect do |x|
78
- break x['cluster'] if x['name'] == context['cluster']
79
- end
80
-
81
- raise "Unknown cluster #{context['cluster']}" unless cluster
82
-
83
- user = @kcfg['users'].detect do |x|
84
- break x['user'] if x['name'] == context['user']
85
- end || {}
86
-
87
- [cluster, user]
88
- end
89
-
90
- def fetch_cluster_ca_data(cluster)
91
- if cluster.key?('certificate-authority')
92
- File.read(ext_file_path(cluster['certificate-authority']))
93
- elsif cluster.key?('certificate-authority-data')
94
- Base64.decode64(cluster['certificate-authority-data'])
95
- end
96
- end
97
-
98
- def fetch_user_cert_data(user)
99
- if user.key?('client-certificate')
100
- File.read(ext_file_path(user['client-certificate']))
101
- elsif user.key?('client-certificate-data')
102
- Base64.decode64(user['client-certificate-data'])
103
- end
104
- end
105
-
106
- def fetch_user_key_data(user)
107
- if user.key?('client-key')
108
- File.read(ext_file_path(user['client-key']))
109
- elsif user.key?('client-key-data')
110
- Base64.decode64(user['client-key-data'])
111
- end
112
- end
113
-
114
- def fetch_user_auth_options(user)
115
- options = {}
116
- if user.key?('token')
117
- options[:bearer_token] = user['token']
118
- else
119
- %w(username password).each do |attr|
120
- options[attr.to_sym] = user[attr] if user.key?(attr)
121
- end
122
- end
123
- options
124
- end
125
- end
126
- end
@@ -1,16 +0,0 @@
1
- require 'delegate'
2
- module Kubeclient
3
- module Common
4
- # Kubernetes Entity List
5
- class EntityList < DelegateClass(Array)
6
- attr_reader :kind, :resourceVersion
7
-
8
- def initialize(kind, resource_version, list)
9
- @kind = kind
10
- # rubocop:disable Style/VariableName
11
- @resourceVersion = resource_version
12
- super(list)
13
- end
14
- end
15
- end
16
- end
@@ -1,14 +0,0 @@
1
- # Kubernetes HTTP Exceptions
2
- class KubeException < StandardError
3
- attr_reader :error_code, :message, :response
4
-
5
- def initialize(error_code, message, response)
6
- @error_code = error_code
7
- @message = message
8
- @response = response
9
- end
10
-
11
- def to_s
12
- 'HTTP status code ' + @error_code.to_s + ', ' + @message
13
- end
14
- end
@@ -1,68 +0,0 @@
1
- module Kubeclient
2
- module Common
3
- # Backward compatibility for old versions where kind is missing (e.g. OpenShift Enterprise 3.1)
4
- class MissingKindCompatibility
5
- MAPPING = {
6
- 'bindings' => 'Binding',
7
- 'componentstatuses' => 'ComponentStatus',
8
- 'endpoints' => 'Endpoints',
9
- 'events' => 'Event',
10
- 'limitranges' => 'LimitRange',
11
- 'namespaces' => 'Namespace',
12
- 'nodes' => 'Node',
13
- 'persistentvolumeclaims' => 'PersistentVolumeClaim',
14
- 'persistentvolumes' => 'PersistentVolume',
15
- 'pods' => 'Pod',
16
- 'podtemplates' => 'PodTemplate',
17
- 'replicationcontrollers' => 'ReplicationController',
18
- 'resourcequotas' => 'ResourceQuota',
19
- 'secrets' => 'Secret',
20
- 'securitycontextconstraints' => 'SecurityContextConstraints',
21
- 'serviceaccounts' => 'ServiceAccount',
22
- 'services' => 'Service',
23
- 'buildconfigs' => 'BuildConfig',
24
- 'builds' => 'Build',
25
- 'clusternetworks' => 'ClusterNetwork',
26
- 'clusterpolicies' => 'ClusterPolicy',
27
- 'clusterpolicybindings' => 'ClusterPolicyBinding',
28
- 'clusterrolebindings' => 'ClusterRoleBinding',
29
- 'clusterroles' => 'ClusterRole',
30
- 'deploymentconfigrollbacks' => 'DeploymentConfigRollback',
31
- 'deploymentconfigs' => 'DeploymentConfig',
32
- 'generatedeploymentconfigs' => 'DeploymentConfig',
33
- 'groups' => 'Group',
34
- 'hostsubnets' => 'HostSubnet',
35
- 'identities' => 'Identity',
36
- 'images' => 'Image',
37
- 'imagestreamimages' => 'ImageStreamImage',
38
- 'imagestreammappings' => 'ImageStreamMapping',
39
- 'imagestreams' => 'ImageStream',
40
- 'imagestreamtags' => 'ImageStreamTag',
41
- 'localresourceaccessreviews' => 'LocalResourceAccessReview',
42
- 'localsubjectaccessreviews' => 'LocalSubjectAccessReview',
43
- 'netnamespaces' => 'NetNamespace',
44
- 'oauthaccesstokens' => 'OAuthAccessToken',
45
- 'oauthauthorizetokens' => 'OAuthAuthorizeToken',
46
- 'oauthclientauthorizations' => 'OAuthClientAuthorization',
47
- 'oauthclients' => 'OAuthClient',
48
- 'policies' => 'Policy',
49
- 'policybindings' => 'PolicyBinding',
50
- 'processedtemplates' => 'Template',
51
- 'projectrequests' => 'ProjectRequest',
52
- 'projects' => 'Project',
53
- 'resourceaccessreviews' => 'ResourceAccessReview',
54
- 'rolebindings' => 'RoleBinding',
55
- 'roles' => 'Role',
56
- 'routes' => 'Route',
57
- 'subjectaccessreviews' => 'SubjectAccessReview',
58
- 'templates' => 'Template',
59
- 'useridentitymappings' => 'UserIdentityMapping',
60
- 'users' => 'User'
61
- }.freeze
62
-
63
- def self.resource_kind(name)
64
- MAPPING[name]
65
- end
66
- end
67
- end
68
- end
@@ -1,4 +0,0 @@
1
- # Kubernetes REST-API Client
2
- module Kubeclient
3
- VERSION = '2.3.0'.freeze
4
- end
@@ -1,7 +0,0 @@
1
- require 'recursive_open_struct'
2
- module Kubeclient
3
- module Common
4
- class WatchNotice < RecursiveOpenStruct
5
- end
6
- end
7
- end
@@ -1,80 +0,0 @@
1
- require 'json'
2
- require 'http'
3
- module Kubeclient
4
- module Common
5
- # HTTP Stream used to watch changes on entities
6
- class WatchStream
7
- def initialize(uri, http_options, format: :json)
8
- @uri = uri
9
- @http_client = nil
10
- @http_options = http_options
11
- @format = format
12
- end
13
-
14
- def each
15
- @finished = false
16
-
17
- @http_client = build_client
18
- response = @http_client.request(:get, @uri, build_client_options)
19
- unless response.code < 300
20
- raise KubeException.new(response.code, response.reason, response)
21
- end
22
-
23
- buffer = ''
24
- response.body.each do |chunk|
25
- buffer << chunk
26
- while (line = buffer.slice!(/.+\n/))
27
- yield @format == :json ? WatchNotice.new(JSON.parse(line)) : line.chomp
28
- end
29
- end
30
- rescue IOError
31
- raise unless @finished
32
- end
33
-
34
- def finish
35
- @finished = true
36
- @http_client.close unless @http_client.nil?
37
- end
38
-
39
- private
40
-
41
- def build_client
42
- if @http_options[:basic_auth_user] && @http_options[:basic_auth_password]
43
- HTTP.basic_auth(
44
- user: @http_options[:basic_auth_user],
45
- pass: @http_options[:basic_auth_password]
46
- )
47
- else
48
- HTTP::Client.new
49
- end
50
- end
51
-
52
- def using_proxy
53
- proxy = @http_options[:http_proxy_uri]
54
- return nil unless proxy
55
- p_uri = URI.parse(proxy)
56
- {
57
- proxy_address: p_uri.hostname,
58
- proxy_port: p_uri.port,
59
- proxy_username: p_uri.user,
60
- proxy_password: p_uri.password
61
- }
62
- end
63
-
64
- def build_client_options
65
- client_options = {
66
- headers: @http_options[:headers],
67
- proxy: using_proxy
68
- }
69
- if @http_options[:ssl]
70
- client_options[:ssl] = @http_options[:ssl]
71
- socket_option = :ssl_socket_class
72
- else
73
- socket_option = :socket_class
74
- end
75
- client_options[socket_option] = @http_options[socket_option] if @http_options[socket_option]
76
- client_options
77
- end
78
- end
79
- end
80
- end
@@ -1,879 +0,0 @@
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
- - request:
847
- method: get
848
- uri: http://10.35.0.23:8080/api/v1
849
- body:
850
- encoding: US-ASCII
851
- string: ''
852
- headers:
853
- Accept:
854
- - "*/*"
855
- Accept-Encoding:
856
- - gzip, deflate
857
- User-Agent:
858
- - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.0p0
859
- Host:
860
- - localhost:8080
861
- response:
862
- status:
863
- code: 200
864
- message: OK
865
- headers:
866
- Content-Type:
867
- - application/json
868
- Date:
869
- - Mon, 29 Aug 2016 15:51:30 GMT
870
- Transfer-Encoding:
871
- - chunked
872
- body:
873
- encoding: UTF-8
874
- string: '{"kind":"APIResourceList","groupVersion":"v1","resources":[{"name":"bindings","namespaced":true,"kind":"Binding"},{"name":"componentstatuses","namespaced":false,"kind":"ComponentStatus"},{"name":"configmaps","namespaced":true,"kind":"ConfigMap"},{"name":"endpoints","namespaced":true,"kind":"Endpoints"},{"name":"events","namespaced":true,"kind":"Event"},{"name":"limitranges","namespaced":true,"kind":"LimitRange"},{"name":"namespaces","namespaced":false,"kind":"Namespace"},{"name":"namespaces/finalize","namespaced":false,"kind":"Namespace"},{"name":"namespaces/status","namespaced":false,"kind":"Namespace"},{"name":"nodes","namespaced":false,"kind":"Node"},{"name":"nodes/proxy","namespaced":false,"kind":"Node"},{"name":"nodes/status","namespaced":false,"kind":"Node"},{"name":"persistentvolumeclaims","namespaced":true,"kind":"PersistentVolumeClaim"},{"name":"persistentvolumeclaims/status","namespaced":true,"kind":"PersistentVolumeClaim"},{"name":"persistentvolumes","namespaced":false,"kind":"PersistentVolume"},{"name":"persistentvolumes/status","namespaced":false,"kind":"PersistentVolume"},{"name":"pods","namespaced":true,"kind":"Pod"},{"name":"pods/attach","namespaced":true,"kind":"Pod"},{"name":"pods/binding","namespaced":true,"kind":"Binding"},{"name":"pods/exec","namespaced":true,"kind":"Pod"},{"name":"pods/log","namespaced":true,"kind":"Pod"},{"name":"pods/portforward","namespaced":true,"kind":"Pod"},{"name":"pods/proxy","namespaced":true,"kind":"Pod"},{"name":"pods/status","namespaced":true,"kind":"Pod"},{"name":"podtemplates","namespaced":true,"kind":"PodTemplate"},{"name":"replicationcontrollers","namespaced":true,"kind":"ReplicationController"},{"name":"replicationcontrollers/scale","namespaced":true,"kind":"Scale"},{"name":"replicationcontrollers/status","namespaced":true,"kind":"ReplicationController"},{"name":"resourcequotas","namespaced":true,"kind":"ResourceQuota"},{"name":"resourcequotas/status","namespaced":true,"kind":"ResourceQuota"},{"name":"secrets","namespaced":true,"kind":"Secret"},{"name":"serviceaccounts","namespaced":true,"kind":"ServiceAccount"},{"name":"services","namespaced":true,"kind":"Service"},{"name":"services/proxy","namespaced":true,"kind":"Service"},{"name":"services/status","namespaced":true,"kind":"Service"}]}
875
-
876
- '
877
- http_version:
878
- recorded_at: Mon, 29 Aug 2016 15:51:30 GMT
879
- recorded_with: VCR 3.0.3