-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Draft] Split nvidia-mdev arch in two stages
- Loading branch information
Showing
16 changed files
with
335 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1alpha1 | ||
kind: Component | ||
|
||
transformers: | ||
# Set namespace to OpenStack on all namespaced objects without a namespace | ||
- |- | ||
apiVersion: builtin | ||
kind: NamespaceTransformer | ||
metadata: | ||
name: _ignored_ | ||
namespace: openstack | ||
setRoleBindingSubjects: none | ||
unsetOnly: true | ||
fieldSpecs: | ||
- path: metadata/name | ||
kind: Namespace | ||
create: true | ||
components: | ||
- ../../../../lib/networking/metallb | ||
- ../../../../lib/networking/netconfig | ||
- ../../../../lib/networking/nad | ||
- ../../../../lib/control-plane | ||
|
||
resources: | ||
- nncp/values.yaml | ||
- service-values.yaml | ||
|
||
replacements: | ||
# Control plane customization | ||
- source: | ||
kind: ConfigMap | ||
name: service-values | ||
fieldPath: data.neutron.customServiceConfig | ||
targets: | ||
- select: | ||
kind: OpenStackControlPlane | ||
fieldPaths: | ||
- spec.neutron.template.customServiceConfig | ||
options: | ||
create: true | ||
# OVN control plane SRIOV customization | ||
- source: | ||
kind: ConfigMap | ||
name: service-values | ||
fieldPath: data.ovn.ovnController.nicMappings | ||
targets: | ||
- select: | ||
kind: OpenStackControlPlane | ||
fieldPaths: | ||
- spec.ovn.template.ovnController.nicMappings | ||
options: | ||
create: true | ||
- source: | ||
kind: ConfigMap | ||
name: service-values | ||
fieldPath: data.glance.customServiceConfig | ||
targets: | ||
- select: | ||
kind: OpenStackControlPlane | ||
fieldPaths: | ||
- spec.glance.template.customServiceConfig | ||
options: | ||
create: true | ||
- source: | ||
kind: ConfigMap | ||
name: service-values | ||
fieldPath: data.glance.default.replicas | ||
targets: | ||
- select: | ||
kind: OpenStackControlPlane | ||
fieldPaths: | ||
- spec.glance.template.glanceAPIs.default.replicas | ||
options: | ||
create: true | ||
- source: | ||
kind: ConfigMap | ||
name: service-values | ||
fieldPath: data.swift.enabled | ||
targets: | ||
- select: | ||
kind: OpenStackControlPlane | ||
fieldPaths: | ||
- spec.swift.enabled | ||
options: | ||
create: true | ||
- source: | ||
kind: ConfigMap | ||
name: service-values | ||
fieldPath: data.nova.schedulerServiceTemplate.customServiceConfig | ||
targets: | ||
- select: | ||
kind: OpenStackControlPlane | ||
fieldPaths: | ||
- spec.nova.template.schedulerServiceTemplate.customServiceConfig | ||
options: | ||
create: true |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: service-values | ||
annotations: | ||
config.kubernetes.io/local-config: "true" | ||
data: | ||
preserveJobs: false | ||
neutron: | ||
customServiceConfig: | | ||
[DEFAULT] | ||
service_plugins=qos,ovn-router,trunk,segments,port_forwarding,log,placement | ||
[ml2] | ||
mechanism_drivers=sriovnicswitch,ovn | ||
extension_drivers=port_security,router,qos,segments,trunk,placement,port_numa_affinity_policy | ||
[ml2_type_vlan] | ||
network_vlan_ranges=datacentre:1:1000,physnet1:2000:2005 | ||
ovn: | ||
ovnController: | ||
nicMappings: | ||
datacentre: enp6s0 | ||
glance: | ||
customServiceConfig: | | ||
[DEFAULT] | ||
enabled_backends = default_backend:swift | ||
[glance_store] | ||
default_backend = default_backend | ||
[default_backend] | ||
swift_store_create_container_on_put = True | ||
swift_store_auth_version = 3 | ||
swift_store_auth_address = {{ .KeystoneInternalURL }} | ||
swift_store_endpoint_type = internalURL | ||
swift_store_user = service:glance | ||
swift_store_key = {{ .ServicePassword }} | ||
default: | ||
replicas: 1 | ||
swift: | ||
enabled: true | ||
nova: | ||
schedulerServiceTemplate: | ||
customServiceConfig: | | ||
[filter_scheduler] | ||
enabled_filtes = AvailabilityZoneFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,ServerGroupAntiAffinityFilter,ServerGroupAffinityFilter,PciPassthroughFilter,NUMATopologyFilter,AggregateInstanceExtraSpecsFilter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dataplane-deployment.yaml | ||
dataplane-nodeset.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dataplane-deployment.yaml |
47 changes: 47 additions & 0 deletions
47
examples/va/nvidia-mdev/edpm-post-driver/deployment/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
components: | ||
- ../../../../../va/nvidia-mdev/edpm-post-driver/deployment | ||
# - https://github.com/openstack-k8s-operators/architecture/va/nvidia-mdev/edpm-post-driver/deployment?ref=main | ||
## It's possible to replace ../../../../../va/nvidia-mdev/edpm-post-driver/deployment/ with a git checkout URL as per: | ||
## https://github.com/kubernetes-sigs/kustomize/blob/master/examples/remoteBuild.md | ||
|
||
resources: | ||
- values.yaml | ||
|
||
replacements: | ||
- source: | ||
kind: ConfigMap | ||
name: edpm-nodeset-post-driver-values | ||
fieldPath: data.servicesOverride | ||
targets: | ||
- select: | ||
kind: OpenStackDataPlaneDeployment | ||
fieldPaths: | ||
- spec.servicesOverride | ||
options: | ||
create: true | ||
- source: | ||
kind: ConfigMap | ||
name: edpm-nodeset-post-driver-values | ||
fieldPath: data.ansibleExtraVars | ||
targets: | ||
- select: | ||
kind: OpenStackDataPlaneDeployment | ||
fieldPaths: | ||
- spec.ansibleExtraVars | ||
options: | ||
create: true | ||
- source: | ||
kind: ConfigMap | ||
name: edpm-nodeset-post-driver-values | ||
fieldPath: data.deployment.name | ||
targets: | ||
- select: | ||
kind: OpenStackDataPlaneDeployment | ||
fieldPaths: | ||
- metadata.name | ||
options: | ||
create: true |
16 changes: 16 additions & 0 deletions
16
examples/va/nvidia-mdev/edpm-post-driver/deployment/values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
|
||
metadata: | ||
name: edpm-nodeset-post-driver-values | ||
annotations: | ||
config.kubernetes.io/local-config: "true" | ||
|
||
data: | ||
deployment: | ||
name: edpm-deployment-post-driver | ||
servicesOverride: | ||
- reboot-os | ||
ansibleExtraVars: | ||
edpm_reboot_strategy: force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.