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
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}-surrealdb"
|
name: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}-surrealdb"
|
||||||
labels:
|
labels:
|
||||||
@ -17,10 +14,6 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}-surrealdb"
|
app: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}-surrealdb"
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}-surrealdb"
|
|
||||||
spec:
|
spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
@ -66,9 +59,6 @@ spec:
|
|||||||
value: "file:/appdata/bot.db"
|
value: "file:/appdata/bot.db"
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
volumeMounts:
|
|
||||||
- name: "{{ .Chart.Name }}-{{- template "mychart.name" . -}}-surrealdb"
|
|
||||||
mountPath: /appdata
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /
|
path: /
|
Loading…
Reference in New Issue
Block a user