-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: swag at standing up Nautobot and OpenStack plumbing
This is a first swag at standing up Nautobot along with services that OpenStack will utilize.
- Loading branch information
Showing
46 changed files
with
1,724 additions
and
1 deletion.
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,8 @@ | ||
# where helm charts will get downloaded by kustomize | ||
/charts/ | ||
|
||
# un-encrypted secrets | ||
/secret-*.yaml | ||
# sealed secrets | ||
components/01-secrets/encrypted-*.yaml | ||
components/01-secrets/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
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: argoproj.io/v1alpha1 | ||
kind: AppProject | ||
metadata: | ||
name: understack | ||
spec: | ||
sourceRepos: | ||
- '*' | ||
destinations: | ||
# make sure we target the right places | ||
- namespace: 'nautobot' | ||
server: '*' | ||
- namespace: 'openstack' | ||
server: '*' | ||
clusterResourceWhitelist: | ||
- group: '*' | ||
kind: '*' |
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,13 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
namespace: argocd | ||
|
||
resources: | ||
- argocd-understack-project.yaml | ||
- namespaces.yaml | ||
- mariadb.yaml | ||
- rabbitmq-cluster.yaml | ||
- memcached.yaml | ||
- postgres-db.yaml | ||
- nautobot.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: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: mariadb | ||
spec: | ||
project: understack | ||
source: | ||
repoURL: https://github.com/rackerlabs/understack.git | ||
path: components/03-mariadb/ | ||
targetRevision: HEAD | ||
destination: | ||
server: "https://kubernetes.default.svc" | ||
namespace: openstack | ||
syncPolicy: | ||
automated: | ||
selfHeal: 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,16 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: memcached | ||
spec: | ||
project: understack | ||
source: | ||
repoURL: https://github.com/rackerlabs/understack.git | ||
path: components/06-memcached/ | ||
targetRevision: HEAD | ||
destination: | ||
server: "https://kubernetes.default.svc" | ||
namespace: openstack | ||
syncPolicy: | ||
automated: | ||
selfHeal: 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,16 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: namespaces | ||
spec: | ||
project: understack | ||
source: | ||
repoURL: https://github.com/rackerlabs/understack.git | ||
path: components/00-namespaces/ | ||
targetRevision: HEAD | ||
destination: | ||
server: "https://kubernetes.default.svc" | ||
namespace: nautobot | ||
syncPolicy: | ||
automated: | ||
selfHeal: 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,16 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: nautobot | ||
spec: | ||
project: understack | ||
source: | ||
repoURL: https://github.com/rackerlabs/understack.git | ||
path: components/09-nautobot/ | ||
targetRevision: HEAD | ||
destination: | ||
server: "https://kubernetes.default.svc" | ||
namespace: nautobot | ||
syncPolicy: | ||
automated: | ||
selfHeal: 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,16 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: postgres-db | ||
spec: | ||
project: understack | ||
source: | ||
repoURL: https://github.com/rackerlabs/understack.git | ||
path: components/07-postgres/ | ||
targetRevision: HEAD | ||
destination: | ||
server: "https://kubernetes.default.svc" | ||
namespace: nautobot | ||
syncPolicy: | ||
automated: | ||
selfHeal: 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,16 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: rabbitmq-cluster | ||
spec: | ||
project: understack | ||
source: | ||
repoURL: https://github.com/rackerlabs/understack.git | ||
path: components/04-rabbitmq-cluster/ | ||
targetRevision: HEAD | ||
destination: | ||
server: "https://kubernetes.default.svc" | ||
namespace: openstack | ||
syncPolicy: | ||
automated: | ||
selfHeal: 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,17 @@ | ||
--- | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: AppProject | ||
metadata: | ||
name: operators | ||
spec: | ||
sourceRepos: | ||
- '*' | ||
destinations: | ||
# make sure our operators don't install in the wrong place | ||
- namespace: '!nautobot' | ||
server: '*' | ||
- namespace: '!openstack' | ||
server: '*' | ||
clusterResourceWhitelist: | ||
- group: '*' | ||
kind: '*' |
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: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
namespace: argocd | ||
|
||
resources: | ||
- argocd-operators-project.yaml | ||
- mariadb-operator.yaml | ||
- postgres-operator.yaml | ||
- rabbitmq-operator.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,18 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: mariadb-operator | ||
spec: | ||
project: operators | ||
source: | ||
repoURL: https://github.com/rackerlabs/understack.git | ||
path: operators/mariadb-operator/ | ||
targetRevision: HEAD | ||
destination: | ||
server: "https://kubernetes.default.svc" | ||
namespace: mariadb-operator | ||
syncPolicy: | ||
automated: | ||
selfHeal: true | ||
syncOptions: | ||
- ServerSideApply=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,18 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: postgres-operator | ||
spec: | ||
project: operators | ||
source: | ||
repoURL: https://github.com/rackerlabs/understack.git | ||
path: operators/postgres-operator/ | ||
targetRevision: HEAD | ||
destination: | ||
server: "https://kubernetes.default.svc" | ||
namespace: postgres-operator | ||
syncPolicy: | ||
automated: | ||
selfHeal: true | ||
syncOptions: | ||
- ServerSideApply=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,18 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: rabbitmq-operator | ||
spec: | ||
project: operators | ||
source: | ||
repoURL: https://github.com/rackerlabs/understack.git | ||
path: operators/rabbitmq-operator/ | ||
targetRevision: HEAD | ||
destination: | ||
server: "https://kubernetes.default.svc" | ||
namespace: rabbitmq-system | ||
syncPolicy: | ||
automated: | ||
selfHeal: true | ||
syncOptions: | ||
- ServerSideApply=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,8 @@ | ||
# bootstrap | ||
|
||
These are the bare minimum steps required to bootstrap your cluster up to ArgoCD which will then deploy the applications. | ||
|
||
Each component is installed with a manifest referenced in a child directory. The components at this time are: | ||
|
||
- [cert-manager](https://cert-manager.io/docs/) | ||
- [ArgoCD](https://argo-cd.readthedocs.io/en/stable/) |
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,15 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
helmGlobals: | ||
chartHome: ../../charts/ | ||
|
||
helmCharts: | ||
- name: argo-cd | ||
includeCRDs: true | ||
namespace: argocd | ||
valuesFile: values.yaml | ||
releaseName: argo-cd | ||
version: 5.53.8 | ||
repo: https://argoproj.github.io/argo-helm |
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,15 @@ | ||
dex: | ||
# disable auth provider | ||
enabled: false | ||
notifications: | ||
# disable notifying users or GitHub | ||
enabled: false | ||
applicationSet: | ||
# disable the ApplicationSet controller to auto-generate Applications | ||
enabled: false | ||
server: | ||
extraArgs: | ||
- --insecure | ||
configs: | ||
cm: | ||
kustomize.buildOptions: --enable-helm |
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,6 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- https://github.com/cert-manager/cert-manager/releases/download/v1.13.3/cert-manager.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,7 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- cert-manager/ | ||
- argocd/ |
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,15 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
helmGlobals: | ||
chartHome: ../../charts/ | ||
|
||
helmCharts: | ||
- name: sealed-secrets | ||
includeCRDs: true | ||
namespace: kube-system | ||
valuesFile: values.yaml | ||
releaseName: sealed-secrets | ||
version: 2.13.4 | ||
repo: https://bitnami-labs.github.io/sealed-secrets |
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 @@ | ||
fullnameOverride: "sealed-secrets-controller" |
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,6 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- nautobot.yaml | ||
- openstack.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,5 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: nautobot |
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,8 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: openstack | ||
labels: | ||
kubernetes.io/metadata.name: openstack | ||
name: openstack |
Oops, something went wrong.