-
Notifications
You must be signed in to change notification settings - Fork 7
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 #420 from mojaloop/feature/db-refactoring
Feature/db refactoring
- Loading branch information
Showing
49 changed files
with
1,516 additions
and
1,640 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
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: | ||
- virtual-services.yaml | ||
- testvsjob.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: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: curl-test-zitadel-vs | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: curl-test | ||
image: curlimages/curl:latest | ||
command: ["sh"] | ||
args: | ||
[ | ||
"-c", | ||
"exit_status=$(curl -v -o /dev/null -w '%{http_code}' https://zitadel.${ARGOCD_ENV_zitadel_dns_subdomain}); if [ $exit_status -ne 200 ] && [ $exit_status -ne 302 ]; then exit 1; fi;", | ||
] | ||
restartPolicy: OnFailure | ||
backoffLimit: 10 |
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
gitops/applications/overlays/rdbms_provider/cockroach/db/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,3 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: [] |
File renamed without changes.
20 changes: 20 additions & 0 deletions
20
gitops/applications/overlays/rdbms_provider/cockroach/zitadel-pre/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,20 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- zitadel-cert-job.yaml | ||
|
||
helmCharts: | ||
- name: cockroachdb | ||
releaseName: zitadel-db | ||
version: ${ARGOCD_ENV_cockroachdb_helm_version} | ||
repo: https://charts.cockroachdb.com/ | ||
valuesFile: cockroach-db-values.yaml | ||
namespace: ${ARGOCD_ENV_zitadel_namespace} | ||
|
||
patches: | ||
- target: | ||
kind: CronJob | ||
patch: | | ||
- op: replace | ||
path: /apiVersion | ||
value: batch/v1 |
File renamed without changes.
9 changes: 9 additions & 0 deletions
9
gitops/applications/overlays/rdbms_provider/cockroach/zitadel/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,9 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
helmCharts: | ||
- name: zitadel | ||
releaseName: zitadel | ||
version: ${ARGOCD_ENV_zitadel_helm_version} | ||
repo: https://charts.zitadel.com | ||
valuesFile: zitadel-values.yaml | ||
namespace: ${ARGOCD_ENV_zitadel_namespace} |
44 changes: 44 additions & 0 deletions
44
gitops/applications/overlays/rdbms_provider/cockroach/zitadel/zitadel-values.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,44 @@ | ||
replicaCount: ${ARGOCD_ENV_zitadel_replicas} | ||
zitadel: | ||
masterkeySecretName: masterkey | ||
debug: | ||
enabled: false | ||
configmapConfig: | ||
Log: | ||
Level: ${ARGOCD_ENV_zitadel_log_level} | ||
ExternalPort: 443 | ||
ExternalSecure: true | ||
ExternalDomain: zitadel.${ARGOCD_ENV_zitadel_dns_subdomain} | ||
TLS: | ||
Enabled: false | ||
FirstInstance: | ||
Org: | ||
Machine: | ||
Machine: | ||
Username: zitadel-admin-sa | ||
Name: Admin | ||
MachineKey: | ||
ExpirationDate: "2028-01-01T00:00:00Z" | ||
# Type: 1 means JSON. This is currently the only supported machine key type. | ||
Type: 1 | ||
Database: | ||
Cockroach: | ||
Host: zitadel-db-cockroachdb-public | ||
User: | ||
SSL: | ||
Mode: verify-full | ||
Admin: | ||
SSL: | ||
Mode: verify-full | ||
|
||
secretConfig: | ||
Database: | ||
Cockroach: | ||
User: | ||
Password: xyz | ||
Admin: | ||
Password: abc | ||
|
||
dbSslCaCrtSecret: zitadel-db-cockroachdb-ca-secret | ||
dbSslAdminCrtSecret: zitadel-db-cockroachdb-client-secret | ||
dbSslUserCrtSecret: zitadel-db-cockroachdb-zitadel-secret |
9 changes: 9 additions & 0 deletions
9
gitops/applications/overlays/rdbms_provider/percona/db/db-external-name-service.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,9 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: ${ARGOCD_ENV_externalservice_name} | ||
namespace: "${ARGOCD_ENV_namespace}" | ||
spec: | ||
externalName: ${ARGOCD_ENV_dbdeploy_name_prefix}-pgbouncer.${ARGOCD_ENV_namespace}.svc.cluster.local | ||
sessionAffinity: None | ||
type: ExternalName |
Oops, something went wrong.