Merge branch 'master' of https://gitea.freeleaps.mathmast.com/freeleaps/freeleaps-ops
This commit is contained in:
commit
7741d7ba4c
@ -11,9 +11,6 @@ data:
|
|||||||
SERVICE_API_ACCESS_PORT: {{ .Values.centralStorage.configs.serviceApiAccessPort | toString | b64enc }}
|
SERVICE_API_ACCESS_PORT: {{ .Values.centralStorage.configs.serviceApiAccessPort | toString | b64enc }}
|
||||||
MONGODB_NAME: {{ .Values.centralStorage.configs.mongodbName | b64enc | quote }}
|
MONGODB_NAME: {{ .Values.centralStorage.configs.mongodbName | b64enc | quote }}
|
||||||
MONGODB_PORT: {{ .Values.centralStorage.configs.mongodbPort | toString | b64enc }}
|
MONGODB_PORT: {{ .Values.centralStorage.configs.mongodbPort | toString | b64enc }}
|
||||||
MONGODB_URI: {{ .Values.centralStorage.configs.mongodbUri | b64enc | quote }}
|
|
||||||
AZURE_STORAGE_DOCUMENT_API_KEY: {{ .Values.centralStorage.configs.azureStorageDocumentApiKey | b64enc | quote }}
|
|
||||||
AZURE_STORAGE_DOCUMENT_API_ENDPOINT: {{ .Values.centralStorage.configs.azureStorageDocumentApiEndpoint | b64enc | quote }}
|
|
||||||
METRICS_ENABLED: {{ .Values.centralStorage.configs.metricsEnabled | default false | toString | b64enc }}
|
METRICS_ENABLED: {{ .Values.centralStorage.configs.metricsEnabled | default false | toString | b64enc }}
|
||||||
PROBES_ENABLED: {{ .Values.centralStorage.configs.probesEnabled | default false | toString | b64enc }}
|
PROBES_ENABLED: {{ .Values.centralStorage.configs.probesEnabled | default false | toString | b64enc }}
|
||||||
DEBUG_MODE: {{ .Values.centralStorage.configs.debugMode | default false | toString | b64enc }}
|
DEBUG_MODE: {{ .Values.centralStorage.configs.debugMode | default false | toString | b64enc }}
|
||||||
|
|||||||
@ -106,6 +106,17 @@ spec:
|
|||||||
name: central-storage-config
|
name: central-storage-config
|
||||||
key: {{ $key | snakecase | upper }}
|
key: {{ $key | snakecase | upper }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
# Inject secrets from FreeleapsSecret object
|
||||||
|
{{- if .Values.centralStorage.secrets }}
|
||||||
|
{{ $targetSecretName := .Values.centralStorage.secrets.target.name }}
|
||||||
|
{{- range .Values.centralStorage.secrets.data }}
|
||||||
|
- name: {{ .key | snakecase | upper }}
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ $targetSecretName }}
|
||||||
|
key: {{ .key }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.logIngest.enabled }}
|
{{- if .Values.logIngest.enabled }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: app-logs
|
- name: app-logs
|
||||||
|
|||||||
@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: freeleaps.com/v1alpha1
|
||||||
|
kind: FreeleapsSecret
|
||||||
|
metadata:
|
||||||
|
name: freeleaps-central-storage-alpha-secrets
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
spec:
|
||||||
|
secretStoreRef:
|
||||||
|
kind: {{ .Values.centralStorage.secrets.secretStoreRef.kind }}
|
||||||
|
name: {{ .Values.centralStorage.secrets.secretStoreRef.name }}
|
||||||
|
target:
|
||||||
|
name: {{ .Values.centralStorage.secrets.target.name }}
|
||||||
|
creationPolicy: {{ .Values.centralStorage.secrets.target.creationPolicy }}
|
||||||
|
refreshInterval: {{ .Values.centralStorage.secrets.refreshInterval }}
|
||||||
|
data:
|
||||||
|
{{- range .Values.centralStorage.secrets.data }}
|
||||||
|
- secretKey: {{ .key }}
|
||||||
|
remoteRef:
|
||||||
|
key: {{ .remoteRef.key }}
|
||||||
|
type: {{ .remoteRef.type }}
|
||||||
|
{{- end }}
|
||||||
@ -82,12 +82,30 @@ centralStorage:
|
|||||||
serviceApiAccessPort: 8005
|
serviceApiAccessPort: 8005
|
||||||
mongodbName: freeleaps2
|
mongodbName: freeleaps2
|
||||||
mongodbPort: 27017
|
mongodbPort: 27017
|
||||||
mongodbUri: mongodb+srv://jetli:8IHKx6dZK8BfugGp@freeleaps2.hanbj.mongodb.net/
|
|
||||||
azureStorageDocumentApiKey: xbiFtFeQ6v5dozgVM99fZ9huUomL7QcLu6s0y8zYHtIXZ8XdneKDMcg4liQr/9oNlVoRFcZhWjLY+ASt9cjICQ==
|
|
||||||
azureStorageDocumentApiEndpoint: https://freeleaps1document.blob.core.windows.net/
|
|
||||||
metricsEnabled: 'false'
|
metricsEnabled: 'false'
|
||||||
probesEnabled: 'true'
|
probesEnabled: 'true'
|
||||||
debugMode: 'false'
|
debugMode: 'false'
|
||||||
|
secrets:
|
||||||
|
secretStoreRef:
|
||||||
|
kind: FreeleapsSecretStore
|
||||||
|
name: freeleaps-main-secret-store
|
||||||
|
target:
|
||||||
|
name: "freeleaps-central-storage-secrets"
|
||||||
|
creationPolicy: "Owner"
|
||||||
|
refreshInterval: 30s
|
||||||
|
data:
|
||||||
|
- key: mongodbUri
|
||||||
|
remoteRef:
|
||||||
|
key: "freeleaps-alpha-mongodb-uri"
|
||||||
|
type: Secret
|
||||||
|
- key: azureStorageDocumentApiKey
|
||||||
|
remoteRef:
|
||||||
|
key: "freeleaps-alpha-azure-storage-document-api-key"
|
||||||
|
type: Secret
|
||||||
|
- key: azureStorageDocumentApiEndpoint
|
||||||
|
remoteRef:
|
||||||
|
key: "freeleaps-alpha-azure-storage-document-api-endpoint"
|
||||||
|
type: Secret
|
||||||
vpa:
|
vpa:
|
||||||
minAllowed:
|
minAllowed:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user