Skip to content

Commit

Permalink
Modify default CR sample for my nova-devel case
Browse files Browse the repository at this point in the history
?No longer relevant, see
openstack-k8s-operators#416 (comment)

Isol-net CRs to become collapsed cells as well
  Not clear for cell-local vs global services replicas

Turn off unrelated services (for my Nova dev specifc needs)

TODO: this to end up in https://github.com/openstack-k8s-operators/data-plane-adoption/blob/main/tests/roles/backend_services/tasks/main.yaml#L41

Signed-off-by: Bohdan Dobrelia <bdobreli@redhat.com>
  • Loading branch information
bogdando committed Sep 14, 2023
1 parent 5112983 commit f2b4219
Show file tree
Hide file tree
Showing 2 changed files with 211 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,19 @@ spec:
- 192.168.122.1
replicas: 1
cinder:
enabled: false
template:
databaseInstance: openstack
secret: osp-secret
cinderAPI:
replicas: 0
externalEndpoints:
- endpoint: internal
ipAddressPool: internalapi
loadBalancerIPs:
- 172.17.0.80
cinderScheduler:
replicas: 1
replicas: 0
cinderBackup:
networkAttachments:
- storage
Expand All @@ -41,8 +43,9 @@ spec:
template:
databaseInstance: openstack
storageClass: ""
storageRequest: 10G
storageRequest: 1G
glanceAPIInternal:
replicas: 1
externalEndpoints:
- endpoint: internal
ipAddressPool: internalapi
Expand All @@ -51,6 +54,7 @@ spec:
networkAttachments:
- storage
glanceAPIExternal:
replicas: 0
networkAttachments:
- storage
keystone:
Expand Down Expand Up @@ -96,28 +100,74 @@ spec:
networkAttachments:
- internalapi
horizon:
enabled: false
template:
replicas: 1
replicas: 0
secret: osp-secret
nova:
enabled: true # install CRDs, run nothing (for local debug)
template:
# This creates a collapsed cell deployment same as what OSP17 does by
# default. The conductor in cell1 acts as both the cell conductor and the
# super conductor hence cell0 conductor is disabled. Also in this
# deployment both the top level services and cell1 service will share the
# same message bus and database service instance so there is no cell
# separation implemented.
cellTemplates:
cell0:
cellDatabaseUser: nova_cell0
noVNCProxyServiceTemplate:
replicas: 0 # must remain 0?
metadataServiceTemplate:
replicas: 0 # must remain 0?
conductorServiceTemplate:
replicas: 0 # must remain 0
externalEndpoints:
- endpoint: internal
ipAddressPool: internalapi
loadBalancerIPs:
- 172.17.0.80
hasAPIAccess: true
cell1:
cellDatabaseUser: nova_cell1
cellDatabaseInstance: openstack-cell1
cellMessageBusInstance: rabbitmq-cell1
noVNCProxyServiceTemplate:
replicas: 0 #1, to be started locally
metadataServiceTemplate:
replicas: 0 #1, to be started locally
conductorServiceTemplate:
replicas: 0 #1, to be started locally
hasAPIAccess: true
externalEndpoints:
- endpoint: internal
ipAddressPool: internalapi
loadBalancerIPs:
- 172.17.0.80
apiServiceTemplate:
replicas: 0 #1, to be started locally
externalEndpoints:
- endpoint: internal
ipAddressPool: internalapi
loadBalancerIPs:
- 172.17.0.80
secret: osp-secret
metadataServiceTemplate:
replicas: 0 #1, to be started locally
externalEndpoints:
- endpoint: internal
ipAddressPool: internalapi
loadBalancerIPs:
- 172.17.0.80
schedulerServiceTemplate:
replicas: 0 #1, to be started locally
noVNCProxyServiceTemplate:
replicas: 0 #1, to be started locally, or just for cell1?
manila:
enabled: false
template:
manilaAPI:
replicas: 1
replicas: 0
externalEndpoints:
- endpoint: internal
ipAddressPool: internalapi
Expand All @@ -126,32 +176,39 @@ spec:
networkAttachments:
- internalapi
manilaScheduler:
replicas: 1
replicas: 0
networkAttachments:
- internalapi
manilaShares:
share1:
replicas: 1
replicas: 0
networkAttachments:
- storage
ovn:
template:
ovnDBCluster:
ovndbcluster-nb:
replicas: 1
dbType: NB
storageRequest: 10G
storageRequest: 1G
networkAttachment: internalapi
ovndbcluster-sb:
replicas: 1
dbType: SB
storageRequest: 10G
storageRequest: 1G
networkAttachment: internalapi
ovnNorthd:
replicas: 1
networkAttachment: internalapi
ovnController:
replicas: 1
external-ids:
system-id: "random"
ovn-bridge: "br-int"
ovn-encap-type: "geneve"
networkAttachment: tenant
placement:
enabled: false # for adoption testing
template:
databaseInstance: openstack
secret: osp-secret
Expand All @@ -163,12 +220,28 @@ spec:
rabbitmq:
templates:
rabbitmq:
replicas: 1
resources:
requests:
cpu: 150m
memory: 250Mi
limits:
cpu: 300m
memory: 500Mi
externalEndpoint:
loadBalancerIPs:
- 172.17.0.85
ipAddressPool: internalapi
sharedIP: false
rabbitmq-cell1:
replicas: 1
resources:
requests:
cpu: 150m
memory: 250Mi
limits:
cpu: 300m
memory: 500Mi
externalEndpoint:
loadBalancerIPs:
- 172.17.0.86
Expand All @@ -179,43 +252,46 @@ spec:
template:
databaseInstance: openstack
heatAPI:
replicas: 1
replicas: 0
heatEngine:
replicas: 1
replicas: 0
heatCfnAPI:
replicas: 0
secret: osp-secret
ironic:
enabled: false
template:
databaseInstance: openstack
ironicAPI:
replicas: 1
replicas: 0
ironicConductors:
- replicas: 1
storageRequest: 10G
- replicas: 0
storageRequest: 1G
ironicInspector:
replicas: 1
replicas: 0
ironicNeutronAgent:
replicas: 1
replicas: 0
secret: osp-secret
ceilometer:
enabled: false
template:
passwordSelector:
service: CeilometerPassword
secret: osp-secret
serviceUser: ceilometer
swift:
enabled: true
enabled: false
template:
swiftRing:
ringReplicas: 1
ringReplicas: 1 # can't be 0
swiftStorage:
replicas: 1
replicas: 1 # can't be 0
swiftProxy:
replicas: 1
replicas: 1 # can't be 0
octavia:
enabled: false
template:
databaseInstance: openstack
octaviaAPI:
replicas: 1
replicas: 0
secret: osp-secret
Loading

0 comments on commit f2b4219

Please sign in to comment.