Newer
Older
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
To install the operator you need as input a kubeconfig to the OSL management cluster and a kubeconfig of the Sylva management cluster
```
helm install oslsylva . --set-file kubeconfig=../src/main/resources/config --set-file sylvamgtconfig=../src/main/resources/management-cluster-kubeconfig
```
Then you need to:
Install kustomization.sylvamd.configmaps.osl.etsi.org in default namespace
Install secrets.sylvamd.configmaps.osl.etsi.org in default namespace
examples of such files are available in src/main/resources folder.
Example usage of the operator:
the kind installed is of SylvaMDResource under group: controllers.osl.etsi.org
It accepts either simple a number of clusterControlPlaneReplicas and clusterMd0Replicas or a full values yaml file.
Examples:
request a sylva workload cluster with 1 master 3 worker nodes
```
apiVersion: controllers.osl.etsi.org/v1alpha1
kind: SylvaMDResource
metadata:
name: wc12345-aaeeff
spec:
clusterControlPlaneReplicas: "1"
clusterMd0Replicas: "3"
```
request a sylva workload cluster with 1 master 3 worker nodes, but with a values.yaml spec
```
apiVersion: controllers.osl.etsi.org/v1alpha1
kind: SylvaMDResource
metadata:
name: wc67890-bbccdd
spec:
valuesyaml: |
---
cluster:
capi_providers:
infra_provider: capo
bootstrap_provider: cabpr
capo:
image_key: ubuntu-jammy-plain-rke2-1-28-8 # OpenStack Glance image (key of image in sylva_diskimagebuilder_images/os_images)
ssh_key_name: sylva # OpenStack Nova SSH keypair is provided by runner context in CI
network_id: 7b490a0c-0f5c-4475-a436-e4bcbecc7f5e # OpenStack Neutron network id is provided by runner context in CI
flavor_name: cpu8.m16384.d40g
control_plane_az:
- nova
machine_deployments:
md0:
replicas: 3
capo:
failure_domain: nova
flavor_name: cpu8.m16384.d40g
control_plane_replicas: 1
openstack:
control_plane_affinity_policy: soft-anti-affinity
storageClass:
name: "rbd1"
type: "rbd1"
proxies:
http_proxy: ""
https_proxy: ""
no_proxy: ""
ntp:
enabled: false
servers:
# - 1.2.3.4
# - 1.2.3.5
sylva_diskimagebuilder_images:
ubuntu-jammy-plain-rke2-1-28-8:
enabled: true
ubuntu-jammy-plain-kubeadm-1-28-9:
enabled: true
```
The status returns the state of the process as well as a kubeconf to connect to the remote WC, in the secret field as BASE64 encoded string.
Example:
```
Name: cr77935ae9
Namespace: fb9cdc53-e880-4faa-9ac1-b0f3f39800b5
Labels: org.etsi.osl.namespace=fb9cdc53-e880-4faa-9ac1-b0f3f39800b5
org.etsi.osl.prefixName=cr77935ae9
org.etsi.osl.resourceId=77935ae9-055a-449a-ac9c-e8d0d7a57e24
org.etsi.osl.serviceId=1674a3b5-2f5d-49a8-8029-77e04dd86a0c
org.etsi.osl.serviceOrderId=fb9cdc53-e880-4faa-9ac1-b0f3f39800b5
org.etsi.osl.statusCheckFieldName=status.state
org.etsi.osl.statusCheckValueAlarm=FAILED
org.etsi.osl.statusCheckValueAvailable=ACTIVE
org.etsi.osl.statusCheckValueReserved=
org.etsi.osl.statusCheckValueStandby=
org.etsi.osl.statusCheckValueSuspended=
org.etsi.osl.statusCheckValueUnknown=DELETED
Annotations: <none>
API Version: controllers.osl.etsi.org/v1alpha1
Kind: SylvaMDResource
Metadata:
Creation Timestamp: 2024-10-13T17:35:01Z
Finalizers:
sylva.osl.etsi.org
Generation: 5
Resource Version: 360840
UID: f478c552-34b4-488c-ac04-ce6e73c152de
Spec:
Valuesyaml: ---
cluster:
capi_providers:
infra_provider: capo
bootstrap_provider: cabpr
capo:
image_key: ubuntu-jammy-plain-rke2-1-28-8 # OpenStack Glance image (key of image in sylva_diskimagebuilder_images/os_images)
ssh_key_name: sylva # OpenStack Nova SSH keypair is provided by runner context in CI
network_id: 7b490a0c-0f5c-4475-a436-e4bcbecc7f5e # OpenStack Neutron network id is provided by runner context in CI
flavor_name: cpu8.m16384.d40g
control_plane_az:
- nova
machine_deployments:
md0:
replicas: 3
capo:
failure_domain: nova
flavor_name: cpu8.m16384.d40g
control_plane_replicas: 1
openstack:
control_plane_affinity_policy: soft-anti-affinity
storageClass:
name: "rbd1"
type: "rbd1"
proxies:
http_proxy: ""
https_proxy: ""
no_proxy: ""
ntp:
enabled: false
servers:
# - 1.2.3.4
# - 1.2.3.5
sylva_diskimagebuilder_images:
ubuntu-jammy-plain-rke2-1-28-8:
enabled: true
ubuntu-jammy-plain-kubeadm-1-28-9:
enabled: true
Status:
Info Text: executing apply-workload-cluster.sh success
Secret: YXB...PQo=
State: ACTIVE
State Text: ACTIVE
Events: <none>
```