mirror of
https://github.com/suyiiyii/SIMS.git
synced 2025-07-21 11:03:01 +08:00
feat: add secret.yaml template for storing sensitive data
This commit adds a new file, secret.yaml, which is a template for storing sensitive data such as database credentials and JWT secret. The template includes placeholders for the values, which will be populated during deployment.
This commit is contained in:
parent
bf67d64594
commit
5bb00dc24e
12
templates/secret.yaml
Normal file
12
templates/secret.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
data:
|
||||||
|
spring.datasource.url: {{ .Values.spring.datasource.url | b64enc | quote }}
|
||||||
|
spring.datasource.username: {{ .Values.spring.datasource.username | b64enc | quote }}
|
||||||
|
spring.datasource.password: {{ .Values.spring.datasource.password | b64enc | quote }}
|
||||||
|
spring.datasource.driver-class-name: {{ .Values.spring.datasource.driver-class-name | b64enc | quote }}
|
||||||
|
jwt.secret: {{ .Values.jwt.secret | b64enc | quote }}
|
||||||
|
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
name: secret
|
11
values.yaml
11
values.yaml
@ -2,6 +2,17 @@
|
|||||||
# This is a YAML-formatted file.
|
# This is a YAML-formatted file.
|
||||||
# Declare variables to be passed into your templates.
|
# Declare variables to be passed into your templates.
|
||||||
|
|
||||||
|
spring:
|
||||||
|
datasource:
|
||||||
|
url:
|
||||||
|
username:
|
||||||
|
password:
|
||||||
|
driver-class-name:
|
||||||
|
|
||||||
|
jwt:
|
||||||
|
secret:
|
||||||
|
|
||||||
|
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
|
|
||||||
image:
|
image:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user