forked from openstack-k8s-operators/architecture
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request openstack-k8s-operators#244 from shiftstack/osasin…
…fra-dt OSASINFRA DT A DT for deploying OpenShift on OpenStack, following the recommendations from the OpenShift on OpenStack reference architecture [1], in particular: Ceph for Image, Block Storage, and Object Storage (using RGW). Nova ephemeral using local storage Octavia + Amphora Manila + NFS [1] https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.2/html-single/reference_architecture_for_deploying_red_hat_openshift_container_platform_on_red_hat_openstack_platform/index Reviewed-by: John Fulton <[email protected]> Reviewed-by: Martin André Reviewed-by: Andrew Bays <[email protected]>
- Loading branch information
Showing
35 changed files
with
1,703 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
--- | ||
vas: | ||
osasinfra: | ||
stages: | ||
- path: examples/dt/osasinfra/control-plane/nncp | ||
wait_conditions: | ||
- >- | ||
oc -n openstack wait nncp | ||
-l osp/nncm-config-type=standard | ||
--for jsonpath='{.status.conditions[0].reason}'=SuccessfullyConfigured | ||
--timeout=3m | ||
values: | ||
- name: network-values | ||
src_file: values.yaml | ||
build_output: nncp.yaml | ||
|
||
- path: examples/dt/osasinfra/control-plane | ||
wait_conditions: | ||
- >- | ||
oc -n openstack wait openstackcontrolplane | ||
controlplane | ||
--for condition=Ready | ||
--timeout=30m | ||
values: | ||
- name: network-values | ||
src_file: nncp/values.yaml | ||
build_output: ../control-plane.yaml | ||
|
||
- path: examples/dt/osasinfra/edpm-pre-ceph/nodeset | ||
wait_conditions: | ||
- >- | ||
oc -n openstack wait | ||
osdpns openstack-edpm --for condition=SetupReady | ||
--timeout=600s | ||
values: | ||
- name: edpm-nodeset-values | ||
src_file: values.yaml | ||
build_output: nodeset-pre-ceph.yaml | ||
|
||
- path: examples/dt/osasinfra/edpm-pre-ceph/deployment | ||
wait_conditions: | ||
- >- | ||
oc -n openstack wait | ||
osdpns openstack-edpm --for condition=Ready | ||
--timeout=1500s | ||
values: | ||
- name: edpm-deployment-values | ||
src_file: values.yaml | ||
build_output: deployment-pre-ceph.yaml | ||
post_stage_run: | ||
- name: Deploy Ceph | ||
type: playbook | ||
source: "../../playbooks/ceph.yml" | ||
inventory: "${HOME}/ci-framework-data/artifacts/zuul_inventory.yml" | ||
|
||
- path: examples/dt/osasinfra | ||
wait_conditions: | ||
- >- | ||
oc -n openstack wait | ||
osdpns openstack-edpm --for condition=SetupReady | ||
--timeout=10m | ||
values: | ||
- name: service-values | ||
src_file: service-values.yaml | ||
- name: edpm-nodeset-values-post-ceph | ||
src_file: values.yaml | ||
build_output: nodeset-post-ceph.yaml | ||
|
||
- path: examples/dt/osasinfra/deployment | ||
wait_conditions: | ||
- >- | ||
oc -n openstack wait | ||
osdpns openstack-edpm --for condition=Ready | ||
--timeout=40m | ||
values: | ||
- name: edpm-deployment-values-post-ceph | ||
src_file: values.yaml | ||
build_output: deployment-post-ceph.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,11 @@ | ||
# Deployed Topology - OSASINFRA | ||
|
||
If you are looking for information on how to deploy the OSASINFRA DT, then | ||
please the [README](../../examples/dt/osasinfra/README.md) in the examples | ||
directory. | ||
|
||
This directory `dt/osasinfra/`, exists so that the | ||
[kustomization.yaml](../../examples/dt/osasinfra/kustomization.yaml) in | ||
the examples directory of osasinfra topology, reference it by path as a | ||
component. It's contents are likely uninteresting unless you want to understand | ||
how kustomize was implemented in this repository. |
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,34 @@ | ||
--- | ||
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/dataplane/deployment | ||
|
||
replacements: | ||
- source: | ||
kind: ConfigMap | ||
name: edpm-deployment-values-post-ceph | ||
fieldPath: data.deployment.name | ||
targets: | ||
- select: | ||
kind: OpenStackDataPlaneDeployment | ||
fieldPaths: | ||
- metadata.name | ||
options: | ||
create: true |
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,10 @@ | ||
--- | ||
apiVersion: v1 | ||
data: | ||
ceph.client.openstack.keyring: _replaced_ | ||
ceph.conf: _replaced_ | ||
kind: Secret | ||
metadata: | ||
name: ceph-conf-files | ||
namespace: openstack | ||
type: Opaque |
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,17 @@ | ||
--- | ||
apiVersion: dataplane.openstack.org/v1beta1 | ||
kind: OpenStackDataPlaneNodeSet | ||
metadata: | ||
name: openstack-edpm | ||
spec: | ||
nodeTemplate: | ||
extraMounts: | ||
- extraVolType: Ceph | ||
mounts: | ||
- mountPath: /etc/ceph | ||
name: ceph | ||
readOnly: true | ||
volumes: | ||
- name: ceph | ||
secret: | ||
secretName: ceph-conf-files |
Oops, something went wrong.