mirror of
https://github.com/Sheldan/OnePlusBot.git
synced 2026-01-05 00:53:45 +00:00
65 lines
2.5 KiB
YAML
65 lines
2.5 KiB
YAML
{{- if .Values.privateRestApi.enabled -}}
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ include "oneplusBot.fullname" . }}-private-rest-api
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: private-rest-api
|
|
template:
|
|
metadata:
|
|
{{- with .Values.privateRestApi.podAnnotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
labels:
|
|
app: private-rest-api
|
|
spec:
|
|
{{- with .Values.imagePullSecrets }}
|
|
imagePullSecrets:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
serviceAccountName: {{ include "oneplusBot.serviceAccountName" . }}
|
|
securityContext:
|
|
{{- toYaml .Values.privateRestApi.podSecurityContext | nindent 8 }}
|
|
containers:
|
|
- name: {{ .Chart.Name }}-private-rest-api
|
|
securityContext:
|
|
{{- toYaml .Values.privateRestApi.securityContext | nindent 12 }}
|
|
image: "{{ .Values.privateRestApi.repository }}/{{ .Values.privateRestApi.image }}:{{ .Values.privateRestApi.tag | default .Chart.AppVersion }}"
|
|
imagePullPolicy: {{ .Values.privateRestApi.pullPolicy }}
|
|
ports:
|
|
- name: {{ .Values.privateRestApi.service.name }}
|
|
containerPort: {{ .Values.privateRestApi.service.port }}
|
|
protocol: TCP
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: {{ .Values.privateRestApi.service.port }}
|
|
initialDelaySeconds: {{ $.Values.privateRestApi.livenessProbe.initialDelaySeconds }}
|
|
periodSeconds: {{ $.Values.privateRestApi.livenessProbe.periodSeconds }}
|
|
failureThreshold: {{ $.Values.privateRestApi.livenessProbe.failureThreshold }}
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: {{ .Values.privateRestApi.service.port }}
|
|
initialDelaySeconds: {{ $.Values.privateRestApi.readinessProbe.initialDelaySeconds }}
|
|
periodSeconds: {{ $.Values.privateRestApi.readinessProbe.periodSeconds }}
|
|
failureThreshold: {{ $.Values.privateRestApi.readinessProbe.failureThreshold }}
|
|
resources:
|
|
{{- toYaml .Values.privateRestApi.resources | nindent 12 }}
|
|
{{- with .Values.privateRestApi.nodeSelector }}
|
|
nodeSelector:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.privateRestApi.affinity }}
|
|
affinity:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.privateRestApi.tolerations }}
|
|
tolerations:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- end }} |