mirror of
https://github.com/D4M13N-D3V/comissions-app-argocd.git
synced 2025-03-14 08:15:00 +00:00
core-api
This commit is contained in:
parent
8b91c2e05a
commit
bc186e5f13
@ -1,7 +1,7 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: all-dev-apps
|
||||
name: comissions-dev
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
|
@ -1,5 +1,5 @@
|
||||
apiVersion: v2
|
||||
name: search
|
||||
name: core-api
|
||||
description: A Helm chart for Kubernetes
|
||||
|
||||
# A chart can be either an 'application' or a 'library' chart.
|
||||
|
@ -1,16 +1,16 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "search.fullname" . }}
|
||||
name: {{ include "core-api.fullname" . }}
|
||||
labels:
|
||||
{{- include "search.labels" . | nindent 4 }}
|
||||
{{- include "core-api.labels" . | nindent 4 }}
|
||||
spec:
|
||||
{{- if not .Values.autoscaling.enabled }}
|
||||
replicas: {{ .Values.replicaCount }}
|
||||
{{- end }}
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "search.selectorLabels" . | nindent 6 }}
|
||||
{{- include "core-api.selectorLabels" . | nindent 6 }}
|
||||
template:
|
||||
metadata:
|
||||
{{- with .Values.podAnnotations }}
|
||||
@ -18,13 +18,13 @@ spec:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "search.selectorLabels" . | nindent 8 }}
|
||||
{{- include "core-api.selectorLabels" . | nindent 8 }}
|
||||
spec:
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
serviceAccountName: {{ include "search.serviceAccountName" . }}
|
||||
serviceAccountName: {{ include "core-api.serviceAccountName" . }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||
containers:
|
||||
|
@ -2,14 +2,14 @@
|
||||
apiVersion: autoscaling/v2
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: {{ include "search.fullname" . }}
|
||||
name: {{ include "core-api.fullname" . }}
|
||||
labels:
|
||||
{{- include "search.labels" . | nindent 4 }}
|
||||
{{- include "core-api.labels" . | nindent 4 }}
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: {{ include "search.fullname" . }}
|
||||
name: {{ include "core-api.fullname" . }}
|
||||
minReplicas: {{ .Values.autoscaling.minReplicas }}
|
||||
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
|
||||
metrics:
|
||||
|
@ -1,5 +1,5 @@
|
||||
{{- if .Values.ingress.enabled -}}
|
||||
{{- $fullName := include "search.fullname" . -}}
|
||||
{{- $fullName := include "core-api.fullname" . -}}
|
||||
{{- $svcPort := .Values.service.port -}}
|
||||
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
|
||||
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
|
||||
@ -17,7 +17,7 @@ kind: Ingress
|
||||
metadata:
|
||||
name: {{ $fullName }}
|
||||
labels:
|
||||
{{- include "search.labels" . | nindent 4 }}
|
||||
{{- include "core-api.labels" . | nindent 4 }}
|
||||
{{- with .Values.ingress.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
|
@ -1,9 +1,9 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "search.fullname" . }}
|
||||
name: {{ include "core-api.fullname" . }}
|
||||
labels:
|
||||
{{- include "search.labels" . | nindent 4 }}
|
||||
{{- include "core-api.labels" . | nindent 4 }}
|
||||
spec:
|
||||
type: {{ .Values.service.type }}
|
||||
ports:
|
||||
@ -12,4 +12,4 @@ spec:
|
||||
protocol: TCP
|
||||
name: http
|
||||
selector:
|
||||
{{- include "search.selectorLabels" . | nindent 4 }}
|
||||
{{- include "core-api.selectorLabels" . | nindent 4 }}
|
@ -2,9 +2,9 @@
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ include "search.serviceAccountName" . }}
|
||||
name: {{ include "core-api.serviceAccountName" . }}
|
||||
labels:
|
||||
{{- include "search.labels" . | nindent 4 }}
|
||||
{{- include "core-api.labels" . | nindent 4 }}
|
||||
{{- with .Values.serviceAccount.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
|
@ -1,7 +1,7 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: ApplicationSet
|
||||
metadata:
|
||||
name: search
|
||||
name: core-api
|
||||
namespace: argocd
|
||||
spec:
|
||||
goTemplate: true
|
||||
@ -14,7 +14,7 @@ spec:
|
||||
- path: "dev/.config/*.json"
|
||||
template:
|
||||
metadata:
|
||||
name: "search-{{.deployment.cluster.namespace}}"
|
||||
name: "core-api-{{.deployment.cluster.namespace}}"
|
||||
spec:
|
||||
project: "{{.deployment.argocd.project}}"
|
||||
source:
|
||||
|
Loading…
x
Reference in New Issue
Block a user