fix: separate dex staging/prod configs
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
issuer: https://idp.oceanbox.io/dex
|
issuer: https://idp.oceanbox.io/dex
|
||||||
storage:
|
# storage:
|
||||||
type: postgres
|
# type: postgres
|
||||||
config:
|
# config:
|
||||||
host: dexdb-rw
|
# host: dexdb-rw
|
||||||
port: 5432
|
# port: 5432
|
||||||
database: app
|
# database: app
|
||||||
user: app
|
# user: app
|
||||||
password: e8Musi4IppwPDkSpfhjYBhNQEQtL2nEUl9LCL6X1cqDCxtW8UQko4wW0uiyU4myx
|
# password: e8Musi4IppwPDkSpfhjYBhNQEQtL2nEUl9LCL6X1cqDCxtW8UQko4wW0uiyU4myx
|
||||||
ssl:
|
# ssl:
|
||||||
mode: disable
|
# mode: disable
|
||||||
web:
|
web:
|
||||||
http: 127.0.0.1:5556
|
http: 127.0.0.1:5556
|
||||||
telemetry:
|
telemetry:
|
||||||
@@ -1,8 +1,19 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: ApplicationSet
|
||||||
metadata:
|
metadata:
|
||||||
name: dex-config
|
name: dex-config
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
generators:
|
||||||
|
- list:
|
||||||
|
elements:
|
||||||
|
- cluster: https://kubernetes.default.svc
|
||||||
|
env: prod
|
||||||
|
- cluster: https://kubernetes.default.svc
|
||||||
|
env: staging
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
name: '{{ env }}-dex-config'
|
||||||
spec:
|
spec:
|
||||||
project: atlantis
|
project: atlantis
|
||||||
destination:
|
destination:
|
||||||
@@ -11,4 +22,4 @@ spec:
|
|||||||
sources:
|
sources:
|
||||||
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
targetRevision: dev
|
targetRevision: dev
|
||||||
path: charts/dex/config
|
path: 'charts/dex/{{ env }}'
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
storage:
|
||||||
|
type: postgres
|
||||||
|
config:
|
||||||
|
host: dexdb-rw
|
||||||
|
port: 5432
|
||||||
|
database: prod
|
||||||
|
user: dex
|
||||||
|
password: e8Musi4IppwPDkSpfhjYBhNQEQtL2nEUl9LCL6X1cqDCxtW8UQko4wW0uiyU4myx
|
||||||
|
ssl:
|
||||||
|
mode: disable
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
# namePrefix: staging-
|
||||||
|
generatorOptions:
|
||||||
|
disableNameSuffixHash: true
|
||||||
|
secretGenerator:
|
||||||
|
- name: dex-config
|
||||||
|
files:
|
||||||
|
- config.yaml
|
||||||
@@ -8,12 +8,10 @@ spec:
|
|||||||
enableSuperuserAccess: true
|
enableSuperuserAccess: true
|
||||||
instances: 2
|
instances: 2
|
||||||
logLevel: info
|
logLevel: info
|
||||||
# bootstrap:
|
bootstrap:
|
||||||
# initdb:
|
initdb:
|
||||||
# database: archivistdb
|
database: prod
|
||||||
# owner: archivist
|
owner: dex
|
||||||
# secret:
|
|
||||||
# name: archivistdb-secret
|
|
||||||
storage:
|
storage:
|
||||||
pvcTemplate:
|
pvcTemplate:
|
||||||
accessModes:
|
accessModes:
|
||||||
@@ -25,26 +23,6 @@ spec:
|
|||||||
volumeMode: Filesystem
|
volumeMode: Filesystem
|
||||||
resizeInUseVolumes: true
|
resizeInUseVolumes: true
|
||||||
size: 1Gi
|
size: 1Gi
|
||||||
# superuserSecret:
|
|
||||||
# name: dexdb-secret
|
|
||||||
# ---
|
|
||||||
# apiVersion: v1
|
|
||||||
# data:
|
|
||||||
# # phei2beiRei0
|
|
||||||
# password: cGhlaTJiZWlSZWkwCg==
|
|
||||||
# username: YXJjaGl2aXN0Cg==
|
|
||||||
# kind: Secret
|
|
||||||
# metadata:
|
|
||||||
# name: archivistdb-secret
|
|
||||||
# type: kubernetes.io/basic-auth
|
|
||||||
# ---
|
|
||||||
# apiVersion: v1
|
|
||||||
# data:
|
|
||||||
# password: ZW4gdG8gdHJlIGZpcmUK
|
|
||||||
# kind: Secret
|
|
||||||
# metadata:
|
|
||||||
# name: dexdb-secret
|
|
||||||
# type: kubernetes.io/basic-auth
|
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
storage:
|
||||||
|
type: postgres
|
||||||
|
config:
|
||||||
|
host: dexdb-rw
|
||||||
|
port: 5432
|
||||||
|
database: staging
|
||||||
|
user: dex
|
||||||
|
password: e8Musi4IppwPDkSpfhjYBhNQEQtL2nEUl9LCL6X1cqDCxtW8UQko4wW0uiyU4myx
|
||||||
|
ssl:
|
||||||
|
mode: disable
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
# namePrefix: staging-
|
||||||
|
generatorOptions:
|
||||||
|
disableNameSuffixHash: true
|
||||||
|
secretGenerator:
|
||||||
|
- name: dex-config
|
||||||
|
files:
|
||||||
|
- config.yaml
|
||||||
Reference in New Issue
Block a user