feat: cicd
This commit is contained in:
parent
c60410577d
commit
1ff63c3319
@ -1,9 +1,6 @@
|
||||
{{- $host_dev := printf "%s-bu-teammaker.dev.%s" .Values.image.tag .Values.ingress.host -}}
|
||||
{{- $host_prod := printf "%s.%s" "bu-teammaker" .Values.ingress.host -}}
|
||||
{{- $host := regexMatch "^v[0-9]+\\.[0-9]+\\.[0-9]+$" .Values.image.tag | ternary $host_prod $host_dev -}}
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}-surrealdb"
|
||||
labels:
|
||||
@ -17,10 +14,6 @@ spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}-surrealdb"
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}-surrealdb"
|
||||
spec:
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
@ -66,9 +59,6 @@ spec:
|
||||
value: "file:/appdata/bot.db"
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 12 }}
|
||||
volumeMounts:
|
||||
- name: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}-surrealdb"
|
||||
mountPath: /appdata
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
Loading…
Reference in New Issue
Block a user