-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Move service resources into a standalone deployment
This change moves service resources like mariadb and rabbitmq for our openstack services into a standalone deployment. This will ensure that we've good separation between required resources and our openstack deployments. Signed-off-by: Kevin Carter <[email protected]>
- Loading branch information
Showing
36 changed files
with
125 additions
and
16 deletions.
There are no files selected for viewing
File renamed without changes.
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,3 @@ | ||
resources: | ||
- cinder-mariadb-database.yaml | ||
- cinder-rabbitmq-queue.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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
resources: | ||
- cinder-mariadb-database.yaml | ||
- cinder-rabbitmq-queue.yaml | ||
- all.yaml | ||
- hpa-cinder-scheduler.yaml | ||
- hpa-cinder-api.yaml |
File renamed without changes.
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,3 @@ | ||
resources: | ||
- glance-mariadb-database.yaml | ||
- glance-rabbitmq-queue.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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
resources: | ||
- glance-mariadb-database.yaml | ||
- glance-rabbitmq-queue.yaml | ||
- all.yaml | ||
- hpa-glance-api.yaml | ||
|
||
|
File renamed without changes.
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,3 @@ | ||
resources: | ||
- heat-mariadb-database.yaml | ||
- heat-rabbitmq-queue.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
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,2 @@ | ||
resources: | ||
- horizon-mariadb-database.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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
resources: | ||
- horizon-mariadb-database.yaml | ||
- all.yaml | ||
- hpa-horizon-api.yaml |
File renamed without changes.
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,3 @@ | ||
resources: | ||
- keystone-mariadb-database.yaml | ||
- keystone-rabbitmq-queue.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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
resources: | ||
- keystone-mariadb-database.yaml | ||
- keystone-rabbitmq-queue.yaml | ||
- all.yaml | ||
- hpa-keystone-api.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,3 @@ | ||
resources: | ||
- neutron-mariadb-database.yaml | ||
- neutron-rabbitmq-queue.yaml |
File renamed without changes.
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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
resources: | ||
- neutron-mariadb-database.yaml | ||
- neutron-rabbitmq-queue.yaml | ||
- all.yaml | ||
- hpa-neutron-server.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,3 @@ | ||
resources: | ||
- nova-mariadb-database.yaml | ||
- nova-rabbitmq-queue.yaml |
File renamed without changes.
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
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,3 @@ | ||
resources: | ||
- octavia-mariadb-database.yaml | ||
- octavia-rabbitmq-queue.yaml |
File renamed without changes.
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
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 @@ | ||
resources: | ||
- placement-mariadb-database.yaml |
49 changes: 49 additions & 0 deletions
49
kustomize/placement-resources/base/placement-mariadb-database.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,49 @@ | ||
--- | ||
apiVersion: mariadb.mmontes.io/v1alpha1 | ||
kind: Database | ||
metadata: | ||
name: placement | ||
namespace: openstack | ||
spec: | ||
# If you want the database to be created with a different name than the resource name | ||
# name: data-custom | ||
mariaDbRef: | ||
name: mariadb-galera | ||
characterSet: utf8 | ||
collate: utf8_general_ci | ||
retryInterval: 5s | ||
--- | ||
apiVersion: mariadb.mmontes.io/v1alpha1 | ||
kind: User | ||
metadata: | ||
name: placement | ||
namespace: openstack | ||
spec: | ||
# If you want the user to be created with a different name than the resource name | ||
# name: user-custom | ||
mariaDbRef: | ||
name: mariadb-galera | ||
passwordSecretKeyRef: | ||
name: placement-db-password | ||
key: password | ||
# This field is immutable and defaults to 10, 0 means unlimited. | ||
maxUserConnections: 0 | ||
host: "%" | ||
retryInterval: 5s | ||
--- | ||
apiVersion: mariadb.mmontes.io/v1alpha1 | ||
kind: Grant | ||
metadata: | ||
name: placement-grant | ||
namespace: openstack | ||
spec: | ||
mariaDbRef: | ||
name: mariadb-galera | ||
privileges: | ||
- "ALL" | ||
database: "placement" | ||
table: "*" | ||
username: placement | ||
grantOption: true | ||
host: "%" | ||
retryInterval: 5s |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
resources: | ||
- placement-mariadb-database.yaml | ||
- all.yaml | ||
- hpa-placement-api.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,2 @@ | ||
resources: | ||
- skyline-mariadb-database.yaml |
49 changes: 49 additions & 0 deletions
49
kustomize/skyline-resources/base/skyline-mariadb-database.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,49 @@ | ||
--- | ||
apiVersion: mariadb.mmontes.io/v1alpha1 | ||
kind: Database | ||
metadata: | ||
name: skyline | ||
namespace: openstack | ||
spec: | ||
# If you want the database to be created with a different name than the resource name | ||
# name: data-custom | ||
mariaDbRef: | ||
name: mariadb-galera | ||
characterSet: utf8 | ||
collate: utf8_general_ci | ||
retryInterval: 5s | ||
--- | ||
apiVersion: mariadb.mmontes.io/v1alpha1 | ||
kind: User | ||
metadata: | ||
name: skyline | ||
namespace: openstack | ||
spec: | ||
# If you want the user to be created with a different name than the resource name | ||
# name: user-custom | ||
mariaDbRef: | ||
name: mariadb-galera | ||
passwordSecretKeyRef: | ||
name: skyline-apiserver-secrets | ||
key: db-password | ||
# This field is immutable and defaults to 10, 0 means unlimited. | ||
maxUserConnections: 0 | ||
host: "%" | ||
retryInterval: 5s | ||
--- | ||
apiVersion: mariadb.mmontes.io/v1alpha1 | ||
kind: Grant | ||
metadata: | ||
name: skyline-grant | ||
namespace: openstack | ||
spec: | ||
mariaDbRef: | ||
name: mariadb-galera | ||
privileges: | ||
- "ALL" | ||
database: "skyline" | ||
table: "*" | ||
username: skyline | ||
grantOption: true | ||
host: "%" | ||
retryInterval: 5s |