fog-kubevirt 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fog/compute/kubevirt.rb +24 -6
- data/lib/fog/compute/kubevirt/models/persistentvolume.rb +82 -0
- data/lib/fog/compute/kubevirt/models/persistentvolumes.rb +73 -0
- data/lib/fog/compute/kubevirt/models/storageclass.rb +33 -0
- data/lib/fog/compute/kubevirt/models/storageclasses.rb +61 -0
- data/lib/fog/compute/kubevirt/models/vm_base.rb +3 -2
- data/lib/fog/compute/kubevirt/models/vm_data.rb +11 -19
- data/lib/fog/compute/kubevirt/models/vminstance.rb +3 -2
- data/lib/fog/compute/kubevirt/models/vms.rb +49 -19
- data/lib/fog/compute/kubevirt/models/volume.rb +44 -69
- data/lib/fog/compute/kubevirt/models/volumes.rb +3 -58
- data/lib/fog/compute/kubevirt/requests/{create_volume.rb → create_persistentvolume.rb} +2 -2
- data/lib/fog/compute/kubevirt/requests/create_storageclass.rb +18 -0
- data/lib/fog/compute/kubevirt/requests/{delete_volume.rb → delete_persistentvolume.rb} +2 -2
- data/lib/fog/compute/kubevirt/requests/{get_volume.rb → delete_storageclass.rb} +3 -3
- data/lib/fog/compute/kubevirt/requests/delete_vm.rb +1 -1
- data/lib/fog/compute/kubevirt/requests/delete_vminstance.rb +3 -3
- data/lib/fog/compute/kubevirt/requests/get_persistentvolume.rb +16 -0
- data/lib/fog/compute/kubevirt/requests/get_storageclass.rb +16 -0
- data/lib/fog/compute/kubevirt/requests/list_persistentvolumes.rb +22 -0
- data/lib/fog/compute/kubevirt/requests/list_storageclasses.rb +22 -0
- data/lib/fog/compute/kubevirt/requests/list_volumes.rb +13 -5
- data/lib/fog/kubevirt/version.rb +1 -1
- data/spec/create_vm_spec.rb +101 -0
- data/spec/fixtures/kubevirt/{volume/volumes_crud.yml → persistentvolume/persistent_volumes_crud.yml} +0 -0
- data/spec/fixtures/kubevirt/pvc/pvcs_crud.yml +122 -76
- data/spec/fixtures/kubevirt/storageclass/storageclasses_crud.yml +400 -0
- data/spec/fixtures/kubevirt/vm/vm_create_multi.yml +459 -0
- data/spec/fixtures/kubevirt/vm/vm_create_single.yml +362 -0
- data/spec/{volumes_v1alpha2_spec.rb → persistent_volumes_v1alpha2_spec.rb} +11 -11
- data/spec/pvcs_v1alpha2_spec.rb +7 -0
- data/spec/storage_classes_v1_spec.rb +46 -0
- metadata +28 -9
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'recursive_open_struct'
|
2
|
+
|
3
|
+
module Fog
|
4
|
+
module Compute
|
5
|
+
class Kubevirt
|
6
|
+
class Real
|
7
|
+
def list_persistentvolumes(_filters = {})
|
8
|
+
volumes = kube_client.get_persistent_volumes()
|
9
|
+
entities = volumes.map do |kubevirt_obj|
|
10
|
+
Persistentvolume.parse object_to_hash(kubevirt_obj)
|
11
|
+
end
|
12
|
+
EntityCollection.new(volumes.kind, volumes.resourceVersion, entities)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
class Mock
|
17
|
+
def list_persistentvolumes(_filters = {})
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'recursive_open_struct'
|
2
|
+
|
3
|
+
module Fog
|
4
|
+
module Compute
|
5
|
+
class Kubevirt
|
6
|
+
class Real
|
7
|
+
def list_storageclasses(_filters = {})
|
8
|
+
storageclasses = kube_storage_client.get_storage_classes
|
9
|
+
entities = storageclasses.map do |kubevirt_obj|
|
10
|
+
Storageclass.parse object_to_hash(kubevirt_obj)
|
11
|
+
end
|
12
|
+
EntityCollection.new(storageclasses.kind, storageclasses.resourceVersion, entities)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
class Mock
|
17
|
+
def list_storageclasses(_filters = {})
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -4,12 +4,20 @@ module Fog
|
|
4
4
|
module Compute
|
5
5
|
class Kubevirt
|
6
6
|
class Real
|
7
|
-
def list_volumes(
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
def list_volumes(vm_name = nil)
|
8
|
+
if vm_name.nil?
|
9
|
+
entities = pvcs.all.map do |pvc|
|
10
|
+
volume = Volume.new
|
11
|
+
volume.name = pvc.name
|
12
|
+
volume.type = 'persistentVolumeClaim'
|
13
|
+
volume.pvc = pvc
|
14
|
+
volume
|
15
|
+
end
|
16
|
+
EntityCollection.new('Volume', pvcs.resource_version, entities)
|
17
|
+
else
|
18
|
+
vm = vms.get(vm_name)
|
19
|
+
EntityCollection.new('Volume', vm.resource_version, vm.volumes)
|
11
20
|
end
|
12
|
-
EntityCollection.new(volumes.kind, volumes.resourceVersion, entities)
|
13
21
|
end
|
14
22
|
end
|
15
23
|
|
data/lib/fog/kubevirt/version.rb
CHANGED
@@ -0,0 +1,101 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require_relative './shared_context'
|
3
|
+
|
4
|
+
require 'fog/kubevirt'
|
5
|
+
require 'fog/compute/kubevirt/models/volume'
|
6
|
+
|
7
|
+
describe Fog::Compute do
|
8
|
+
before :all do
|
9
|
+
vcr = KubevirtVCR.new(
|
10
|
+
vcr_directory: 'spec/fixtures/kubevirt/vm',
|
11
|
+
service_class: Fog::Compute
|
12
|
+
)
|
13
|
+
@service = vcr.service
|
14
|
+
end
|
15
|
+
|
16
|
+
it 'creates vm with multipe pvcs' do
|
17
|
+
VCR.use_cassette('vm_create_multi') do
|
18
|
+
begin
|
19
|
+
vm_name = 'test'
|
20
|
+
cpus = 1
|
21
|
+
memory_size = 64
|
22
|
+
|
23
|
+
# PVCs should already be created
|
24
|
+
volume1 = Fog::Compute::Kubevirt::Volume.new
|
25
|
+
volume1.type = 'persistentVolumeClaim'
|
26
|
+
volume1.name = 'test-disk-01'
|
27
|
+
volume1.boot_order = 1
|
28
|
+
volume1.bus = 'virtio'
|
29
|
+
volume1.info = 'mypvc1'
|
30
|
+
|
31
|
+
volume2 = Fog::Compute::Kubevirt::Volume.new
|
32
|
+
volume2.type = 'persistentVolumeClaim'
|
33
|
+
volume2.name = 'test-disk-02'
|
34
|
+
volume2.boot_order = 2
|
35
|
+
volume2.bus = 'virtio'
|
36
|
+
volume2.info = 'mypvc2'
|
37
|
+
|
38
|
+
volume3 = Fog::Compute::Kubevirt::Volume.new
|
39
|
+
volume3.type = 'hostDisk'
|
40
|
+
volume3.name = 'test-disk-03'
|
41
|
+
volume3.boot_order = 3
|
42
|
+
volume3.config = {
|
43
|
+
:capacity => '1Gi',
|
44
|
+
:path => '/mnt/data/disk.img',
|
45
|
+
:type => 'DiskOrCreate'
|
46
|
+
}
|
47
|
+
|
48
|
+
@service.vms.create(vm_name: vm_name, cpus: cpus, memory_size: memory_size, volumes: [volume1, volume2, volume3])
|
49
|
+
|
50
|
+
vm = @service.vms.get(vm_name)
|
51
|
+
|
52
|
+
# test vm volumes
|
53
|
+
volumes = @service.volumes.all vm_name
|
54
|
+
assert_equal(volumes.count, 3)
|
55
|
+
|
56
|
+
# verify first claim values
|
57
|
+
volume = volumes.select { |v| v.name == 'test-disk-01' }.first
|
58
|
+
refute_nil(volume)
|
59
|
+
assert_equal(volume.name, 'test-disk-01')
|
60
|
+
assert_equal(volume.type, 'persistentVolumeClaim')
|
61
|
+
|
62
|
+
# verify third claim values
|
63
|
+
volume = volumes.select { |v| v.name == 'test-disk-03' }.first
|
64
|
+
refute_nil(volume)
|
65
|
+
assert_equal(volume.name, 'test-disk-03')
|
66
|
+
assert_equal(volume.type, 'hostDisk')
|
67
|
+
ensure
|
68
|
+
@service.vms.delete(vm_name) if vm
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
it 'creates vm with single pvc' do
|
74
|
+
VCR.use_cassette("vm_create_single") do
|
75
|
+
begin
|
76
|
+
vm_name = 'test2'
|
77
|
+
cpus = 1
|
78
|
+
memory_size = 64
|
79
|
+
|
80
|
+
volume = Fog::Compute::Kubevirt::Volume.new
|
81
|
+
volume.type = 'persistentVolumeClaim'
|
82
|
+
volume.info = 'mypvc3'
|
83
|
+
@service.vms.create(vm_name: vm_name, cpus: cpus, memory_size: memory_size, volumes: [volume])
|
84
|
+
|
85
|
+
vm = @service.vms.get(vm_name)
|
86
|
+
|
87
|
+
# test vm volumes
|
88
|
+
volumes = @service.volumes.all vm_name
|
89
|
+
assert_equal(volumes.count, 1)
|
90
|
+
|
91
|
+
# verify third claim values
|
92
|
+
volume = volumes.first
|
93
|
+
refute_nil(volume)
|
94
|
+
assert_equal(volume.name, 'test2-disk-00')
|
95
|
+
assert_equal(volume.type, 'persistentVolumeClaim')
|
96
|
+
ensure
|
97
|
+
@service.vms.delete(vm_name) if vm
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
data/spec/fixtures/kubevirt/{volume/volumes_crud.yml → persistentvolume/persistent_volumes_crud.yml}
RENAMED
File without changes
|
@@ -12,27 +12,25 @@ http_interactions:
|
|
12
12
|
Accept-Encoding:
|
13
13
|
- gzip, deflate
|
14
14
|
User-Agent:
|
15
|
-
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.
|
15
|
+
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.3.3p222
|
16
16
|
response:
|
17
17
|
status:
|
18
18
|
code: 200
|
19
19
|
message: OK
|
20
20
|
headers:
|
21
|
-
Cache-Control:
|
22
|
-
- no-store
|
23
21
|
Content-Type:
|
24
22
|
- application/json
|
25
23
|
Date:
|
26
|
-
-
|
24
|
+
- Sun, 24 Mar 2019 20:18:17 GMT
|
27
25
|
Content-Length:
|
28
|
-
- '
|
26
|
+
- '137'
|
29
27
|
body:
|
30
28
|
encoding: UTF-8
|
31
|
-
string: '{"kind":"APIVersions","versions":["v1"],"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"
|
29
|
+
string: '{"kind":"APIVersions","versions":["v1"],"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"10.8.254.82:8443"}]}
|
32
30
|
|
33
31
|
'
|
34
|
-
http_version:
|
35
|
-
recorded_at:
|
32
|
+
http_version:
|
33
|
+
recorded_at: Sun, 24 Mar 2019 20:18:17 GMT
|
36
34
|
- request:
|
37
35
|
method: get
|
38
36
|
uri: https://10.8.254.82:8443/api/v1
|
@@ -45,29 +43,27 @@ http_interactions:
|
|
45
43
|
Accept-Encoding:
|
46
44
|
- gzip, deflate
|
47
45
|
User-Agent:
|
48
|
-
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.
|
46
|
+
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.3.3p222
|
49
47
|
Authorization:
|
50
|
-
- Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.
|
48
|
+
- Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6ImZvcmVtYW4tYWNjb3VudC10b2tlbi1yY3ByMiIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50Lm5hbWUiOiJmb3JlbWFuLWFjY291bnQiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC51aWQiOiI1OGY3NTc4NC0yMjUyLTExZTktYjU1NS01MjU0MDA3ZDM1M2QiLCJzdWIiOiJzeXN0ZW06c2VydmljZWFjY291bnQ6ZGVmYXVsdDpmb3JlbWFuLWFjY291bnQifQ.UDzZu0_mLkJZvgeGE-lgKJOXtwWGt6WoNuEpm8k7VK61_bQFavEsETRUrGar68cebUPdUTWFoFlVStcQXoQoS0PUvqNPmznBcHDUW5Jw7pKaLHUhsqQkOoNzDD4eGcl1KDoagL1E-CkTglcYiMYHM9yykxnK58jyP3HF1rsDLG-c8N-T3bK_tLQ__eqKwPJ7R3RHuCg3M5FX1mH86wuaEsOPW3KW7tlGQpP5hj33-97KMp4GgH3pZMTLgo1JDwGT2GXPW12V7juE18KEvvot6q5S0Akl85Vp_5NCxNANRG9YCsSnUiB1opHBqfTxIO1ykSYHfg2IkuovQh68HDNV5A
|
51
49
|
response:
|
52
50
|
status:
|
53
51
|
code: 200
|
54
52
|
message: OK
|
55
53
|
headers:
|
56
|
-
Cache-Control:
|
57
|
-
- no-store
|
58
54
|
Content-Type:
|
59
55
|
- application/json
|
60
56
|
Date:
|
61
|
-
-
|
57
|
+
- Sun, 24 Mar 2019 20:18:17 GMT
|
62
58
|
Transfer-Encoding:
|
63
59
|
- chunked
|
64
60
|
body:
|
65
61
|
encoding: UTF-8
|
66
|
-
string: '{"kind":"APIResourceList","groupVersion":"v1","resources":[{"name":"bindings","singularName":"","namespaced":true,"kind":"Binding","verbs":["create"]},{"name":"componentstatuses","singularName":"","namespaced":false,"kind":"ComponentStatus","verbs":["get","list"],"shortNames":["cs"]},{"name":"configmaps","singularName":"","namespaced":true,"kind":"ConfigMap","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["cm"]},{"name":"endpoints","singularName":"","namespaced":true,"kind":"Endpoints","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["ep"]},{"name":"events","singularName":"","namespaced":true,"kind":"Event","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["ev"]},{"name":"limitranges","singularName":"","namespaced":true,"kind":"LimitRange","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["limits"]},{"name":"namespaces","singularName":"","namespaced":false,"kind":"Namespace","verbs":["create","delete","get","list","patch","update","watch"],"shortNames":["ns"]},{"name":"namespaces/finalize","singularName":"","namespaced":false,"kind":"Namespace","verbs":["update"]},{"name":"namespaces/status","singularName":"","namespaced":false,"kind":"Namespace","verbs":["get","patch","update"]},{"name":"nodes","singularName":"","namespaced":false,"kind":"Node","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["no"]},{"name":"nodes/proxy","singularName":"","namespaced":false,"kind":"
|
62
|
+
string: '{"kind":"APIResourceList","groupVersion":"v1","resources":[{"name":"bindings","singularName":"","namespaced":true,"kind":"Binding","verbs":["create"]},{"name":"componentstatuses","singularName":"","namespaced":false,"kind":"ComponentStatus","verbs":["get","list"],"shortNames":["cs"]},{"name":"configmaps","singularName":"","namespaced":true,"kind":"ConfigMap","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["cm"]},{"name":"endpoints","singularName":"","namespaced":true,"kind":"Endpoints","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["ep"]},{"name":"events","singularName":"","namespaced":true,"kind":"Event","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["ev"]},{"name":"limitranges","singularName":"","namespaced":true,"kind":"LimitRange","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["limits"]},{"name":"namespaces","singularName":"","namespaced":false,"kind":"Namespace","verbs":["create","delete","get","list","patch","update","watch"],"shortNames":["ns"]},{"name":"namespaces/finalize","singularName":"","namespaced":false,"kind":"Namespace","verbs":["update"]},{"name":"namespaces/status","singularName":"","namespaced":false,"kind":"Namespace","verbs":["get","patch","update"]},{"name":"nodes","singularName":"","namespaced":false,"kind":"Node","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["no"]},{"name":"nodes/proxy","singularName":"","namespaced":false,"kind":"NodeProxyOptions","verbs":["create","delete","get","patch","update"]},{"name":"nodes/status","singularName":"","namespaced":false,"kind":"Node","verbs":["get","patch","update"]},{"name":"persistentvolumeclaims","singularName":"","namespaced":true,"kind":"PersistentVolumeClaim","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["pvc"]},{"name":"persistentvolumeclaims/status","singularName":"","namespaced":true,"kind":"PersistentVolumeClaim","verbs":["get","patch","update"]},{"name":"persistentvolumes","singularName":"","namespaced":false,"kind":"PersistentVolume","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["pv"]},{"name":"persistentvolumes/status","singularName":"","namespaced":false,"kind":"PersistentVolume","verbs":["get","patch","update"]},{"name":"pods","singularName":"","namespaced":true,"kind":"Pod","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["po"],"categories":["all"]},{"name":"pods/attach","singularName":"","namespaced":true,"kind":"PodAttachOptions","verbs":["create","get"]},{"name":"pods/binding","singularName":"","namespaced":true,"kind":"Binding","verbs":["create"]},{"name":"pods/eviction","singularName":"","namespaced":true,"group":"policy","version":"v1beta1","kind":"Eviction","verbs":["create"]},{"name":"pods/exec","singularName":"","namespaced":true,"kind":"PodExecOptions","verbs":["create","get"]},{"name":"pods/log","singularName":"","namespaced":true,"kind":"Pod","verbs":["get"]},{"name":"pods/portforward","singularName":"","namespaced":true,"kind":"PodPortForwardOptions","verbs":["create","get"]},{"name":"pods/proxy","singularName":"","namespaced":true,"kind":"PodProxyOptions","verbs":["create","delete","get","patch","update"]},{"name":"pods/status","singularName":"","namespaced":true,"kind":"Pod","verbs":["get","patch","update"]},{"name":"podtemplates","singularName":"","namespaced":true,"kind":"PodTemplate","verbs":["create","delete","deletecollection","get","list","patch","update","watch"]},{"name":"replicationcontrollers","singularName":"","namespaced":true,"kind":"ReplicationController","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["rc"],"categories":["all"]},{"name":"replicationcontrollers/scale","singularName":"","namespaced":true,"group":"autoscaling","version":"v1","kind":"Scale","verbs":["get","patch","update"]},{"name":"replicationcontrollers/status","singularName":"","namespaced":true,"kind":"ReplicationController","verbs":["get","patch","update"]},{"name":"resourcequotas","singularName":"","namespaced":true,"kind":"ResourceQuota","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["quota"]},{"name":"resourcequotas/status","singularName":"","namespaced":true,"kind":"ResourceQuota","verbs":["get","patch","update"]},{"name":"secrets","singularName":"","namespaced":true,"kind":"Secret","verbs":["create","delete","deletecollection","get","list","patch","update","watch"]},{"name":"serviceaccounts","singularName":"","namespaced":true,"kind":"ServiceAccount","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["sa"]},{"name":"services","singularName":"","namespaced":true,"kind":"Service","verbs":["create","delete","get","list","patch","update","watch"],"shortNames":["svc"],"categories":["all"]},{"name":"services/proxy","singularName":"","namespaced":true,"kind":"ServiceProxyOptions","verbs":["create","delete","get","patch","update"]},{"name":"services/status","singularName":"","namespaced":true,"kind":"Service","verbs":["get","patch","update"]}]}
|
67
63
|
|
68
64
|
'
|
69
|
-
http_version:
|
70
|
-
recorded_at:
|
65
|
+
http_version:
|
66
|
+
recorded_at: Sun, 24 Mar 2019 20:18:17 GMT
|
71
67
|
- request:
|
72
68
|
method: post
|
73
69
|
uri: https://10.8.254.82:8443/api/v1/namespaces/default/persistentvolumeclaims
|
@@ -80,11 +76,11 @@ http_interactions:
|
|
80
76
|
Accept-Encoding:
|
81
77
|
- gzip, deflate
|
82
78
|
User-Agent:
|
83
|
-
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.
|
79
|
+
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.3.3p222
|
84
80
|
Content-Type:
|
85
81
|
- application/json
|
86
82
|
Authorization:
|
87
|
-
- Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.
|
83
|
+
- Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6ImZvcmVtYW4tYWNjb3VudC10b2tlbi1yY3ByMiIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50Lm5hbWUiOiJmb3JlbWFuLWFjY291bnQiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC51aWQiOiI1OGY3NTc4NC0yMjUyLTExZTktYjU1NS01MjU0MDA3ZDM1M2QiLCJzdWIiOiJzeXN0ZW06c2VydmljZWFjY291bnQ6ZGVmYXVsdDpmb3JlbWFuLWFjY291bnQifQ.UDzZu0_mLkJZvgeGE-lgKJOXtwWGt6WoNuEpm8k7VK61_bQFavEsETRUrGar68cebUPdUTWFoFlVStcQXoQoS0PUvqNPmznBcHDUW5Jw7pKaLHUhsqQkOoNzDD4eGcl1KDoagL1E-CkTglcYiMYHM9yykxnK58jyP3HF1rsDLG-c8N-T3bK_tLQ__eqKwPJ7R3RHuCg3M5FX1mH86wuaEsOPW3KW7tlGQpP5hj33-97KMp4GgH3pZMTLgo1JDwGT2GXPW12V7juE18KEvvot6q5S0Akl85Vp_5NCxNANRG9YCsSnUiB1opHBqfTxIO1ykSYHfg2IkuovQh68HDNV5A
|
88
84
|
Content-Length:
|
89
85
|
- '364'
|
90
86
|
response:
|
@@ -92,21 +88,19 @@ http_interactions:
|
|
92
88
|
code: 201
|
93
89
|
message: Created
|
94
90
|
headers:
|
95
|
-
Cache-Control:
|
96
|
-
- no-store
|
97
91
|
Content-Type:
|
98
92
|
- application/json
|
99
93
|
Date:
|
100
|
-
-
|
94
|
+
- Sun, 24 Mar 2019 20:18:17 GMT
|
101
95
|
Content-Length:
|
102
|
-
- '
|
96
|
+
- '574'
|
103
97
|
body:
|
104
98
|
encoding: UTF-8
|
105
|
-
string: '{"kind":"PersistentVolumeClaim","apiVersion":"v1","metadata":{"name":"my-local-storage-pvc","namespace":"default","selfLink":"/api/v1/namespaces/default/persistentvolumeclaims/my-local-storage-pvc","uid":"
|
99
|
+
string: '{"kind":"PersistentVolumeClaim","apiVersion":"v1","metadata":{"name":"my-local-storage-pvc","namespace":"default","selfLink":"/api/v1/namespaces/default/persistentvolumeclaims/my-local-storage-pvc","uid":"f616f5ab-4e71-11e9-8e8c-5254007d353d","resourceVersion":"3258448","creationTimestamp":"2019-03-24T20:18:17Z"},"spec":{"accessModes":["ReadWriteOnce"],"selector":{},"resources":{"limits":{"storage":"3Gi"},"requests":{"storage":"2Gi"}},"volumeName":"my-local-storage","storageClassName":"manual","volumeMode":"Filesystem","dataSource":null},"status":{"phase":"Pending"}}
|
106
100
|
|
107
101
|
'
|
108
|
-
http_version:
|
109
|
-
recorded_at:
|
102
|
+
http_version:
|
103
|
+
recorded_at: Sun, 24 Mar 2019 20:18:17 GMT
|
110
104
|
- request:
|
111
105
|
method: get
|
112
106
|
uri: https://10.8.254.82:8443/api
|
@@ -119,27 +113,25 @@ http_interactions:
|
|
119
113
|
Accept-Encoding:
|
120
114
|
- gzip, deflate
|
121
115
|
User-Agent:
|
122
|
-
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.
|
116
|
+
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.3.3p222
|
123
117
|
response:
|
124
118
|
status:
|
125
119
|
code: 200
|
126
120
|
message: OK
|
127
121
|
headers:
|
128
|
-
Cache-Control:
|
129
|
-
- no-store
|
130
122
|
Content-Type:
|
131
123
|
- application/json
|
132
124
|
Date:
|
133
|
-
-
|
125
|
+
- Sun, 24 Mar 2019 20:18:17 GMT
|
134
126
|
Content-Length:
|
135
|
-
- '
|
127
|
+
- '137'
|
136
128
|
body:
|
137
129
|
encoding: UTF-8
|
138
|
-
string: '{"kind":"APIVersions","versions":["v1"],"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"
|
130
|
+
string: '{"kind":"APIVersions","versions":["v1"],"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"10.8.254.82:8443"}]}
|
139
131
|
|
140
132
|
'
|
141
|
-
http_version:
|
142
|
-
recorded_at:
|
133
|
+
http_version:
|
134
|
+
recorded_at: Sun, 24 Mar 2019 20:18:17 GMT
|
143
135
|
- request:
|
144
136
|
method: get
|
145
137
|
uri: https://10.8.254.82:8443/api/v1/namespaces/default/persistentvolumeclaims/my-local-storage-pvc
|
@@ -152,29 +144,27 @@ http_interactions:
|
|
152
144
|
Accept-Encoding:
|
153
145
|
- gzip, deflate
|
154
146
|
User-Agent:
|
155
|
-
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.
|
147
|
+
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.3.3p222
|
156
148
|
Authorization:
|
157
|
-
- Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.
|
149
|
+
- Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6ImZvcmVtYW4tYWNjb3VudC10b2tlbi1yY3ByMiIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50Lm5hbWUiOiJmb3JlbWFuLWFjY291bnQiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC51aWQiOiI1OGY3NTc4NC0yMjUyLTExZTktYjU1NS01MjU0MDA3ZDM1M2QiLCJzdWIiOiJzeXN0ZW06c2VydmljZWFjY291bnQ6ZGVmYXVsdDpmb3JlbWFuLWFjY291bnQifQ.UDzZu0_mLkJZvgeGE-lgKJOXtwWGt6WoNuEpm8k7VK61_bQFavEsETRUrGar68cebUPdUTWFoFlVStcQXoQoS0PUvqNPmznBcHDUW5Jw7pKaLHUhsqQkOoNzDD4eGcl1KDoagL1E-CkTglcYiMYHM9yykxnK58jyP3HF1rsDLG-c8N-T3bK_tLQ__eqKwPJ7R3RHuCg3M5FX1mH86wuaEsOPW3KW7tlGQpP5hj33-97KMp4GgH3pZMTLgo1JDwGT2GXPW12V7juE18KEvvot6q5S0Akl85Vp_5NCxNANRG9YCsSnUiB1opHBqfTxIO1ykSYHfg2IkuovQh68HDNV5A
|
158
150
|
response:
|
159
151
|
status:
|
160
152
|
code: 200
|
161
153
|
message: OK
|
162
154
|
headers:
|
163
|
-
Cache-Control:
|
164
|
-
- no-store
|
165
155
|
Content-Type:
|
166
156
|
- application/json
|
167
157
|
Date:
|
168
|
-
-
|
158
|
+
- Sun, 24 Mar 2019 20:18:17 GMT
|
169
159
|
Content-Length:
|
170
|
-
- '
|
160
|
+
- '620'
|
171
161
|
body:
|
172
162
|
encoding: UTF-8
|
173
|
-
string: '{"kind":"PersistentVolumeClaim","apiVersion":"v1","metadata":{"name":"my-local-storage-pvc","namespace":"default","selfLink":"/api/v1/namespaces/default/persistentvolumeclaims/my-local-storage-pvc","uid":"
|
163
|
+
string: '{"kind":"PersistentVolumeClaim","apiVersion":"v1","metadata":{"name":"my-local-storage-pvc","namespace":"default","selfLink":"/api/v1/namespaces/default/persistentvolumeclaims/my-local-storage-pvc","uid":"f616f5ab-4e71-11e9-8e8c-5254007d353d","resourceVersion":"3258449","creationTimestamp":"2019-03-24T20:18:17Z","finalizers":["kubernetes.io/pvc-protection"]},"spec":{"accessModes":["ReadWriteOnce"],"selector":{},"resources":{"limits":{"storage":"3Gi"},"requests":{"storage":"2Gi"}},"volumeName":"my-local-storage","storageClassName":"manual","volumeMode":"Filesystem","dataSource":null},"status":{"phase":"Pending"}}
|
174
164
|
|
175
165
|
'
|
176
|
-
http_version:
|
177
|
-
recorded_at:
|
166
|
+
http_version:
|
167
|
+
recorded_at: Sun, 24 Mar 2019 20:18:17 GMT
|
178
168
|
- request:
|
179
169
|
method: get
|
180
170
|
uri: https://10.8.254.82:8443/api
|
@@ -187,27 +177,89 @@ http_interactions:
|
|
187
177
|
Accept-Encoding:
|
188
178
|
- gzip, deflate
|
189
179
|
User-Agent:
|
190
|
-
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.
|
180
|
+
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.3.3p222
|
191
181
|
response:
|
192
182
|
status:
|
193
183
|
code: 200
|
194
184
|
message: OK
|
195
185
|
headers:
|
196
|
-
Cache-Control:
|
197
|
-
- no-store
|
198
186
|
Content-Type:
|
199
187
|
- application/json
|
200
188
|
Date:
|
201
|
-
-
|
189
|
+
- Sun, 24 Mar 2019 20:18:17 GMT
|
202
190
|
Content-Length:
|
203
|
-
- '
|
191
|
+
- '137'
|
204
192
|
body:
|
205
193
|
encoding: UTF-8
|
206
|
-
string: '{"kind":"APIVersions","versions":["v1"],"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"
|
194
|
+
string: '{"kind":"APIVersions","versions":["v1"],"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"10.8.254.82:8443"}]}
|
207
195
|
|
208
196
|
'
|
209
|
-
http_version:
|
210
|
-
recorded_at:
|
197
|
+
http_version:
|
198
|
+
recorded_at: Sun, 24 Mar 2019 20:18:17 GMT
|
199
|
+
- request:
|
200
|
+
method: get
|
201
|
+
uri: https://10.8.254.82:8443/api/v1/namespaces/default/persistentvolumeclaims
|
202
|
+
body:
|
203
|
+
encoding: US-ASCII
|
204
|
+
string: ''
|
205
|
+
headers:
|
206
|
+
Accept:
|
207
|
+
- "*/*"
|
208
|
+
Accept-Encoding:
|
209
|
+
- gzip, deflate
|
210
|
+
User-Agent:
|
211
|
+
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.3.3p222
|
212
|
+
Authorization:
|
213
|
+
- Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6ImZvcmVtYW4tYWNjb3VudC10b2tlbi1yY3ByMiIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50Lm5hbWUiOiJmb3JlbWFuLWFjY291bnQiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC51aWQiOiI1OGY3NTc4NC0yMjUyLTExZTktYjU1NS01MjU0MDA3ZDM1M2QiLCJzdWIiOiJzeXN0ZW06c2VydmljZWFjY291bnQ6ZGVmYXVsdDpmb3JlbWFuLWFjY291bnQifQ.UDzZu0_mLkJZvgeGE-lgKJOXtwWGt6WoNuEpm8k7VK61_bQFavEsETRUrGar68cebUPdUTWFoFlVStcQXoQoS0PUvqNPmznBcHDUW5Jw7pKaLHUhsqQkOoNzDD4eGcl1KDoagL1E-CkTglcYiMYHM9yykxnK58jyP3HF1rsDLG-c8N-T3bK_tLQ__eqKwPJ7R3RHuCg3M5FX1mH86wuaEsOPW3KW7tlGQpP5hj33-97KMp4GgH3pZMTLgo1JDwGT2GXPW12V7juE18KEvvot6q5S0Akl85Vp_5NCxNANRG9YCsSnUiB1opHBqfTxIO1ykSYHfg2IkuovQh68HDNV5A
|
214
|
+
response:
|
215
|
+
status:
|
216
|
+
code: 200
|
217
|
+
message: OK
|
218
|
+
headers:
|
219
|
+
Content-Type:
|
220
|
+
- application/json
|
221
|
+
Date:
|
222
|
+
- Sun, 24 Mar 2019 20:18:17 GMT
|
223
|
+
Transfer-Encoding:
|
224
|
+
- chunked
|
225
|
+
body:
|
226
|
+
encoding: UTF-8
|
227
|
+
string: '{"kind":"PersistentVolumeClaimList","apiVersion":"v1","metadata":{"selfLink":"/api/v1/namespaces/default/persistentvolumeclaims","resourceVersion":"3258451"},"items":[{"metadata":{"name":"example-local-claim","namespace":"default","selfLink":"/api/v1/namespaces/default/persistentvolumeclaims/example-local-claim","uid":"9dff5ace-4aee-11e9-8999-5254007d353d","resourceVersion":"2657730","creationTimestamp":"2019-03-20T09:00:32Z","annotations":{"pv.kubernetes.io/bind-completed":"yes","pv.kubernetes.io/bound-by-controller":"yes"},"finalizers":["kubernetes.io/pvc-protection"]},"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"5Gi"}},"volumeName":"example-local-pv","storageClassName":"local-storage","volumeMode":"Filesystem","dataSource":null},"status":{"phase":"Bound","accessModes":["ReadWriteOnce"],"capacity":{"storage":"10Gi"}}},{"metadata":{"name":"my-local-storage-pvc","namespace":"default","selfLink":"/api/v1/namespaces/default/persistentvolumeclaims/my-local-storage-pvc","uid":"f616f5ab-4e71-11e9-8e8c-5254007d353d","resourceVersion":"3258449","creationTimestamp":"2019-03-24T20:18:17Z","finalizers":["kubernetes.io/pvc-protection"]},"spec":{"accessModes":["ReadWriteOnce"],"selector":{},"resources":{"limits":{"storage":"3Gi"},"requests":{"storage":"2Gi"}},"volumeName":"my-local-storage","storageClassName":"manual","volumeMode":"Filesystem","dataSource":null},"status":{"phase":"Pending"}},{"metadata":{"name":"task-pvc-1","namespace":"default","selfLink":"/api/v1/namespaces/default/persistentvolumeclaims/task-pvc-1","uid":"dcae2a60-2271-11e9-94df-5254007d353d","resourceVersion":"24786","creationTimestamp":"2019-01-27T20:26:44Z","annotations":{"pv.kubernetes.io/bind-completed":"yes"},"finalizers":["kubernetes.io/pvc-protection"]},"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"1Gi"}},"volumeName":"task-pv-volume1","storageClassName":"manual","volumeMode":"Filesystem","dataSource":null},"status":{"phase":"Bound","accessModes":["ReadWriteOnce"],"capacity":{"storage":"10Gi"}}},{"metadata":{"name":"task-pvc-2","namespace":"default","selfLink":"/api/v1/namespaces/default/persistentvolumeclaims/task-pvc-2","uid":"de51baab-2271-11e9-94df-5254007d353d","resourceVersion":"24769","creationTimestamp":"2019-01-27T20:26:46Z","annotations":{"pv.kubernetes.io/bind-completed":"yes"},"finalizers":["kubernetes.io/pvc-protection"]},"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"2Gi"}},"volumeName":"task-pv-volume2","storageClassName":"manual","volumeMode":"Filesystem","dataSource":null},"status":{"phase":"Bound","accessModes":["ReadWriteOnce"],"capacity":{"storage":"10Gi"}}},{"metadata":{"name":"task-pvc-3","namespace":"default","selfLink":"/api/v1/namespaces/default/persistentvolumeclaims/task-pvc-3","uid":"dff6a5e1-2271-11e9-94df-5254007d353d","resourceVersion":"24784","creationTimestamp":"2019-01-27T20:26:49Z","annotations":{"pv.kubernetes.io/bind-completed":"yes"},"finalizers":["kubernetes.io/pvc-protection"]},"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"3Gi"}},"volumeName":"task-pv-volume3","storageClassName":"manual","volumeMode":"Filesystem","dataSource":null},"status":{"phase":"Bound","accessModes":["ReadWriteOnce"],"capacity":{"storage":"10Gi"}}},{"metadata":{"name":"task-pvc-4","namespace":"default","selfLink":"/api/v1/namespaces/default/persistentvolumeclaims/task-pvc-4","uid":"e1be5a89-2271-11e9-94df-5254007d353d","resourceVersion":"24824","creationTimestamp":"2019-01-27T20:26:52Z","annotations":{"pv.kubernetes.io/bind-completed":"yes"},"finalizers":["kubernetes.io/pvc-protection"]},"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"4Gi"}},"volumeName":"task-pv-volume4","storageClassName":"manual","volumeMode":"Filesystem","dataSource":null},"status":{"phase":"Bound","accessModes":["ReadWriteOnce"],"capacity":{"storage":"10Gi"}}},{"metadata":{"name":"task-pvc-5","namespace":"default","selfLink":"/api/v1/namespaces/default/persistentvolumeclaims/task-pvc-5","uid":"e34e0a43-2271-11e9-94df-5254007d353d","resourceVersion":"24826","creationTimestamp":"2019-01-27T20:26:55Z","annotations":{"pv.kubernetes.io/bind-completed":"yes"},"finalizers":["kubernetes.io/pvc-protection"]},"spec":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"5Gi"}},"volumeName":"task-pv-volume5","storageClassName":"manual","volumeMode":"Filesystem","dataSource":null},"status":{"phase":"Bound","accessModes":["ReadWriteOnce"],"capacity":{"storage":"10Gi"}}}]}
|
228
|
+
|
229
|
+
'
|
230
|
+
http_version:
|
231
|
+
recorded_at: Sun, 24 Mar 2019 20:18:17 GMT
|
232
|
+
- request:
|
233
|
+
method: get
|
234
|
+
uri: https://10.8.254.82:8443/api
|
235
|
+
body:
|
236
|
+
encoding: US-ASCII
|
237
|
+
string: ''
|
238
|
+
headers:
|
239
|
+
Accept:
|
240
|
+
- "*/*"
|
241
|
+
Accept-Encoding:
|
242
|
+
- gzip, deflate
|
243
|
+
User-Agent:
|
244
|
+
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.3.3p222
|
245
|
+
response:
|
246
|
+
status:
|
247
|
+
code: 200
|
248
|
+
message: OK
|
249
|
+
headers:
|
250
|
+
Content-Type:
|
251
|
+
- application/json
|
252
|
+
Date:
|
253
|
+
- Sun, 24 Mar 2019 20:18:17 GMT
|
254
|
+
Content-Length:
|
255
|
+
- '137'
|
256
|
+
body:
|
257
|
+
encoding: UTF-8
|
258
|
+
string: '{"kind":"APIVersions","versions":["v1"],"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"10.8.254.82:8443"}]}
|
259
|
+
|
260
|
+
'
|
261
|
+
http_version:
|
262
|
+
recorded_at: Sun, 24 Mar 2019 20:18:17 GMT
|
211
263
|
- request:
|
212
264
|
method: get
|
213
265
|
uri: https://10.8.254.82:8443/api/v1/namespaces/default/persistentvolumeclaims/my-local-storage-pvc
|
@@ -220,29 +272,27 @@ http_interactions:
|
|
220
272
|
Accept-Encoding:
|
221
273
|
- gzip, deflate
|
222
274
|
User-Agent:
|
223
|
-
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.
|
275
|
+
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.3.3p222
|
224
276
|
Authorization:
|
225
|
-
- Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.
|
277
|
+
- Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6ImZvcmVtYW4tYWNjb3VudC10b2tlbi1yY3ByMiIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50Lm5hbWUiOiJmb3JlbWFuLWFjY291bnQiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC51aWQiOiI1OGY3NTc4NC0yMjUyLTExZTktYjU1NS01MjU0MDA3ZDM1M2QiLCJzdWIiOiJzeXN0ZW06c2VydmljZWFjY291bnQ6ZGVmYXVsdDpmb3JlbWFuLWFjY291bnQifQ.UDzZu0_mLkJZvgeGE-lgKJOXtwWGt6WoNuEpm8k7VK61_bQFavEsETRUrGar68cebUPdUTWFoFlVStcQXoQoS0PUvqNPmznBcHDUW5Jw7pKaLHUhsqQkOoNzDD4eGcl1KDoagL1E-CkTglcYiMYHM9yykxnK58jyP3HF1rsDLG-c8N-T3bK_tLQ__eqKwPJ7R3RHuCg3M5FX1mH86wuaEsOPW3KW7tlGQpP5hj33-97KMp4GgH3pZMTLgo1JDwGT2GXPW12V7juE18KEvvot6q5S0Akl85Vp_5NCxNANRG9YCsSnUiB1opHBqfTxIO1ykSYHfg2IkuovQh68HDNV5A
|
226
278
|
response:
|
227
279
|
status:
|
228
280
|
code: 200
|
229
281
|
message: OK
|
230
282
|
headers:
|
231
|
-
Cache-Control:
|
232
|
-
- no-store
|
233
283
|
Content-Type:
|
234
284
|
- application/json
|
235
285
|
Date:
|
236
|
-
-
|
286
|
+
- Sun, 24 Mar 2019 20:18:17 GMT
|
237
287
|
Content-Length:
|
238
|
-
- '
|
288
|
+
- '620'
|
239
289
|
body:
|
240
290
|
encoding: UTF-8
|
241
|
-
string: '{"kind":"PersistentVolumeClaim","apiVersion":"v1","metadata":{"name":"my-local-storage-pvc","namespace":"default","selfLink":"/api/v1/namespaces/default/persistentvolumeclaims/my-local-storage-pvc","uid":"
|
291
|
+
string: '{"kind":"PersistentVolumeClaim","apiVersion":"v1","metadata":{"name":"my-local-storage-pvc","namespace":"default","selfLink":"/api/v1/namespaces/default/persistentvolumeclaims/my-local-storage-pvc","uid":"f616f5ab-4e71-11e9-8e8c-5254007d353d","resourceVersion":"3258449","creationTimestamp":"2019-03-24T20:18:17Z","finalizers":["kubernetes.io/pvc-protection"]},"spec":{"accessModes":["ReadWriteOnce"],"selector":{},"resources":{"limits":{"storage":"3Gi"},"requests":{"storage":"2Gi"}},"volumeName":"my-local-storage","storageClassName":"manual","volumeMode":"Filesystem","dataSource":null},"status":{"phase":"Pending"}}
|
242
292
|
|
243
293
|
'
|
244
|
-
http_version:
|
245
|
-
recorded_at:
|
294
|
+
http_version:
|
295
|
+
recorded_at: Sun, 24 Mar 2019 20:18:17 GMT
|
246
296
|
- request:
|
247
297
|
method: get
|
248
298
|
uri: https://10.8.254.82:8443/api
|
@@ -255,27 +305,25 @@ http_interactions:
|
|
255
305
|
Accept-Encoding:
|
256
306
|
- gzip, deflate
|
257
307
|
User-Agent:
|
258
|
-
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.
|
308
|
+
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.3.3p222
|
259
309
|
response:
|
260
310
|
status:
|
261
311
|
code: 200
|
262
312
|
message: OK
|
263
313
|
headers:
|
264
|
-
Cache-Control:
|
265
|
-
- no-store
|
266
314
|
Content-Type:
|
267
315
|
- application/json
|
268
316
|
Date:
|
269
|
-
-
|
317
|
+
- Sun, 24 Mar 2019 20:18:17 GMT
|
270
318
|
Content-Length:
|
271
|
-
- '
|
319
|
+
- '137'
|
272
320
|
body:
|
273
321
|
encoding: UTF-8
|
274
|
-
string: '{"kind":"APIVersions","versions":["v1"],"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"
|
322
|
+
string: '{"kind":"APIVersions","versions":["v1"],"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"10.8.254.82:8443"}]}
|
275
323
|
|
276
324
|
'
|
277
|
-
http_version:
|
278
|
-
recorded_at:
|
325
|
+
http_version:
|
326
|
+
recorded_at: Sun, 24 Mar 2019 20:18:17 GMT
|
279
327
|
- request:
|
280
328
|
method: delete
|
281
329
|
uri: https://10.8.254.82:8443/api/v1/namespaces/default/persistentvolumeclaims/my-local-storage-pvc
|
@@ -288,29 +336,27 @@ http_interactions:
|
|
288
336
|
Accept-Encoding:
|
289
337
|
- gzip, deflate
|
290
338
|
User-Agent:
|
291
|
-
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.
|
339
|
+
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.3.3p222
|
292
340
|
Content-Type:
|
293
341
|
- application/json
|
294
342
|
Authorization:
|
295
|
-
- Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.
|
343
|
+
- Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6ImZvcmVtYW4tYWNjb3VudC10b2tlbi1yY3ByMiIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50Lm5hbWUiOiJmb3JlbWFuLWFjY291bnQiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC51aWQiOiI1OGY3NTc4NC0yMjUyLTExZTktYjU1NS01MjU0MDA3ZDM1M2QiLCJzdWIiOiJzeXN0ZW06c2VydmljZWFjY291bnQ6ZGVmYXVsdDpmb3JlbWFuLWFjY291bnQifQ.UDzZu0_mLkJZvgeGE-lgKJOXtwWGt6WoNuEpm8k7VK61_bQFavEsETRUrGar68cebUPdUTWFoFlVStcQXoQoS0PUvqNPmznBcHDUW5Jw7pKaLHUhsqQkOoNzDD4eGcl1KDoagL1E-CkTglcYiMYHM9yykxnK58jyP3HF1rsDLG-c8N-T3bK_tLQ__eqKwPJ7R3RHuCg3M5FX1mH86wuaEsOPW3KW7tlGQpP5hj33-97KMp4GgH3pZMTLgo1JDwGT2GXPW12V7juE18KEvvot6q5S0Akl85Vp_5NCxNANRG9YCsSnUiB1opHBqfTxIO1ykSYHfg2IkuovQh68HDNV5A
|
296
344
|
response:
|
297
345
|
status:
|
298
346
|
code: 200
|
299
347
|
message: OK
|
300
348
|
headers:
|
301
|
-
Cache-Control:
|
302
|
-
- no-store
|
303
349
|
Content-Type:
|
304
350
|
- application/json
|
305
351
|
Date:
|
306
|
-
-
|
352
|
+
- Sun, 24 Mar 2019 20:18:17 GMT
|
307
353
|
Content-Length:
|
308
|
-
- '
|
354
|
+
- '694'
|
309
355
|
body:
|
310
356
|
encoding: UTF-8
|
311
|
-
string: '{"kind":"PersistentVolumeClaim","apiVersion":"v1","metadata":{"name":"my-local-storage-pvc","namespace":"default","selfLink":"/api/v1/namespaces/default/persistentvolumeclaims/my-local-storage-pvc","uid":"
|
357
|
+
string: '{"kind":"PersistentVolumeClaim","apiVersion":"v1","metadata":{"name":"my-local-storage-pvc","namespace":"default","selfLink":"/api/v1/namespaces/default/persistentvolumeclaims/my-local-storage-pvc","uid":"f616f5ab-4e71-11e9-8e8c-5254007d353d","resourceVersion":"3258452","creationTimestamp":"2019-03-24T20:18:17Z","deletionTimestamp":"2019-03-24T20:18:17Z","deletionGracePeriodSeconds":0,"finalizers":["kubernetes.io/pvc-protection"]},"spec":{"accessModes":["ReadWriteOnce"],"selector":{},"resources":{"limits":{"storage":"3Gi"},"requests":{"storage":"2Gi"}},"volumeName":"my-local-storage","storageClassName":"manual","volumeMode":"Filesystem","dataSource":null},"status":{"phase":"Pending"}}
|
312
358
|
|
313
359
|
'
|
314
|
-
http_version:
|
315
|
-
recorded_at:
|
360
|
+
http_version:
|
361
|
+
recorded_at: Sun, 24 Mar 2019 20:18:17 GMT
|
316
362
|
recorded_with: VCR 4.0.0
|