feat(cert-manager): update config for GatewayAPI
All checks were successful
Renovate / renovate (push) Successful in 1m32s
All checks were successful
Renovate / renovate (push) Successful in 1m32s
This commit is contained in:
parent
314bb570c9
commit
658fd51d3a
3 changed files with 62 additions and 2 deletions
|
@ -1,2 +1,4 @@
|
|||
extraArgs:
|
||||
- --feature-gates=ExperimentalGatewayAPISupport=true
|
||||
config:
|
||||
kind: ControllerConfiguration
|
||||
apiVersion: "controller.config.cert-manager.io/v1alpha1"
|
||||
enableGatewayAPI: true
|
||||
|
|
42
cnpg/hack/migrate.yaml
Normal file
42
cnpg/hack/migrate.yaml
Normal file
|
@ -0,0 +1,42 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: pgpass-migration
|
||||
type: Opaque
|
||||
stringData:
|
||||
.pgpass: |
|
||||
default-cluster-primary.postgres.svc:5432:umami:postgres:(g>_lO9v|?(B.4xiYt0}/+m)
|
||||
app-cluster-pooler-rw.postgres.svc:5432:umami:umami-ciWvqZ:aDvAwEWR7HZz8Ab
|
||||
---
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: migrate
|
||||
namespace: postgres
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: postgres
|
||||
image: postgres:16-alpine
|
||||
command:
|
||||
- /bin/ash
|
||||
- -c
|
||||
- pg_dump --create --clean --no-owner --no-privileges -h default-cluster-primary.postgres.svc -U postgres "${DB_NAME}" | psql -h app-cluster-pooler-rw.postgres.svc -U "${TARGET_USER}" "${DB_NAME}"
|
||||
env:
|
||||
- name: DB_NAME
|
||||
value: umami
|
||||
- name: TARGET_USER
|
||||
value: umami-ciWvqZ
|
||||
volumeMounts:
|
||||
- name: pgpass
|
||||
readOnly: true
|
||||
mountPath: /root/
|
||||
restartPolicy: Never
|
||||
volumes:
|
||||
- name: pgpass
|
||||
secret:
|
||||
defaultMode: 0700
|
||||
secretName: pgpass-migration
|
||||
backoffLimit: 4
|
16
postgres-operator/app.yaml
Normal file
16
postgres-operator/app.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: postgres-operator
|
||||
namespace: argo-system
|
||||
spec:
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
project: infrastructure
|
||||
source:
|
||||
path: postgres-operator
|
||||
repoURL: https://code.icb4dc0.de/infrastructure/apps.git
|
||||
targetRevision: HEAD
|
||||
syncPolicy:
|
||||
syncOptions:
|
||||
- ServerSideApply=true
|
Loading…
Add table
Reference in a new issue