Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions helm-chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v2
name: atlas-ui-3
description: A Helm chart for deploying atlas-ui-3

type: application
version: 0.0.1
appVersion: "0.0.1"
8 changes: 8 additions & 0 deletions helm-chart/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{{/*
Define chart labels
*/}}
{{- define "chart.labels" -}}
{{- with .Values.labels -}}
{{ toYaml . }}
{{- end }}
{{- end }}
9 changes: 9 additions & 0 deletions helm-chart/templates/configmaps.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-config
namespace: {{ .Release.Namespace }}
data:
{{- with .Values.configFiles }}
{{- toYaml . | nindent 2 }}
{{- end }}
54 changes: 54 additions & 0 deletions helm-chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ .Release.Name }}-atlas-ui"
namespace: {{ .Release.Namespace }}
labels:
{{- include "chart.labels" . | nindent 4 }}
spec:
replicas: 1
selector:
matchLabels:
{{- include "chart.labels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "chart.labels" . | nindent 8 }}
spec:
containers:
- name: "atlas-ui"
image: "{{ .Values.image }}"
imagePullPolicy: Always
env:
- name: PORT
value: "{{ .Values.port }}"
{{- with .Values.env }}
{{- toYaml . | nindent 12 }}
{{- end }}
envFrom:
- secretRef:
name: "{{ .Release.Name }}-secrets"
ports:
- name: "{{ .Release.Name }}-atlas-ui"
containerPort: {{ .Values.port }}
resources:
requests:
cpu: "{{ .Values.resources.requests.cpu }}"
memory: "{{ .Values.resources.requests.memory }}"
limits:
cpu: "{{ .Values.resources.limits.cpu }}"
memory: "{{ .Values.resources.limits.memory }}"
volumeMounts:
- name: {{ .Release.Name }}-logs-volume
mountPath: /app/backend/logs
- name: {{ .Release.Name }}-config-volume
mountPath: /app/config/defaults
- name: {{ .Release.Name }}-config-volume
mountPath: /app/config/overrides
Comment on lines +44 to +47
Copy link

Copilot AI Oct 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same volume is mounted twice at different paths (/app/config/defaults and /app/config/overrides). This will cause the second mount to override the first. If both paths need the same ConfigMap data, use subPath, or if they need different data, create separate volumes with distinct names.

Copilot uses AI. Check for mistakes.
volumes:
- name: {{ .Release.Name }}-logs-volume
persistentVolumeClaim:
claimName: {{ .Release.Name }}-logs-pvc
- name: {{ .Release.Name }}-config-volume
configMap:
name: "{{ .Release.Name }}-config"
21 changes: 21 additions & 0 deletions helm-chart/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Release.Name }}-atlas-ui
namespace: {{ .Release.Namespace }}
labels:
{{- include "chart.labels" . | nindent 4 }}
annotations:
route.openshift.io/termination: "edge"
spec:
rules:
- host: {{ .Values.ingressHostURL }}
http:
paths:
- path: ''
pathType: ImplementationSpecific
backend:
service:
name: {{ .Release.Name }}-atlas-ui
port:
name: {{ .Release.Name }}-atlas-ui
18 changes: 18 additions & 0 deletions helm-chart/templates/logs-pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: "{{ .Release.Name }}-logs-pvc"
namespace: {{ .Release.Namespace }}
annotations:
{{- with .Values.persistence.logs.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
accessModes:
- {{ .Values.persistence.logs.accessMode | quote }}
resources:
requests:
storage: {{ .Values.persistence.logs.size | quote }}
{{- if .Values.persistence.logs.storageClassName}}
storageClassName: {{ .Values.persistence.logs.storageClassName | quote }}
{{- end }}
10 changes: 10 additions & 0 deletions helm-chart/templates/secrets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: Secret
metadata:
name: "{{ .Release.Name }}-secrets"
namespace: {{ .Release.Namespace }}
type: Opaque
data:
{{- range $key, $val := .Values.secrets }}
{{ $key }}: {{ $val | b64enc | quote }}
{{- end }}
15 changes: 15 additions & 0 deletions helm-chart/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-atlas-ui
namespace: {{ .Release.Namespace }}
labels:
{{- include "chart.labels" . | nindent 4 }}
spec:
ports:
- name: "{{ .Release.Name }}-atlas-ui"
port: {{ .Values.port }}
targetPort: "{{ .Release.Name }}-atlas-ui"
protocol: TCP
selector:
{{- include "chart.labels" . | nindent 4 }}
Loading
Loading