mirror of
https://github.com/Portabase/agent.git
synced 2026-09-10 18:16:55 +00:00
a96cef6cb5
* fix: docker.yml * feat: add helm chart config * fix: helm config * feat: add .github workflow for helm chart --------- Co-authored-by: charlesgauthereau <charles.gauthereau@soluce-technologies.com>
62 lines
1.7 KiB
YAML
62 lines
1.7 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: portabase-agent
|
|
labels:
|
|
app: portabase-agent
|
|
spec:
|
|
replicas: {{ .Values.replicaCount }}
|
|
selector:
|
|
matchLabels:
|
|
app: portabase-agent
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: portabase-agent
|
|
spec:
|
|
hostAliases:
|
|
{{- range .Values.network.hostAliases }}
|
|
- ip: {{ .ip }}
|
|
hostnames:
|
|
{{- range .hostnames }}
|
|
- {{ . }}
|
|
{{- end }}
|
|
{{- end }}
|
|
containers:
|
|
- name: portabase-agent
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
envFrom:
|
|
- configMapRef:
|
|
name: portabase-agent-env
|
|
volumeMounts:
|
|
{{- if .Values.volume.configFile.enabled }}
|
|
{{- if .Values.volume.configFile.hostPath }}
|
|
- name: config
|
|
mountPath: /config/config.json
|
|
subPath: config.json
|
|
readOnly: true
|
|
# uses hostPath
|
|
{{- else }}
|
|
- name: config
|
|
mountPath: /config/config.json
|
|
subPath: config.json
|
|
# uses ConfigMap content
|
|
{{- end }}
|
|
{{- end }}
|
|
volumes:
|
|
{{- if .Values.volume.configFile.enabled }}
|
|
{{- if .Values.volume.configFile.hostPath }}
|
|
- name: config
|
|
hostPath:
|
|
path: {{ .Values.volume.configFile.hostPath }}
|
|
type: File
|
|
{{- else }}
|
|
- name: config
|
|
configMap:
|
|
name: portabase-agent-config
|
|
items:
|
|
- key: config.json
|
|
path: config.json
|
|
{{- end }}
|
|
{{- end }} |