generated from onedr0p/cluster-template
-
-
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.
- Loading branch information
Showing
18 changed files
with
153 additions
and
8 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 |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
#- realms | ||
# - realms | ||
- authentik |
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,3 +1,5 @@ | ||
# Database | ||
|
||
For this instance I am using [cloudnative-pg](https://github.com/cloudnative-pg/cloudnative-pg) for the postgres database. The backing storage will just be `local-path` as it is kind of wasteful to use ceph for backing storage since the cnpg operator will be replicating it anyway. Backups will be done into a ceph-rgw object-store. For this an `ObjectBucketClaim` is created. The `rook-ceph-operator` will provision the bucket and then add a configMap and secret to the bucket namespace which will contain credentials that can be used by the backup process. See [ObjectBucketClaim Documentation](https://rook.io/docs/rook/v1.9/Storage-Configuration/Object-Storage-RGW/ceph-object-bucket-claim/) | ||
For this instance I am using [cloudnative-pg](https://github.com/cloudnative-pg/cloudnative-pg) for the postgres database. The backing storage will just be `local-path` as it is kind of wasteful to use ceph for backing storage since the cnpg operator will be replicating it anyway. | ||
|
||
Backups will be done into a ceph-rgw object-store. For this an `ObjectBucketClaim` is created. The `rook-ceph-operator` will provision the bucket and then add a configMap and secret to the bucket namespace which will contain credentials that can be used by the backup process. See [ObjectBucketClaim Documentation](https://rook.io/docs/rook/v1.9/Storage-Configuration/Object-Storage-RGW/ceph-object-bucket-claim/) |
5 changes: 5 additions & 0 deletions
5
cluster/apps/auth/realms/bloopysphere/db/alerts/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,5 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ./prometheus-rule.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
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
cluster/apps/auth/realms/bloopysphere/db/cluster/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,5 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ./cnpg-v15.yaml |
5 changes: 5 additions & 0 deletions
5
cluster/apps/auth/realms/bloopysphere/db/config/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,5 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ./secret.sops.yaml |
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,95 @@ | ||
--- | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1 | ||
kind: Kustomization | ||
metadata: | ||
name: cluster-iam-keycloak-db-config | ||
namespace: flux-system | ||
labels: | ||
substitution.flux.home.arpa/enabled: "false" | ||
spec: | ||
interval: 10m | ||
path: "./cluster/apps/auth/realms/bloopysphere/db/config" | ||
prune: true | ||
sourceRef: | ||
kind: GitRepository | ||
name: flux-system | ||
wait: true | ||
healthChecks: | ||
- apiVersion: v1 | ||
kind: Secret | ||
name: kc-postgres-user | ||
--- | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1 | ||
kind: Kustomization | ||
metadata: | ||
name: cluster-iam-keycloak-db-backup | ||
namespace: flux-system | ||
labels: | ||
substitution.flux.home.arpa/enabled: "false" | ||
spec: | ||
interval: 10m | ||
path: "./cluster/apps/auth/realms/bloopysphere/db/backup" | ||
prune: true | ||
sourceRef: | ||
kind: GitRepository | ||
name: flux-system | ||
wait: true | ||
dependsOn: | ||
- name: cluster-core-rook-ceph-cluster | ||
- name: cluster-apps-cloudnative-pg | ||
healthChecks: | ||
- apiVersion: objectbucket.io/v1alpha1 | ||
kind: ObjectBucketClaim | ||
name: cnpg-kc-backup-v1 | ||
- apiVersion: postgresql.cnpg.io/v1 | ||
kind: ScheduledBackup | ||
name: backup-schedule-kc-postgres-v1 | ||
--- | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1 | ||
kind: Kustomization | ||
metadata: | ||
name: cluster-iam-keycloak-db-cluster | ||
namespace: flux-system | ||
labels: | ||
substitution.flux.home.arpa/enabled: "false" | ||
spec: | ||
interval: 10m | ||
path: "./cluster/apps/auth/realms/bloopysphere/db/cluster" | ||
prune: true | ||
sourceRef: | ||
kind: GitRepository | ||
name: flux-system | ||
wait: true | ||
dependsOn: | ||
- name: cluster-apps-cloudnative-pg | ||
- name: cluster-apps-local-path-provisioner | ||
- name: cluster-iam-keycloak-db-config | ||
# Needed for rook-ceph bucket credentials | ||
- name: cluster-iam-keycloak-db-backup | ||
healthChecks: | ||
- apiVersion: postgresql.cnpg.io/v1 | ||
kind: Cluster | ||
name: kc-postgres | ||
--- | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1 | ||
kind: Kustomization | ||
metadata: | ||
name: cluster-iam-keycloak-db-alerts | ||
namespace: flux-system | ||
labels: | ||
substitution.flux.home.arpa/enabled: "false" | ||
spec: | ||
interval: 10m | ||
path: "./cluster/apps/auth/realms/bloopysphere/db/alerts" | ||
prune: true | ||
sourceRef: | ||
kind: GitRepository | ||
name: flux-system | ||
wait: true | ||
dependsOn: | ||
- name: kube-prometheus-stack-crds | ||
- name: cluster-iam-keycloak-db-cluster | ||
healthChecks: | ||
- apiVersion: monitoring.coreos.com/v1 | ||
kind: PrometheusRule | ||
name: kc-cnpg-rules |
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
5 changes: 5 additions & 0 deletions
5
cluster/apps/auth/realms/bloopysphere/keycloak/instance/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,5 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ./keycloak.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,22 @@ | ||
--- | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1 | ||
kind: Kustomization | ||
metadata: | ||
name: cluster-iam-keycloak-instance | ||
namespace: flux-system | ||
labels: | ||
substitution.flux.home.arpa/enabled: "true" | ||
spec: | ||
interval: 10m | ||
path: "./cluster/apps/auth/realms/bloopysphere/instance" | ||
prune: true | ||
sourceRef: | ||
kind: GitRepository | ||
name: flux-system | ||
wait: true | ||
dependsOn: | ||
- name: cluster-iam-keycloak-db-cluster | ||
healthChecks: | ||
- apiVersion: k8s.keycloak.org/v2alpha1 | ||
kind: Keycloak | ||
name: kc-instance |
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 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