Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: craft a gitops focused installation #18

Merged
merged 10 commits into from
Apr 8, 2024
23 changes: 23 additions & 0 deletions apps/app-of-apps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: app-of-apps
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: argocd
server: https://kubernetes.default.svc
project: default
source:
path: clusters/${DEPLOY_NAME}
repoURL: ${UC_DEPLOY_GIT_URL}
targetRevision: main
directory:
recurse: true
syncPolicy:
automated:
prune: true
selfHeal: true
2 changes: 2 additions & 0 deletions apps/components/argo-events.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ spec:
syncPolicy:
automated:
selfHeal: true
syncOptions:
- CreateNamespace=true
2 changes: 2 additions & 0 deletions apps/components/argo-workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ spec:
syncPolicy:
automated:
selfHeal: true
syncOptions:
- CreateNamespace=true
2 changes: 2 additions & 0 deletions apps/components/argocd-understack-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ spec:
server: '*'
- namespace: 'argo-events'
server: '*'
- namespace: 'dex'
server: '*'
clusterResourceWhitelist:
- group: '*'
kind: '*'
15 changes: 11 additions & 4 deletions apps/components/dexidp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,20 @@ metadata:
name: dexidp
spec:
project: understack
source:
repoURL: https://github.com/rackerlabs/understack.git
path: components/13-dexidp/
targetRevision: HEAD
sources:
- repoURL: https://github.com/rackerlabs/understack.git
path: components/13-dexidp/
targetRevision: HEAD
- repoURL: ${UC_DEPLOY_GIT_URL}
path: secrets/${DEPLOY_NAME}/
targetRevision: HEAD
directory:
include: secret-nautobot-sso-dex.yaml
destination:
server: "https://kubernetes.default.svc"
namespace: dex
syncPolicy:
automated:
selfHeal: true
syncOptions:
- CreateNamespace=true
33 changes: 29 additions & 4 deletions apps/components/ironic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,38 @@ metadata:
name: ironic
spec:
project: understack
source:
repoURL: https://github.com/rackerlabs/understack.git
path: components/13-ironic/
targetRevision: HEAD
sources:
- repoURL: https://github.com/rackerlabs/understack.git
path: components/13-ironic/
targetRevision: HEAD
directory:
exclude: kustomization.yaml
recurse: false
ref: understack
- repoURL: https://tarballs.opendev.org/openstack/openstack-helm/
chart: ironic
targetRevision: 0.2.10
helm:
releaseName: ironic
valueFiles:
- $understack/components/openstack-2023.1-jammy.yaml
- $understack/components/13-ironic/aio-values.yaml
- $secrets/secrets/${DEPLOY_NAME}/secret-openstack.yaml
- repoURL: ${UC_DEPLOY_GIT_URL}
path: secrets/${DEPLOY_NAME}/
targetRevision: HEAD
directory:
include: 'secret-ironic-*.yaml'
ref: secrets
destination:
server: "https://kubernetes.default.svc"
namespace: openstack
syncPolicy:
automated:
selfHeal: true
syncOptions:
- CreateNamespace=true
managedNamespaceMetadata:
labels:
kubernetes.io/metadata.name: openstack
name: openstack
43 changes: 39 additions & 4 deletions apps/components/keystone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,48 @@ metadata:
name: keystone
spec:
project: understack
source:
repoURL: https://github.com/rackerlabs/understack.git
path: components/10-keystone/
targetRevision: HEAD
sources:
- repoURL: https://github.com/rackerlabs/understack.git
path: components/10-keystone/
targetRevision: HEAD
directory:
exclude: kustomization.yaml
recurse: false
ref: understack
- repoURL: https://tarballs.opendev.org/openstack/openstack-helm/
chart: keystone
targetRevision: 0.3.7
helm:
releaseName: keystone
valueFiles:
- $understack/components/openstack-2023.1-jammy.yaml
- $understack/components/10-keystone/aio-values.yaml
- $secrets/secrets/${DEPLOY_NAME}/secret-openstack.yaml
- repoURL: ${UC_DEPLOY_GIT_URL}
path: secrets/${DEPLOY_NAME}/
targetRevision: HEAD
directory:
include: 'secret-keystone-*.yaml'
ref: secrets
ignoreDifferences:
- kind: Secret
name: keystone-fernet-keys
jqPathExpressions:
- .data
- kind: Secret
name: keystone-credential-keys
jqPathExpressions:
- .data
destination:
server: "https://kubernetes.default.svc"
namespace: openstack
syncPolicy:
automated:
selfHeal: true
syncOptions:
- CreateNamespace=true
- RespectIgnoreDifferences=true
managedNamespaceMetadata:
labels:
kubernetes.io/metadata.name: openstack
name: openstack
2 changes: 0 additions & 2 deletions apps/components/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ namespace: argocd

resources:
- argocd-understack-project.yaml
- namespaces.yaml
- mariadb.yaml
- rabbitmq-cluster.yaml
- memcached.yaml
- postgres-db.yaml
- nautobot-redis.yaml
- nautobot.yaml
- keystone.yaml
- argo-workflows.yaml
Expand Down
15 changes: 11 additions & 4 deletions apps/components/mariadb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,20 @@ metadata:
name: mariadb
spec:
project: understack
source:
repoURL: https://github.com/rackerlabs/understack.git
path: components/03-mariadb/
targetRevision: HEAD
sources:
- repoURL: https://github.com/rackerlabs/understack.git
path: components/03-mariadb/
targetRevision: HEAD
- repoURL: ${UC_DEPLOY_GIT_URL}
path: secrets/${DEPLOY_NAME}/
targetRevision: HEAD
directory:
include: secret-mariadb.yaml
destination:
server: "https://kubernetes.default.svc"
namespace: openstack
syncPolicy:
automated:
selfHeal: true
syncOptions:
- CreateNamespace=true
2 changes: 2 additions & 0 deletions apps/components/memcached.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ spec:
syncPolicy:
automated:
selfHeal: true
syncOptions:
- CreateNamespace=true
16 changes: 0 additions & 16 deletions apps/components/namespaces.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions apps/components/nautobot-redis.yaml

This file was deleted.

34 changes: 30 additions & 4 deletions apps/components/nautobot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,39 @@ metadata:
name: nautobot
spec:
project: understack
source:
repoURL: https://github.com/rackerlabs/understack.git
path: components/09-nautobot/
targetRevision: HEAD
sources:
- repoURL: https://github.com/rackerlabs/understack.git
path: components/08-nautobot-redis/
targetRevision: HEAD
- repoURL: https://github.com/rackerlabs/understack.git
path: components/09-nautobot/
targetRevision: HEAD
kustomize:
patches:
- target:
kind: Ingress
name: nautobot
patch: |-
- op: replace
path: /spec/rules/0/host
value: nautobot.${DNS_ZONE}
- op: replace
path: /spec/tls/0/hosts/0
value: nautobot.${DNS_ZONE}
- op: replace
path: '/metadata/annotations/cert-manager.io~1cluster-issuer'
value: ${DEPLOY_NAME}-cluster-issuer
- repoURL: ${UC_DEPLOY_GIT_URL}
path: secrets/${DEPLOY_NAME}/
targetRevision: HEAD
directory:
include: 'secret-nautobot*.yaml'
exclude: secret-nautobot-sso-dex.yaml
destination:
server: "https://kubernetes.default.svc"
namespace: nautobot
syncPolicy:
automated:
selfHeal: true
syncOptions:
- CreateNamespace=true
2 changes: 2 additions & 0 deletions apps/components/postgres-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ spec:
syncPolicy:
automated:
selfHeal: true
syncOptions:
- CreateNamespace=true
2 changes: 2 additions & 0 deletions apps/components/rabbitmq-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ spec:
syncPolicy:
automated:
selfHeal: true
syncOptions:
- CreateNamespace=true
32 changes: 32 additions & 0 deletions apps/operators/cert-manager.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: cert-manager
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: operators
sources:
- chart: cert-manager
repoURL: https://charts.jetstack.io
targetRevision: 1.*
helm:
releaseName: cert-manager
valuesObject:
installCRDs: true
- repoURL: ${UC_DEPLOY_GIT_URL}
path: secrets/${DEPLOY_NAME}/
targetRevision: HEAD
directory:
include: cluster-issuer.yaml
destination:
namespace: cert-manager
server: https://kubernetes.default.svc
syncPolicy:
automated:
prune: false
selfHeal: true
syncOptions:
- CreateNamespace=true
1 change: 1 addition & 0 deletions apps/operators/mariadb-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ spec:
automated:
selfHeal: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
1 change: 1 addition & 0 deletions apps/operators/messaging-topology-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ spec:
automated:
selfHeal: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
1 change: 1 addition & 0 deletions apps/operators/postgres-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ spec:
automated:
selfHeal: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
1 change: 1 addition & 0 deletions apps/operators/rabbitmq-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ spec:
automated:
selfHeal: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
8 changes: 0 additions & 8 deletions components/00-namespaces/argo-workflows.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions components/00-namespaces/dexidp.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions components/00-namespaces/kustomization.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions components/00-namespaces/nautobot.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions components/00-namespaces/openstack.yaml

This file was deleted.

Loading
Loading