feat: add config checksum annotations to deployment templates and update site URL in values files

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-03-27 14:48:25 +08:00
parent 5b8429d883
commit 580f3f8d71
13 changed files with 23 additions and 5 deletions

View File

@ -23,6 +23,8 @@ spec:
app.kubernetes.io/name: "authentication" app.kubernetes.io/name: "authentication"
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
annotations:
app.kubernetes.io/config-checksum: {{ include (print $.Template.BasePath "authentication-config.yaml") . | sha256sum }}
spec: spec:
containers: containers:
- name: "authentication" - name: "authentication"

View File

@ -23,6 +23,8 @@ spec:
app.kubernetes.io/name: "central-storage" app.kubernetes.io/name: "central-storage"
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
annotations:
app.kubernetes.io/config-checksum: {{ include (print $.Template.BasePath "central-storage-config.yaml") . | sha256sum }}
spec: spec:
containers: containers:
- name: "central-storage" - name: "central-storage"

View File

@ -23,6 +23,8 @@ spec:
app.kubernetes.io/name: "chat" app.kubernetes.io/name: "chat"
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
annotations:
app.kubernetes.io/config-checksum: {{ include (print $.Template.BasePath "chat-config.yaml") . | sha256sum }}
spec: spec:
containers: containers:
- name: "chat" - name: "chat"

View File

@ -70,7 +70,7 @@ chat:
mongodbPort: 27017 mongodbPort: 27017
mongodbUri: mongodb+srv://freeadmin:0eMV0bt8oyaknA0m@freeleaps2.zmsmpos.mongodb.net/?retryWrites=true&w=majority mongodbUri: mongodb+srv://freeadmin:0eMV0bt8oyaknA0m@freeleaps2.zmsmpos.mongodb.net/?retryWrites=true&w=majority
emailFrom: freeleaps@freeleaps.com emailFrom: freeleaps@freeleaps.com
siteUrlRoot: https://freeleaps.mathmast.com siteUrlRoot: https://freeleaps.com
jwtSecretKey: ea84edf152976b2fcec12b78aa8e45bc26a5cf0ef61bf16f5c317ae33b3fd8b0 jwtSecretKey: ea84edf152976b2fcec12b78aa8e45bc26a5cf0ef61bf16f5c317ae33b3fd8b0
jwtAlgorithm: HS256 jwtAlgorithm: HS256
stripeApiKey: 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 stripeApiKey: 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

View File

@ -23,6 +23,8 @@ spec:
app.kubernetes.io/name: "content" app.kubernetes.io/name: "content"
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
annotations:
app.kubernetes.io/config-checksum: {{ include (print $.Template.BasePath "content-config.yaml") . | sha256sum }}
spec: spec:
containers: containers:
- name: "content" - name: "content"

View File

@ -23,6 +23,8 @@ spec:
app.kubernetes.io/name: "devsvc" app.kubernetes.io/name: "devsvc"
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
annotations:
app.kubernetes.io/config-checksum: {{ include (print $.Template.BasePath "devsvc-config.yaml") . | sha256sum }}
spec: spec:
containers: containers:
- name: "devsvc" - name: "devsvc"

View File

@ -23,6 +23,8 @@ spec:
app.kubernetes.io/name: "freeleaps" app.kubernetes.io/name: "freeleaps"
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
annotations:
app.kubernetes.io/config-checksum: {{ include (print $.Template.BasePath "freeleaps-config.yaml") . | sha256sum }}
spec: spec:
containers: containers:
- name: "freeleaps" - name: "freeleaps"

View File

@ -70,7 +70,7 @@ freeleaps:
mongodbPort: 27017 mongodbPort: 27017
mongodbUri: mongodb+srv://freeadmin:0eMV0bt8oyaknA0m@freeleaps2.zmsmpos.mongodb.net/?retryWrites=true&w=majority mongodbUri: mongodb+srv://freeadmin:0eMV0bt8oyaknA0m@freeleaps2.zmsmpos.mongodb.net/?retryWrites=true&w=majority
emailFrom: freeleaps@freeleaps.com emailFrom: freeleaps@freeleaps.com
siteUrlRoot: https://freeleaps.mathmast.com siteUrlRoot: https://freeleaps.com
jwtSecretKey: ea84edf152976b2fcec12b78aa8e45bc26a5cf0ef61bf16f5c317ae33b3fd8b0 jwtSecretKey: ea84edf152976b2fcec12b78aa8e45bc26a5cf0ef61bf16f5c317ae33b3fd8b0
jwtAlgorithm: HS256 jwtAlgorithm: HS256
stripeApiKey: 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 stripeApiKey: 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

View File

@ -23,6 +23,8 @@ spec:
app.kubernetes.io/name: "frontend" app.kubernetes.io/name: "frontend"
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
annotations:
app.kubernetes.io/config-checksum: {{ include (print $.Template.BasePath "frontend-config.yaml") . | sha256sum }}
spec: spec:
containers: containers:
- name: "frontend" - name: "frontend"

View File

@ -29,7 +29,7 @@ frontend:
targetPort: 8080 targetPort: 8080
ingresses: ingresses:
- name: frontend-ingress - name: frontend-ingress
host: freeleaps.mathmast.com host: freeleaps.com
class: nginx class: nginx
rules: rules:
- path: / - path: /
@ -44,7 +44,7 @@ frontend:
issuerRef: issuerRef:
name: mathmast-dot-com name: mathmast-dot-com
kind: ClusterIssuer kind: ClusterIssuer
name: freeleaps.mathmast.com-cert name: freeleaps.com-cert
annotations: annotations:
nginx.ingress.kubernetes.io/proxy-read-timeout: '3600' nginx.ingress.kubernetes.io/proxy-read-timeout: '3600'
nginx.ingress.kubernetes.io/proxy-send-timeout: '3600' nginx.ingress.kubernetes.io/proxy-send-timeout: '3600'

View File

@ -23,6 +23,8 @@ spec:
app.kubernetes.io/name: "notification" app.kubernetes.io/name: "notification"
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
annotations:
app.kubernetes.io/config-checksum: {{ include (print $.Template.BasePath "notification-config.yaml") . | sha256sum }}
spec: spec:
containers: containers:
- name: "notification" - name: "notification"

View File

@ -23,6 +23,8 @@ spec:
app.kubernetes.io/name: "payment" app.kubernetes.io/name: "payment"
app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
annotations:
app.kubernetes.io/config-checksum: {{ include (print $.Template.BasePath "payment-config.yaml") . | sha256sum }}
spec: spec:
containers: containers:
- name: "payment" - name: "payment"

View File

@ -70,6 +70,6 @@ payment:
mongodbPort: 27017 mongodbPort: 27017
mongodbUri: mongodb+srv://freeadmin:0eMV0bt8oyaknA0m@freeleaps2.zmsmpos.mongodb.net/?retryWrites=true&w=majority mongodbUri: mongodb+srv://freeadmin:0eMV0bt8oyaknA0m@freeleaps2.zmsmpos.mongodb.net/?retryWrites=true&w=majority
stripeApiKey: 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 stripeApiKey: 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
siteUrlRoot: https://freeleaps.mathmast.com siteUrlRoot: https://freeleaps.com
metricsEnabled: "true" metricsEnabled: "true"
probesEnabled: "true" probesEnabled: "true"