rewrite helm chart to be one for argoCD
This commit is contained in:
@@ -0,0 +1 @@
|
||||
argocd-application.yaml
|
||||
@@ -0,0 +1,9 @@
|
||||
dependencies:
|
||||
- name: frontend
|
||||
repository: ""
|
||||
version: 0.1.0
|
||||
- name: backend
|
||||
repository: ""
|
||||
version: 0.1.0
|
||||
digest: sha256:1140d4999433b0aeea61b30ba78833a3ac5d3844c7b80b9650490a74382e7a6b
|
||||
generated: "2026-11-10T09:44:26.024447+01:00"
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
apiVersion: v2
|
||||
name: collabry
|
||||
description: Collabry (frontend + backend) as a single chart for Argo CD
|
||||
type: application
|
||||
version: 0.1.0
|
||||
# Subcharts are vendored in charts/ (no repository), so no dependency download is needed.
|
||||
dependencies:
|
||||
- name: frontend
|
||||
version: 0.1.0
|
||||
- name: backend
|
||||
version: 0.1.0
|
||||
@@ -0,0 +1,17 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: collabry
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://git.nhaiden.io/niklas/collabry-helm-chart.git
|
||||
targetRevision: HEAD
|
||||
path: .
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: collabry
|
||||
syncPolicy:
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
@@ -1,15 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: "{{ include "backend.fullname" . }}-test-connection"
|
||||
labels:
|
||||
{{- include "backend.labels" . | nindent 4 }}
|
||||
annotations:
|
||||
"helm.sh/hook": test
|
||||
spec:
|
||||
containers:
|
||||
- name: wget
|
||||
image: busybox
|
||||
command: ['wget']
|
||||
args: ['{{ include "backend.fullname" . }}:{{ .Values.service.port }}']
|
||||
restartPolicy: Never
|
||||
@@ -11,7 +11,7 @@ image:
|
||||
# This sets the pull policy for images.
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: "2209c3fb"
|
||||
tag: "11729b15"
|
||||
|
||||
# This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
|
||||
imagePullSecrets: []
|
||||
@@ -60,6 +60,10 @@ spec:
|
||||
volumeMounts:
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- with .Values.appConfig }}
|
||||
env:
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- with .Values.volumes }}
|
||||
volumes:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
@@ -11,7 +11,7 @@ image:
|
||||
# This sets the pull policy for images.
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: "89fa5c9a"
|
||||
tag: "11729b15"
|
||||
|
||||
# This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
|
||||
imagePullSecrets: []
|
||||
@@ -159,3 +159,7 @@ nodeSelector: {}
|
||||
tolerations: []
|
||||
|
||||
affinity: {}
|
||||
|
||||
appConfig:
|
||||
- name: API_SERVER
|
||||
value: http://backend:8080
|
||||
@@ -1,15 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: "{{ include "frontend.fullname" . }}-test-connection"
|
||||
labels:
|
||||
{{- include "frontend.labels" . | nindent 4 }}
|
||||
annotations:
|
||||
"helm.sh/hook": test
|
||||
spec:
|
||||
containers:
|
||||
- name: wget
|
||||
image: busybox
|
||||
command: ['wget']
|
||||
args: ['{{ include "frontend.fullname" . }}:{{ .Values.service.port }}']
|
||||
restartPolicy: Never
|
||||
@@ -2,7 +2,6 @@ apiVersion: external-secrets.io/v1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: collabry
|
||||
namespace: collabry
|
||||
spec:
|
||||
refreshInterval: 1h
|
||||
secretStoreRef:
|
||||
@@ -10,4 +9,4 @@ spec:
|
||||
kind: ClusterSecretStore
|
||||
dataFrom:
|
||||
- extract:
|
||||
key: k8s/collabry
|
||||
key: k8s/collabry
|
||||
@@ -0,0 +1,9 @@
|
||||
# Per-app settings live in charts/<app>/values.yaml; anything here overrides them.
|
||||
|
||||
# Fixed names so resources stay "frontend"/"backend" regardless of the Argo CD app/release name
|
||||
# (frontend reaches the API at http://backend:8080).
|
||||
frontend:
|
||||
fullnameOverride: frontend
|
||||
|
||||
backend:
|
||||
fullnameOverride: backend
|
||||
Reference in New Issue
Block a user