add new secrets
This commit is contained in:
parent
6928fc40f4
commit
8b8ca5fe9e
10 changed files with 84 additions and 19 deletions
|
|
@ -49,7 +49,7 @@ spec:
|
|||
- name: DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: news-user-password
|
||||
name: news-app-password
|
||||
key: password
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ spec:
|
|||
- name: DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: news-user-password
|
||||
name: news-app-password
|
||||
key: password
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
|
|
|
|||
|
|
@ -14,4 +14,5 @@ resources:
|
|||
- gemma-configmap.yaml
|
||||
- analyst-cronjob.yaml
|
||||
- ollama-storage.yaml
|
||||
- news-app-password.yaml
|
||||
|
||||
|
|
|
|||
24
apps/base/customer1/news_bot/news-app-password.yaml
Normal file
24
apps/base/customer1/news_bot/news-app-password.yaml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
apiVersion: v1
|
||||
data:
|
||||
password: ENC[AES256_GCM,data:d2MAWwaRAWBsz+/VNV46whVTqBY=,iv:B7Ho0E6Xkj9jQvUBM0EfwoMzdBKaS4l85KXkyO52xgM=,tag:WpdaN5bW9FQjpyMChTAR7w==,type:str]
|
||||
username: ENC[AES256_GCM,data:ZofCHAydBukvd0NK,iv:QkEbrjtD1NTCZdVDbFZsKzC6rh4paPSSc/jRupOnl5s=,tag:T/aeQY13Gi5hOs9l8eXaIg==,type:str]
|
||||
kind: Secret
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
name: news-app-password
|
||||
namespace: customer1
|
||||
sops:
|
||||
age:
|
||||
- recipient: age1uuxf066xuuqgvjppxfcmqkwfcufnwp3wcwnl9h20g9k4l8nkw9jsaungf7
|
||||
enc: |
|
||||
-----BEGIN AGE ENCRYPTED FILE-----
|
||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBNMTd4bnRsdnRQeXJ0RXBv
|
||||
a3I1RmVheWx4S3dCVzI2Z0tDRnI0U0EzUFVFCnlOaUpGOHNTYUtHZ1g2MmpRT1M3
|
||||
YXJBUGFxWGNDUHlONFhpckt5QXV5MEUKLS0tIDdKeEpTSGdwQXZrUzRFWlQxZWtx
|
||||
UEVZZzJRWjlmWFpLUUZnSVhxZWRsZUkKeEM9QZTc2dxD6JWJveid8yz9lBeTMsWy
|
||||
3omHFX2Ej5XAcM9RemiGHwclp2UBL8++5JeJlnVTbvNn+IkeH3gu5g==
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
lastmodified: "2026-03-22T19:23:13Z"
|
||||
mac: ENC[AES256_GCM,data:1Ddf5/F620muz4gDcGRaSAGFD4zKFyVEvc3uqPppG8NMdwMXhOrTMmkb2TXkpMcqdnt/sbX5hD9me+FHZ0yvttlf27uc/bI+RRoJDo9b3MJd6OkBB9YPTtPZ7WJXmBcfejPAHo8RSoM3Q9Y8EjbTxUBNfi7qLdMK/l3rW9lonhg=,iv:qQU5EhgkSuAdV0Rd9nr/c0wJhWgFK9IWSetLwfmA9Xs=,tag:7wSkcR8j6dBz+6WqSwIAWQ==,type:str]
|
||||
encrypted_regex: ^(data|stringData)$
|
||||
version: 3.11.0
|
||||
|
|
@ -17,11 +17,11 @@ spec:
|
|||
|
||||
resources:
|
||||
requests:
|
||||
memory: "500Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1Gi"
|
||||
cpu: "500m"
|
||||
limits:
|
||||
memory: "2Gi"
|
||||
cpu: "1000m"
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: scrapy-config
|
||||
|
|
@ -29,7 +29,7 @@ spec:
|
|||
- name: DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: news-user-password
|
||||
name: news-app-password
|
||||
key: password
|
||||
volumeMounts:
|
||||
- name: url-storage
|
||||
|
|
|
|||
|
|
@ -26,6 +26,6 @@ spec:
|
|||
- name: DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: news-user-password
|
||||
name: news-app-password
|
||||
key: password
|
||||
restartPolicy: OnFailure
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ metadata:
|
|||
namespace: customer1
|
||||
|
||||
spec:
|
||||
serviceAccountName: cnpg-backup-sa
|
||||
managed:
|
||||
roles:
|
||||
- name: customer1
|
||||
|
|
@ -16,7 +17,7 @@ spec:
|
|||
ensure: present
|
||||
login: true
|
||||
passwordSecret:
|
||||
name: news-user-password
|
||||
name: news-app-password
|
||||
instances: 3
|
||||
imageName: ghcr.io/cloudnative-pg/postgresql:15.2
|
||||
storage:
|
||||
|
|
@ -30,7 +31,7 @@ spec:
|
|||
serviceAccountTemplate:
|
||||
metadata:
|
||||
annotations:
|
||||
iam.gke.io/gcp-service-account: [email protected]
|
||||
iam.gke.io/gcp-service-account: [email protected]
|
||||
|
||||
backup:
|
||||
barmanObjectStore:
|
||||
|
|
|
|||
Loading…
Reference in a new issue