Merge branch 'nixidy' of gitlab.com:oceanbox/manifests into nixidy

This commit is contained in:
2024-12-20 09:16:25 +01:00
7 changed files with 138 additions and 34 deletions
+39
View File
@@ -0,0 +1,39 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: prod-openfga
namespace: argocd
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: openfga
server: https://kubernetes.default.svc
project: aux
# ignoreDifferences:
# - group: apps
# kind: StatefulSet
# jsonPointers:
# - /spec/persistentVolumeClaimRetentionPolicy
syncPolicy:
managedNamespaceMetadata:
labels:
component: aux
syncOptions:
- CreateNamespace=true
- ApplyOutOfSyncOnly=true
automated:
prune: true
selfHeal: true
sources:
- repoURL: https://openfga.github.io/helm-charts
targetRevision: 0.2.19
chart: openfga
helm:
valueFiles:
- $values/values/openfga/values-prod.yaml
- repoURL: https://gitlab.com/oceanbox/manifests.git
targetRevision: nixidy
ref: values
@@ -33,8 +33,7 @@ spec:
chart: openfga chart: openfga
helm: helm:
valueFiles: valueFiles:
- $values/values/openfga/values.yaml
- $values/values/openfga/values-staging.yaml - $values/values/openfga/values-staging.yaml
- repoURL: https://gitlab.com/oceanbox/manifests.git - repoURL: https://gitlab.com/oceanbox/manifests.git
targetRevision: main targetRevision: nixidy
ref: values ref: values
+1 -1
View File
@@ -65,7 +65,7 @@ ingress:
- path: /job - path: /job
pathType: ImplementationSpecific pathType: ImplementationSpecific
- path: /events - path: /events
pathType: Implementationspecific pathType: ImplementationSpecific
- path: /metrics - path: /metrics
pathType: ImplementationSpecific pathType: ImplementationSpecific
- host: atlas.oceanbox.io - host: atlas.oceanbox.io
+8 -9
View File
@@ -1,20 +1,19 @@
apiVersion: v1 apiVersion: v1
stringData: stringData:
postgres-password: tidings-guise-sternness-yummy postgres-password: blT6zzv37KyFvzb1Ct3bhfAwPxhTG2fBO1EiIASQWI4wnEOB8AOWvmVa2sogGexr
uri: postgres://postgres:tidings-guise-sternness-yummy@staging-openfga-postgresql.idp.svc.cluster.local:5432/postgres?sslmode=disable uri: postgres://postgres:blT6zzv37KyFvzb1Ct3bhfAwPxhTG2fBO1EiIASQWI4wnEOB8AOWvmVa2sogGexr@prod-openfga-rw.openfga.svc.cluster.local:5432/postgres?sslmode=disable
kind: Secret kind: Secret
metadata: metadata:
name: staging-openfga-postgresql name: prod-openfga-postgresql
namespace: idp namespace: openfga
type: Opaque type: Opaque
--- ---
apiVersion: v1 apiVersion: v1
stringData: stringData:
postgres-password: unaltered-astute-raven-sitter postgres-password: iAnMHs3eEuQM0D4jeAP1dwEoLWUBSwNXwhBuPDOgmfoeZ58iV0zogQ77U3GNUbwa
uri: postgres://postgres:unaltered-astute-raven-sitter@prod-openfga-postgresql.idp.svc.cluster.local:5432/postgres?sslmode=disable uri: postgres://postgres:iAnMHs3eEuQM0D4jeAP1dwEoLWUBSwNXwhBuPDOgmfoeZ58iV0zogQ77U3GNUbwa@staging-openfga-rw.openfga.svc.cluster.local:5432/postgres?sslmode=disable
kind: Secret kind: Secret
metadata: metadata:
name: prod-openfga-postgresql name: staging-openfga-postgresql
namespace: idp namespace: openfga
type: Opaque type: Opaque
+34 -8
View File
@@ -3,19 +3,31 @@ replicaCount: 2
datastore: datastore:
engine: postgres engine: postgres
uriSecret: prod-openfga-postgresql uriSecret: prod-openfga-postgresql
migrationType: initContainer
postgresql: postgresql:
enabled: true enabled: false
auth:
existingSecret: prod-openfga-postgresql playground:
secretKeys: enabled: false
userPasswordKey: postgres-password
telemetry:
metrics:
enabled: true
serviceMonitor:
enabled: true
enableRPCHistograms: true
trace:
enabled: true
otlp:
endpoint: opentelemetry-collector.otel.svc.cluster.local:4317
sampleRatio: 0.1
ingress: ingress:
enabled: true enabled: true
className: nginx className: nginx
annotations: annotations:
cert-manager.io/cluster-issuer: letsencrypt-staging cert-manager.io/cluster-issuer: letsencrypt-production
nginx.ingress.kubernetes.io/ssl-redirect: "true" nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/whitelist-source-range: 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 nginx.ingress.kubernetes.io/whitelist-source-range: 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
hosts: hosts:
@@ -24,8 +36,22 @@ ingress:
- path: / - path: /
pathType: ImplementationSpecific pathType: ImplementationSpecific
tls: tls:
- secretName: staging-openfga-tls - secretName: prod-openfga-tls
hosts: hosts:
- openfga.srv.oceanbox.io - openfga.srv.oceanbox.io
extraObjects:
- apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: prod-openfga
namespace: openfga
spec:
instances: 1
# imageName: ghcr.io/cloudnative-pg/postgres:15-3.3
storage:
resizeInUseVolumes: true
size: 10Gi
backup:
retentionPolicy: 60d
target: prefer-standby
+55 -6
View File
@@ -3,19 +3,31 @@ replicaCount: 1
datastore: datastore:
engine: postgres engine: postgres
uriSecret: staging-openfga-postgresql uriSecret: staging-openfga-postgresql
migrationType: initContainer
postgresql: postgresql:
enabled: true enabled: false
auth:
existingSecret: staging-openfga-postgresql playground:
secretKeys: enabled: false
userPasswordKey: postgres-password
telemetry:
metrics:
enabled: true
serviceMonitor:
enabled: true
enableRPCHistograms: true
trace:
enabled: true
otlp:
endpoint: opentelemetry-collector.otel.svc.cluster.local:4317
sampleRatio: 0.1
ingress: ingress:
enabled: true enabled: true
className: nginx className: nginx
annotations: annotations:
cert-manager.io/cluster-issuer: letsencrypt-staging cert-manager.io/cluster-issuer: letsencrypt-production
nginx.ingress.kubernetes.io/ssl-redirect: "true" nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/whitelist-source-range: 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 nginx.ingress.kubernetes.io/whitelist-source-range: 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
hosts: hosts:
@@ -27,3 +39,40 @@ ingress:
- secretName: staging-openfga-tls - secretName: staging-openfga-tls
hosts: hosts:
- openfga.dev.oceanbox.io - openfga.dev.oceanbox.io
extraObjects:
- apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: staging-openfga
namespace: openfga
spec:
instances: 1
# imageName: ghcr.io/cloudnative-pg/postgres:15-3.3
storage:
resizeInUseVolumes: true
size: 10Gi
backup:
retentionPolicy: 60d
target: prefer-standby
bootstrap:
pg_basebackup:
database: ""
owner: ""
source: openfga
enableSuperuserAccess: true
externalClusters:
- name: openfga
connectionParameters:
host: prod-openfga-rw.openfga
sslmode: verify-full
user: streaming_replica
sslCert:
key: tls.crt
name: prod-openfga-replication
sslKey:
key: tls.key
name: prod-openfga-replication
sslRootCert:
key: ca.crt
name: prod-openfga-ca
-8
View File
@@ -1,8 +0,0 @@
# fullnameOverride: openfga
playground:
enabled: false
port: 3000