64 lines
1.4 KiB
YAML
64 lines
1.4 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ .Chart.Name }}-kedoca
|
|
labels:
|
|
app: kedoca
|
|
spec:
|
|
minReadySeconds: 5
|
|
strategy:
|
|
type: RollingUpdate
|
|
rollingUpdate:
|
|
maxSurge: 1
|
|
maxUnavailable: 1
|
|
replicas: {{ .Values.app.kedoca.replicas }}
|
|
selector:
|
|
matchLabels:
|
|
service: {{ .Chart.Name }}-kedoca
|
|
template:
|
|
metadata:
|
|
labels:
|
|
service: {{ .Chart.Name }}-kedoca
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: regsecret
|
|
containers:
|
|
- name: kedoca
|
|
image: {{ .Values.app.kedoca.image }}
|
|
imagePullPolicy: Always
|
|
env:
|
|
{{- include "envs_all" . | indent 12 }}
|
|
{{- include "envs_kedoca" . | indent 12 }}
|
|
ports:
|
|
- containerPort: 8558
|
|
{{- include "kedoca_resources" . | indent 10 }}
|
|
{{- if .Values.app.kedoca.secretName }}
|
|
volumeMounts:
|
|
- name: ca-cert
|
|
mountPath: /ca-cert
|
|
{{- end }}
|
|
{{- if .Values.app.kedoca.secretName }}
|
|
volumes:
|
|
- name: ca-cert
|
|
secret:
|
|
secretName: {{ .Values.app.kedoca.secretName }}
|
|
{{- end }}
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ .Chart.Name }}-kedoca
|
|
labels:
|
|
app: kedoca
|
|
spec:
|
|
selector:
|
|
service: {{ .Chart.Name }}-kedoca
|
|
ports:
|
|
- name: http
|
|
port: 8558
|
|
targetPort: 8558
|
|
protocol: TCP
|
|
type: ClusterIP
|