This commit is contained in:
Дмитрий Соловьев
2026-05-25 14:23:52 +03:00
parent b3a6012ebb
commit d48ddd2657
1066 changed files with 104601 additions and 3 deletions
+6
View File
@@ -0,0 +1,6 @@
apiVersion: v2
name: pcp-ballistics-service
description: Pilot Helm chart for deploying pcp-ballistics-service from GitLab CI/CD.
type: application
version: 0.1.0
appVersion: "1.0.0"
@@ -0,0 +1,43 @@
{{- define "pcp-ballistics-service.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- define "pcp-ballistics-service.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- include "pcp-ballistics-service.name" . | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- define "pcp-ballistics-service.labels" -}}
app.kubernetes.io/name: {{ include "pcp-ballistics-service.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
{{- define "pcp-ballistics-service.serviceBaseUrl" -}}
{{- if .Values.app.serviceBaseUrl -}}
{{- .Values.app.serviceBaseUrl -}}
{{- else if and .Values.ingress.enabled .Values.ingress.host -}}
{{- $scheme := .Values.app.serviceBaseUrlScheme | default (ternary "https" "http" (gt (len .Values.ingress.tls) 0)) -}}
{{- printf "%s://%s" $scheme .Values.ingress.host -}}
{{- end -}}
{{- end -}}
{{- define "pcp-ballistics-service.managementBaseUrl" -}}
{{- if .Values.app.managementBaseUrl -}}
{{- .Values.app.managementBaseUrl -}}
{{- else -}}
{{- printf "http://%s:%v" (include "pcp-ballistics-service.fullname" .) .Values.service.port -}}
{{- end -}}
{{- end -}}
{{- define "pcp-ballistics-service.healthUrl" -}}
{{- if .Values.app.healthUrl -}}
{{- .Values.app.healthUrl -}}
{{- else -}}
{{- printf "%s/actuator/health" (include "pcp-ballistics-service.managementBaseUrl" .) -}}
{{- end -}}
{{- end -}}
@@ -0,0 +1,89 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "pcp-ballistics-service.fullname" . }}
labels:
{{- include "pcp-ballistics-service.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "pcp-ballistics-service.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
labels:
{{- include "pcp-ballistics-service.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.image.pullSecrets }}
imagePullSecrets:
{{- range . }}
- name: {{ . }}
{{- end }}
{{- end }}
containers:
- name: {{ include "pcp-ballistics-service.name" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
env:
- name: SPRING_PROFILES_ACTIVE
value: {{ .Values.app.profile | quote }}
- name: CONFIG_SERVER_URI
value: {{ .Values.app.configServerUri | quote }}
- name: SPRING_CLOUD_CONFIG_LABEL
value: {{ .Values.app.configLabel | quote }}
- name: CONFIG_SERVER_FAIL_FAST
value: {{ .Values.app.configServerFailFast | quote }}
{{- if .Values.app.adminClientUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_URL
value: {{ .Values.app.adminClientUrl | quote }}
{{- end }}
{{- $serviceBaseUrl := include "pcp-ballistics-service.serviceBaseUrl" . }}
{{- if $serviceBaseUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_BASE_URL
value: {{ $serviceBaseUrl | quote }}
{{- end }}
{{- if .Values.app.servicePath }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PATH
value: {{ .Values.app.servicePath | quote }}
{{- end }}
{{- $managementBaseUrl := include "pcp-ballistics-service.managementBaseUrl" . }}
{{- if $managementBaseUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_MANAGEMENT_BASE_URL
value: {{ $managementBaseUrl | quote }}
{{- end }}
{{- $healthUrl := include "pcp-ballistics-service.healthUrl" . }}
{{- if $healthUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_HEALTH_URL
value: {{ $healthUrl | quote }}
{{- end }}
{{- with .Values.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
readinessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 20
periodSeconds: 15
timeoutSeconds: 5
livenessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 40
periodSeconds: 20
timeoutSeconds: 5
resources:
{{- toYaml .Values.resources | nindent 12 }}
@@ -0,0 +1,31 @@
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "pcp-ballistics-service.fullname" . }}
labels:
{{- include "pcp-ballistics-service.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className | quote }}
{{- end }}
{{- with .Values.ingress.tls }}
tls:
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
- host: {{ .Values.ingress.host | quote }}
http:
paths:
- path: {{ .Values.ingress.path | quote }}
pathType: {{ .Values.ingress.pathType }}
backend:
service:
name: {{ include "pcp-ballistics-service.fullname" . }}
port:
number: {{ .Values.service.port }}
{{- end }}
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "pcp-ballistics-service.fullname" . }}
labels:
{{- include "pcp-ballistics-service.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
selector:
app.kubernetes.io/name: {{ include "pcp-ballistics-service.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
ports:
- name: http
port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
@@ -0,0 +1,11 @@
app:
profile: dev
configLabel: dev
adminClientUrl: "http://pcp-spring-boot-admin-server:38889"
service:
port: 8080
ingress:
enabled: true
host: pcp-ballistics-service.dev.k8s.264.nstart.cloud
@@ -0,0 +1,10 @@
app:
profile: master
configLabel: master
service:
port: 8080
ingress:
enabled: true
host: pcp-ballistics-service.master.k8s.264.nstart.cloud
+48
View File
@@ -0,0 +1,48 @@
replicaCount: 1
image:
repository: registry.example.com/pcp/pcp-ballistics-service
tag: latest
pullPolicy: IfNotPresent
pullSecrets: []
service:
type: ClusterIP
port: 8080
app:
profile: master
configServerUri: "http://spring-cloud-config-server:38888"
configServerFailFast: "true"
configLabel: master
adminClientUrl: ""
serviceBaseUrl: ""
serviceBaseUrlScheme: ""
servicePath: "/swagger/ui"
managementBaseUrl: ""
healthUrl: ""
ingress:
enabled: false
className: ""
annotations: {}
host: ""
path: /
pathType: Prefix
tls: []
extraEnv: []
resources:
requests:
cpu: "250m"
memory: "1Gi"
limits:
cpu: "2"
memory: "4Gi"
podAnnotations: {}
podLabels: {}
nameOverride: ""
fullnameOverride: ""
@@ -0,0 +1,6 @@
apiVersion: v2
name: pcp-complex-mission-service
description: Helm chart for deploying pcp-complex-mission-service from GitLab CI/CD.
type: application
version: 0.1.0
appVersion: "1.0.0"
@@ -0,0 +1,43 @@
{{- define "pcp-complex-mission-service.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- define "pcp-complex-mission-service.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- include "pcp-complex-mission-service.name" . | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- define "pcp-complex-mission-service.labels" -}}
app.kubernetes.io/name: {{ include "pcp-complex-mission-service.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
{{- define "pcp-complex-mission-service.serviceBaseUrl" -}}
{{- if .Values.app.serviceBaseUrl -}}
{{- .Values.app.serviceBaseUrl -}}
{{- else if and .Values.ingress.enabled .Values.ingress.host -}}
{{- $scheme := .Values.app.serviceBaseUrlScheme | default (ternary "https" "http" (gt (len .Values.ingress.tls) 0)) -}}
{{- printf "%s://%s" $scheme .Values.ingress.host -}}
{{- end -}}
{{- end -}}
{{- define "pcp-complex-mission-service.managementBaseUrl" -}}
{{- if .Values.app.managementBaseUrl -}}
{{- .Values.app.managementBaseUrl -}}
{{- else -}}
{{- printf "http://%s:%v" (include "pcp-complex-mission-service.fullname" .) .Values.service.port -}}
{{- end -}}
{{- end -}}
{{- define "pcp-complex-mission-service.healthUrl" -}}
{{- if .Values.app.healthUrl -}}
{{- .Values.app.healthUrl -}}
{{- else -}}
{{- printf "%s/actuator/health" (include "pcp-complex-mission-service.managementBaseUrl" .) -}}
{{- end -}}
{{- end -}}
@@ -0,0 +1,89 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "pcp-complex-mission-service.fullname" . }}
labels:
{{- include "pcp-complex-mission-service.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "pcp-complex-mission-service.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
labels:
{{- include "pcp-complex-mission-service.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.image.pullSecrets }}
imagePullSecrets:
{{- range . }}
- name: {{ . }}
{{- end }}
{{- end }}
containers:
- name: {{ include "pcp-complex-mission-service.name" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
env:
- name: SPRING_PROFILES_ACTIVE
value: {{ .Values.app.profile | quote }}
- name: CONFIG_SERVER_URI
value: {{ .Values.app.configServerUri | quote }}
- name: SPRING_CLOUD_CONFIG_LABEL
value: {{ .Values.app.configLabel | quote }}
- name: CONFIG_SERVER_FAIL_FAST
value: {{ .Values.app.configServerFailFast | quote }}
{{- if .Values.app.adminClientUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_URL
value: {{ .Values.app.adminClientUrl | quote }}
{{- end }}
{{- $serviceBaseUrl := include "pcp-complex-mission-service.serviceBaseUrl" . }}
{{- if $serviceBaseUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_BASE_URL
value: {{ $serviceBaseUrl | quote }}
{{- end }}
{{- if .Values.app.servicePath }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PATH
value: {{ .Values.app.servicePath | quote }}
{{- end }}
{{- $managementBaseUrl := include "pcp-complex-mission-service.managementBaseUrl" . }}
{{- if $managementBaseUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_MANAGEMENT_BASE_URL
value: {{ $managementBaseUrl | quote }}
{{- end }}
{{- $healthUrl := include "pcp-complex-mission-service.healthUrl" . }}
{{- if $healthUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_HEALTH_URL
value: {{ $healthUrl | quote }}
{{- end }}
{{- with .Values.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
readinessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 20
periodSeconds: 15
timeoutSeconds: 5
livenessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 40
periodSeconds: 20
timeoutSeconds: 5
resources:
{{- toYaml .Values.resources | nindent 12 }}
@@ -0,0 +1,31 @@
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "pcp-complex-mission-service.fullname" . }}
labels:
{{- include "pcp-complex-mission-service.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className | quote }}
{{- end }}
{{- with .Values.ingress.tls }}
tls:
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
- host: {{ .Values.ingress.host | quote }}
http:
paths:
- path: {{ .Values.ingress.path | quote }}
pathType: {{ .Values.ingress.pathType }}
backend:
service:
name: {{ include "pcp-complex-mission-service.fullname" . }}
port:
number: {{ .Values.service.port }}
{{- end }}
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "pcp-complex-mission-service.fullname" . }}
labels:
{{- include "pcp-complex-mission-service.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
selector:
app.kubernetes.io/name: {{ include "pcp-complex-mission-service.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
ports:
- name: http
port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
@@ -0,0 +1,11 @@
app:
profile: dev
configLabel: dev
adminClientUrl: "http://pcp-spring-boot-admin-server:38889"
service:
port: 8080
ingress:
enabled: true
host: pcp-complex-mission-service.dev.k8s.264.nstart.cloud
@@ -0,0 +1,10 @@
app:
profile: master
configLabel: master
service:
port: 8080
ingress:
enabled: true
host: pcp-complex-mission-service.master.k8s.264.nstart.cloud
@@ -0,0 +1,48 @@
replicaCount: 1
image:
repository: registry.example.com/pcp/pcp-complex-mission-service
tag: latest
pullPolicy: IfNotPresent
pullSecrets: []
service:
type: ClusterIP
port: 8080
app:
profile: master
configServerUri: "http://spring-cloud-config-server:38888"
configServerFailFast: "true"
configLabel: master
adminClientUrl: ""
serviceBaseUrl: ""
serviceBaseUrlScheme: ""
servicePath: "/swagger/ui"
managementBaseUrl: ""
healthUrl: ""
ingress:
enabled: false
className: ""
annotations: {}
host: ""
path: /
pathType: Prefix
tls: []
extraEnv: []
resources:
requests:
cpu: "500m"
memory: "2Gi"
limits:
cpu: "4"
memory: "4Gi"
podAnnotations: {}
podLabels: {}
nameOverride: ""
fullnameOverride: ""
@@ -0,0 +1,6 @@
apiVersion: v2
name: pcp-coverage-scheme-service
description: Helm chart for deploying pcp-coverage-scheme-service from GitLab CI/CD.
type: application
version: 0.1.0
appVersion: "1.0.0"
@@ -0,0 +1,43 @@
{{- define "pcp-coverage-scheme-service.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- define "pcp-coverage-scheme-service.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- include "pcp-coverage-scheme-service.name" . | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- define "pcp-coverage-scheme-service.labels" -}}
app.kubernetes.io/name: {{ include "pcp-coverage-scheme-service.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
{{- define "pcp-coverage-scheme-service.serviceBaseUrl" -}}
{{- if .Values.app.serviceBaseUrl -}}
{{- .Values.app.serviceBaseUrl -}}
{{- else if and .Values.ingress.enabled .Values.ingress.host -}}
{{- $scheme := .Values.app.serviceBaseUrlScheme | default (ternary "https" "http" (gt (len .Values.ingress.tls) 0)) -}}
{{- printf "%s://%s" $scheme .Values.ingress.host -}}
{{- end -}}
{{- end -}}
{{- define "pcp-coverage-scheme-service.managementBaseUrl" -}}
{{- if .Values.app.managementBaseUrl -}}
{{- .Values.app.managementBaseUrl -}}
{{- else -}}
{{- printf "http://%s:%v" (include "pcp-coverage-scheme-service.fullname" .) .Values.service.port -}}
{{- end -}}
{{- end -}}
{{- define "pcp-coverage-scheme-service.healthUrl" -}}
{{- if .Values.app.healthUrl -}}
{{- .Values.app.healthUrl -}}
{{- else -}}
{{- printf "%s/actuator/health" (include "pcp-coverage-scheme-service.managementBaseUrl" .) -}}
{{- end -}}
{{- end -}}
@@ -0,0 +1,85 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "pcp-coverage-scheme-service.fullname" . }}
labels:
{{- include "pcp-coverage-scheme-service.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "pcp-coverage-scheme-service.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
labels:
{{- include "pcp-coverage-scheme-service.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.image.pullSecrets }}
imagePullSecrets:
{{- range . }}
- name: {{ . }}
{{- end }}
{{- end }}
containers:
- name: {{ include "pcp-coverage-scheme-service.name" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
env:
- name: SPRING_PROFILES_ACTIVE
value: {{ .Values.app.profile | quote }}
- name: CONFIG_SERVER_URI
value: {{ .Values.app.configServerUri | quote }}
- name: SPRING_CLOUD_CONFIG_LABEL
value: {{ .Values.app.configLabel | quote }}
- name: CONFIG_SERVER_FAIL_FAST
value: {{ .Values.app.configServerFailFast | quote }}
{{- if .Values.app.adminClientUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_URL
value: {{ .Values.app.adminClientUrl | quote }}
{{- end }}
{{- $serviceBaseUrl := include "pcp-coverage-scheme-service.serviceBaseUrl" . }}
{{- if $serviceBaseUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_BASE_URL
value: {{ $serviceBaseUrl | quote }}
{{- end }}
{{- $managementBaseUrl := include "pcp-coverage-scheme-service.managementBaseUrl" . }}
{{- if $managementBaseUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_MANAGEMENT_BASE_URL
value: {{ $managementBaseUrl | quote }}
{{- end }}
{{- $healthUrl := include "pcp-coverage-scheme-service.healthUrl" . }}
{{- if $healthUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_HEALTH_URL
value: {{ $healthUrl | quote }}
{{- end }}
{{- with .Values.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
readinessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 20
periodSeconds: 15
timeoutSeconds: 5
livenessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 40
periodSeconds: 20
timeoutSeconds: 5
resources:
{{- toYaml .Values.resources | nindent 12 }}
@@ -0,0 +1,31 @@
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "pcp-coverage-scheme-service.fullname" . }}
labels:
{{- include "pcp-coverage-scheme-service.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className | quote }}
{{- end }}
{{- with .Values.ingress.tls }}
tls:
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
- host: {{ .Values.ingress.host | quote }}
http:
paths:
- path: {{ .Values.ingress.path | quote }}
pathType: {{ .Values.ingress.pathType }}
backend:
service:
name: {{ include "pcp-coverage-scheme-service.fullname" . }}
port:
number: {{ .Values.service.port }}
{{- end }}
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "pcp-coverage-scheme-service.fullname" . }}
labels:
{{- include "pcp-coverage-scheme-service.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
selector:
app.kubernetes.io/name: {{ include "pcp-coverage-scheme-service.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
ports:
- name: http
port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
@@ -0,0 +1,15 @@
app:
profile: dev
configLabel: dev
adminClientUrl: "http://pcp-spring-boot-admin-server:38889"
service:
port: 8080
ingress:
enabled: true
host: pcp-coverage-scheme-service.dev.k8s.264.nstart.cloud
extraEnv:
- name: SERVER_PORT
value: "8080"
@@ -0,0 +1,14 @@
app:
profile: master
configLabel: master
service:
port: 8080
ingress:
enabled: true
host: pcp-coverage-scheme-service.master.k8s.264.nstart.cloud
extraEnv:
- name: SERVER_PORT
value: "8080"
@@ -0,0 +1,47 @@
replicaCount: 1
image:
repository: registry.example.com/pcp/pcp-coverage-scheme-service
tag: latest
pullPolicy: IfNotPresent
pullSecrets: []
service:
type: ClusterIP
port: 8080
app:
profile: master
configServerUri: "http://spring-cloud-config-server:38888"
configServerFailFast: "true"
configLabel: master
adminClientUrl: ""
serviceBaseUrl: ""
serviceBaseUrlScheme: ""
managementBaseUrl: ""
healthUrl: ""
ingress:
enabled: false
className: ""
annotations: {}
host: ""
path: /
pathType: Prefix
tls: []
extraEnv: []
resources:
requests:
cpu: "500m"
memory: "1Gi"
limits:
cpu: "1"
memory: "2Gi"
podAnnotations: {}
podLabels: {}
nameOverride: ""
fullnameOverride: ""
+6
View File
@@ -0,0 +1,6 @@
apiVersion: v2
name: pcp-dynamic-plan-service
description: Helm chart for deploying pcp-dynamic-plan-service from GitLab CI/CD.
type: application
version: 0.1.0
appVersion: "1.0.0"
@@ -0,0 +1,43 @@
{{- define "pcp-dynamic-plan-service.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- define "pcp-dynamic-plan-service.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- include "pcp-dynamic-plan-service.name" . | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- define "pcp-dynamic-plan-service.labels" -}}
app.kubernetes.io/name: {{ include "pcp-dynamic-plan-service.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
{{- define "pcp-dynamic-plan-service.serviceBaseUrl" -}}
{{- if .Values.app.serviceBaseUrl -}}
{{- .Values.app.serviceBaseUrl -}}
{{- else if and .Values.ingress.enabled .Values.ingress.host -}}
{{- $scheme := .Values.app.serviceBaseUrlScheme | default (ternary "https" "http" (gt (len .Values.ingress.tls) 0)) -}}
{{- printf "%s://%s" $scheme .Values.ingress.host -}}
{{- end -}}
{{- end -}}
{{- define "pcp-dynamic-plan-service.managementBaseUrl" -}}
{{- if .Values.app.managementBaseUrl -}}
{{- .Values.app.managementBaseUrl -}}
{{- else -}}
{{- printf "http://%s:%v" (include "pcp-dynamic-plan-service.fullname" .) .Values.service.port -}}
{{- end -}}
{{- end -}}
{{- define "pcp-dynamic-plan-service.healthUrl" -}}
{{- if .Values.app.healthUrl -}}
{{- .Values.app.healthUrl -}}
{{- else -}}
{{- printf "%s/actuator/health" (include "pcp-dynamic-plan-service.managementBaseUrl" .) -}}
{{- end -}}
{{- end -}}
@@ -0,0 +1,89 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "pcp-dynamic-plan-service.fullname" . }}
labels:
{{- include "pcp-dynamic-plan-service.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "pcp-dynamic-plan-service.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
labels:
{{- include "pcp-dynamic-plan-service.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.image.pullSecrets }}
imagePullSecrets:
{{- range . }}
- name: {{ . }}
{{- end }}
{{- end }}
containers:
- name: {{ include "pcp-dynamic-plan-service.name" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
env:
- name: SPRING_PROFILES_ACTIVE
value: {{ .Values.app.profile | quote }}
- name: CONFIG_SERVER_URI
value: {{ .Values.app.configServerUri | quote }}
- name: SPRING_CLOUD_CONFIG_LABEL
value: {{ .Values.app.configLabel | quote }}
- name: CONFIG_SERVER_FAIL_FAST
value: {{ .Values.app.configServerFailFast | quote }}
{{- if .Values.app.adminClientUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_URL
value: {{ .Values.app.adminClientUrl | quote }}
{{- end }}
{{- $serviceBaseUrl := include "pcp-dynamic-plan-service.serviceBaseUrl" . }}
{{- if $serviceBaseUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_BASE_URL
value: {{ $serviceBaseUrl | quote }}
{{- end }}
{{- if .Values.app.servicePath }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PATH
value: {{ .Values.app.servicePath | quote }}
{{- end }}
{{- $managementBaseUrl := include "pcp-dynamic-plan-service.managementBaseUrl" . }}
{{- if $managementBaseUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_MANAGEMENT_BASE_URL
value: {{ $managementBaseUrl | quote }}
{{- end }}
{{- $healthUrl := include "pcp-dynamic-plan-service.healthUrl" . }}
{{- if $healthUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_HEALTH_URL
value: {{ $healthUrl | quote }}
{{- end }}
{{- with .Values.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
readinessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 20
periodSeconds: 15
timeoutSeconds: 5
livenessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 40
periodSeconds: 20
timeoutSeconds: 5
resources:
{{- toYaml .Values.resources | nindent 12 }}
@@ -0,0 +1,31 @@
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "pcp-dynamic-plan-service.fullname" . }}
labels:
{{- include "pcp-dynamic-plan-service.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className | quote }}
{{- end }}
{{- with .Values.ingress.tls }}
tls:
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
- host: {{ .Values.ingress.host | quote }}
http:
paths:
- path: {{ .Values.ingress.path | quote }}
pathType: {{ .Values.ingress.pathType }}
backend:
service:
name: {{ include "pcp-dynamic-plan-service.fullname" . }}
port:
number: {{ .Values.service.port }}
{{- end }}
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "pcp-dynamic-plan-service.fullname" . }}
labels:
{{- include "pcp-dynamic-plan-service.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
selector:
app.kubernetes.io/name: {{ include "pcp-dynamic-plan-service.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
ports:
- name: http
port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
@@ -0,0 +1,11 @@
app:
profile: dev
configLabel: dev
adminClientUrl: "http://pcp-spring-boot-admin-server:38889"
service:
port: 8080
ingress:
enabled: true
host: pcp-dynamic-plan-service.dev.k8s.264.nstart.cloud
@@ -0,0 +1,10 @@
app:
profile: master
configLabel: master
service:
port: 8080
ingress:
enabled: true
host: pcp-dynamic-plan-service.master.k8s.264.nstart.cloud
+48
View File
@@ -0,0 +1,48 @@
replicaCount: 1
image:
repository: registry.example.com/pcp/pcp-dynamic-plan-service
tag: latest
pullPolicy: IfNotPresent
pullSecrets: []
service:
type: ClusterIP
port: 8080
app:
profile: master
configServerUri: "http://spring-cloud-config-server:38888"
configServerFailFast: "true"
configLabel: master
adminClientUrl: ""
serviceBaseUrl: ""
serviceBaseUrlScheme: ""
servicePath: "/swagger/ui"
managementBaseUrl: ""
healthUrl: ""
ingress:
enabled: false
className: ""
annotations: {}
host: ""
path: /
pathType: Prefix
tls: []
extraEnv: []
resources:
requests:
cpu: "250m"
memory: "1Gi"
limits:
cpu: "2"
memory: "4Gi"
podAnnotations: {}
podLabels: {}
nameOverride: ""
fullnameOverride: ""
@@ -0,0 +1,6 @@
apiVersion: v2
name: pcp-mission-planing-service
description: Helm chart for deploying pcp-mission-planing-service from GitLab CI/CD.
type: application
version: 0.1.0
appVersion: "1.0.0"
@@ -0,0 +1,43 @@
{{- define "pcp-mission-planing-service.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- define "pcp-mission-planing-service.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- include "pcp-mission-planing-service.name" . | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- define "pcp-mission-planing-service.labels" -}}
app.kubernetes.io/name: {{ include "pcp-mission-planing-service.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
{{- define "pcp-mission-planing-service.serviceBaseUrl" -}}
{{- if .Values.app.serviceBaseUrl -}}
{{- .Values.app.serviceBaseUrl -}}
{{- else if and .Values.ingress.enabled .Values.ingress.host -}}
{{- $scheme := .Values.app.serviceBaseUrlScheme | default (ternary "https" "http" (gt (len .Values.ingress.tls) 0)) -}}
{{- printf "%s://%s" $scheme .Values.ingress.host -}}
{{- end -}}
{{- end -}}
{{- define "pcp-mission-planing-service.managementBaseUrl" -}}
{{- if .Values.app.managementBaseUrl -}}
{{- .Values.app.managementBaseUrl -}}
{{- else -}}
{{- printf "http://%s:%v" (include "pcp-mission-planing-service.fullname" .) .Values.service.port -}}
{{- end -}}
{{- end -}}
{{- define "pcp-mission-planing-service.healthUrl" -}}
{{- if .Values.app.healthUrl -}}
{{- .Values.app.healthUrl -}}
{{- else -}}
{{- printf "%s/actuator/health" (include "pcp-mission-planing-service.managementBaseUrl" .) -}}
{{- end -}}
{{- end -}}
@@ -0,0 +1,89 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "pcp-mission-planing-service.fullname" . }}
labels:
{{- include "pcp-mission-planing-service.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "pcp-mission-planing-service.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
labels:
{{- include "pcp-mission-planing-service.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.image.pullSecrets }}
imagePullSecrets:
{{- range . }}
- name: {{ . }}
{{- end }}
{{- end }}
containers:
- name: {{ include "pcp-mission-planing-service.name" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
env:
- name: SPRING_PROFILES_ACTIVE
value: {{ .Values.app.profile | quote }}
- name: CONFIG_SERVER_URI
value: {{ .Values.app.configServerUri | quote }}
- name: SPRING_CLOUD_CONFIG_LABEL
value: {{ .Values.app.configLabel | quote }}
- name: CONFIG_SERVER_FAIL_FAST
value: {{ .Values.app.configServerFailFast | quote }}
{{- if .Values.app.adminClientUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_URL
value: {{ .Values.app.adminClientUrl | quote }}
{{- end }}
{{- $serviceBaseUrl := include "pcp-mission-planing-service.serviceBaseUrl" . }}
{{- if $serviceBaseUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_BASE_URL
value: {{ $serviceBaseUrl | quote }}
{{- end }}
{{- if .Values.app.servicePath }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PATH
value: {{ .Values.app.servicePath | quote }}
{{- end }}
{{- $managementBaseUrl := include "pcp-mission-planing-service.managementBaseUrl" . }}
{{- if $managementBaseUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_MANAGEMENT_BASE_URL
value: {{ $managementBaseUrl | quote }}
{{- end }}
{{- $healthUrl := include "pcp-mission-planing-service.healthUrl" . }}
{{- if $healthUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_HEALTH_URL
value: {{ $healthUrl | quote }}
{{- end }}
{{- with .Values.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
readinessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 20
periodSeconds: 15
timeoutSeconds: 5
livenessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 40
periodSeconds: 20
timeoutSeconds: 5
resources:
{{- toYaml .Values.resources | nindent 12 }}
@@ -0,0 +1,31 @@
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "pcp-mission-planing-service.fullname" . }}
labels:
{{- include "pcp-mission-planing-service.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className | quote }}
{{- end }}
{{- with .Values.ingress.tls }}
tls:
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
- host: {{ .Values.ingress.host | quote }}
http:
paths:
- path: {{ .Values.ingress.path | quote }}
pathType: {{ .Values.ingress.pathType }}
backend:
service:
name: {{ include "pcp-mission-planing-service.fullname" . }}
port:
number: {{ .Values.service.port }}
{{- end }}
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "pcp-mission-planing-service.fullname" . }}
labels:
{{- include "pcp-mission-planing-service.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
selector:
app.kubernetes.io/name: {{ include "pcp-mission-planing-service.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
ports:
- name: http
port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
@@ -0,0 +1,15 @@
app:
profile: dev
configLabel: dev
adminClientUrl: "http://pcp-spring-boot-admin-server:38889"
service:
port: 8080
ingress:
enabled: true
host: pcp-mission-planing-service.dev.k8s.264.nstart.cloud
extraEnv:
- name: SERVER_PORT
value: "8080"
@@ -0,0 +1,14 @@
app:
profile: master
configLabel: master
service:
port: 8080
ingress:
enabled: true
host: pcp-mission-planing-service.master.k8s.264.nstart.cloud
extraEnv:
- name: SERVER_PORT
value: "8080"
@@ -0,0 +1,48 @@
replicaCount: 1
image:
repository: registry.example.com/pcp/pcp-mission-planing-service
tag: latest
pullPolicy: IfNotPresent
pullSecrets: []
service:
type: ClusterIP
port: 8080
app:
profile: master
configServerUri: "http://spring-cloud-config-server:38888"
configServerFailFast: "true"
configLabel: master
adminClientUrl: ""
serviceBaseUrl: ""
serviceBaseUrlScheme: ""
servicePath: "/swagger/ui"
managementBaseUrl: ""
healthUrl: ""
ingress:
enabled: false
className: ""
annotations: {}
host: ""
path: /
pathType: Prefix
tls: []
extraEnv: []
resources:
requests:
cpu: "500m"
memory: "1Gi"
limits:
cpu: "2"
memory: "2Gi"
podAnnotations: {}
podLabels: {}
nameOverride: ""
fullnameOverride: ""
+6
View File
@@ -0,0 +1,6 @@
apiVersion: v2
name: pcp-request-service
description: Helm chart for deploying pcp-request-service from GitLab CI/CD.
type: application
version: 0.1.0
appVersion: "1.0.0"
@@ -0,0 +1,43 @@
{{- define "pcp-request-service.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- define "pcp-request-service.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- include "pcp-request-service.name" . | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- define "pcp-request-service.labels" -}}
app.kubernetes.io/name: {{ include "pcp-request-service.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
{{- define "pcp-request-service.serviceBaseUrl" -}}
{{- if .Values.app.serviceBaseUrl -}}
{{- .Values.app.serviceBaseUrl -}}
{{- else if and .Values.ingress.enabled .Values.ingress.host -}}
{{- $scheme := .Values.app.serviceBaseUrlScheme | default (ternary "https" "http" (gt (len .Values.ingress.tls) 0)) -}}
{{- printf "%s://%s" $scheme .Values.ingress.host -}}
{{- end -}}
{{- end -}}
{{- define "pcp-request-service.managementBaseUrl" -}}
{{- if .Values.app.managementBaseUrl -}}
{{- .Values.app.managementBaseUrl -}}
{{- else -}}
{{- printf "http://%s:%v" (include "pcp-request-service.fullname" .) .Values.service.port -}}
{{- end -}}
{{- end -}}
{{- define "pcp-request-service.healthUrl" -}}
{{- if .Values.app.healthUrl -}}
{{- .Values.app.healthUrl -}}
{{- else -}}
{{- printf "%s/actuator/health" (include "pcp-request-service.managementBaseUrl" .) -}}
{{- end -}}
{{- end -}}
@@ -0,0 +1,97 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "pcp-request-service.fullname" . }}
labels:
{{- include "pcp-request-service.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "pcp-request-service.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
labels:
{{- include "pcp-request-service.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.image.pullSecrets }}
imagePullSecrets:
{{- range . }}
- name: {{ . }}
{{- end }}
{{- end }}
containers:
- name: {{ include "pcp-request-service.name" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
env:
- name: SPRING_PROFILES_ACTIVE
value: {{ .Values.app.profile | quote }}
- name: CONFIG_SERVER_URI
value: {{ .Values.app.configServerUri | quote }}
- name: SPRING_CLOUD_CONFIG_LABEL
value: {{ .Values.app.configLabel | quote }}
- name: CONFIG_SERVER_FAIL_FAST
value: {{ .Values.app.configServerFailFast | quote }}
{{- if .Values.app.adminClientUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_URL
value: {{ .Values.app.adminClientUrl | quote }}
{{- end }}
{{- $serviceBaseUrl := include "pcp-request-service.serviceBaseUrl" . }}
{{- if $serviceBaseUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_BASE_URL
value: {{ $serviceBaseUrl | quote }}
{{- end }}
{{- if .Values.app.servicePath }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PATH
value: {{ .Values.app.servicePath | quote }}
{{- end }}
{{- $managementBaseUrl := include "pcp-request-service.managementBaseUrl" . }}
{{- if $managementBaseUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_MANAGEMENT_BASE_URL
value: {{ $managementBaseUrl | quote }}
{{- end }}
{{- $healthUrl := include "pcp-request-service.healthUrl" . }}
{{- if $healthUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_HEALTH_URL
value: {{ $healthUrl | quote }}
{{- end }}
{{- with .Values.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
readinessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 20
periodSeconds: 15
timeoutSeconds: 5
startupProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 60
livenessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 40
periodSeconds: 20
timeoutSeconds: 5
resources:
{{- toYaml .Values.resources | nindent 12 }}
@@ -0,0 +1,31 @@
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "pcp-request-service.fullname" . }}
labels:
{{- include "pcp-request-service.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className | quote }}
{{- end }}
{{- with .Values.ingress.tls }}
tls:
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
- host: {{ .Values.ingress.host | quote }}
http:
paths:
- path: {{ .Values.ingress.path | quote }}
pathType: {{ .Values.ingress.pathType }}
backend:
service:
name: {{ include "pcp-request-service.fullname" . }}
port:
number: {{ .Values.service.port }}
{{- end }}
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "pcp-request-service.fullname" . }}
labels:
{{- include "pcp-request-service.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
selector:
app.kubernetes.io/name: {{ include "pcp-request-service.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
ports:
- name: http
port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
+15
View File
@@ -0,0 +1,15 @@
app:
profile: dev
configLabel: dev
adminClientUrl: "http://pcp-spring-boot-admin-server:38889"
service:
port: 8080
ingress:
enabled: true
host: pcp-request-service.dev.k8s.264.nstart.cloud
extraEnv:
- name: SERVER_PORT
value: "8080"
@@ -0,0 +1,14 @@
app:
profile: master
configLabel: master
service:
port: 8080
ingress:
enabled: true
host: pcp-request-service.master.k8s.264.nstart.cloud
extraEnv:
- name: SERVER_PORT
value: "8080"
+48
View File
@@ -0,0 +1,48 @@
replicaCount: 1
image:
repository: registry.example.com/pcp/pcp-request-service
tag: latest
pullPolicy: IfNotPresent
pullSecrets: []
service:
type: ClusterIP
port: 8080
app:
profile: master
configServerUri: "http://spring-cloud-config-server:38888"
configServerFailFast: "true"
configLabel: master
adminClientUrl: ""
serviceBaseUrl: ""
serviceBaseUrlScheme: ""
servicePath: "/swagger/ui"
managementBaseUrl: ""
healthUrl: ""
ingress:
enabled: false
className: ""
annotations: {}
host: ""
path: /
pathType: Prefix
tls: []
extraEnv: []
resources:
requests:
cpu: "500m"
memory: "1Gi"
limits:
cpu: "2"
memory: "2Gi"
podAnnotations: {}
podLabels: {}
nameOverride: ""
fullnameOverride: ""
@@ -0,0 +1,6 @@
apiVersion: v2
name: pcp-satellite-catalog-service
description: Helm chart for deploying pcp-satellite-catalog-service from GitLab CI/CD.
type: application
version: 0.1.0
appVersion: "1.0.0"
@@ -0,0 +1,43 @@
{{- define "pcp-satellite-catalog-service.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- define "pcp-satellite-catalog-service.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- include "pcp-satellite-catalog-service.name" . | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- define "pcp-satellite-catalog-service.labels" -}}
app.kubernetes.io/name: {{ include "pcp-satellite-catalog-service.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
{{- define "pcp-satellite-catalog-service.serviceBaseUrl" -}}
{{- if .Values.app.serviceBaseUrl -}}
{{- .Values.app.serviceBaseUrl -}}
{{- else if and .Values.ingress.enabled .Values.ingress.host -}}
{{- $scheme := .Values.app.serviceBaseUrlScheme | default (ternary "https" "http" (gt (len .Values.ingress.tls) 0)) -}}
{{- printf "%s://%s" $scheme .Values.ingress.host -}}
{{- end -}}
{{- end -}}
{{- define "pcp-satellite-catalog-service.managementBaseUrl" -}}
{{- if .Values.app.managementBaseUrl -}}
{{- .Values.app.managementBaseUrl -}}
{{- else -}}
{{- printf "http://%s:%v" (include "pcp-satellite-catalog-service.fullname" .) .Values.service.port -}}
{{- end -}}
{{- end -}}
{{- define "pcp-satellite-catalog-service.healthUrl" -}}
{{- if .Values.app.healthUrl -}}
{{- .Values.app.healthUrl -}}
{{- else -}}
{{- printf "%s/actuator/health" (include "pcp-satellite-catalog-service.managementBaseUrl" .) -}}
{{- end -}}
{{- end -}}
@@ -0,0 +1,89 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "pcp-satellite-catalog-service.fullname" . }}
labels:
{{- include "pcp-satellite-catalog-service.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "pcp-satellite-catalog-service.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
labels:
{{- include "pcp-satellite-catalog-service.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.image.pullSecrets }}
imagePullSecrets:
{{- range . }}
- name: {{ . }}
{{- end }}
{{- end }}
containers:
- name: {{ include "pcp-satellite-catalog-service.name" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
env:
- name: SPRING_PROFILES_ACTIVE
value: {{ .Values.app.profile | quote }}
- name: CONFIG_SERVER_URI
value: {{ .Values.app.configServerUri | quote }}
- name: SPRING_CLOUD_CONFIG_LABEL
value: {{ .Values.app.configLabel | quote }}
- name: CONFIG_SERVER_FAIL_FAST
value: {{ .Values.app.configServerFailFast | quote }}
{{- if .Values.app.adminClientUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_URL
value: {{ .Values.app.adminClientUrl | quote }}
{{- end }}
{{- $serviceBaseUrl := include "pcp-satellite-catalog-service.serviceBaseUrl" . }}
{{- if $serviceBaseUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_BASE_URL
value: {{ $serviceBaseUrl | quote }}
{{- end }}
{{- if .Values.app.servicePath }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PATH
value: {{ .Values.app.servicePath | quote }}
{{- end }}
{{- $managementBaseUrl := include "pcp-satellite-catalog-service.managementBaseUrl" . }}
{{- if $managementBaseUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_MANAGEMENT_BASE_URL
value: {{ $managementBaseUrl | quote }}
{{- end }}
{{- $healthUrl := include "pcp-satellite-catalog-service.healthUrl" . }}
{{- if $healthUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_HEALTH_URL
value: {{ $healthUrl | quote }}
{{- end }}
{{- with .Values.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
readinessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 20
periodSeconds: 15
timeoutSeconds: 5
livenessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 40
periodSeconds: 20
timeoutSeconds: 5
resources:
{{- toYaml .Values.resources | nindent 12 }}
@@ -0,0 +1,31 @@
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "pcp-satellite-catalog-service.fullname" . }}
labels:
{{- include "pcp-satellite-catalog-service.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className | quote }}
{{- end }}
{{- with .Values.ingress.tls }}
tls:
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
- host: {{ .Values.ingress.host | quote }}
http:
paths:
- path: {{ .Values.ingress.path | quote }}
pathType: {{ .Values.ingress.pathType }}
backend:
service:
name: {{ include "pcp-satellite-catalog-service.fullname" . }}
port:
number: {{ .Values.service.port }}
{{- end }}
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "pcp-satellite-catalog-service.fullname" . }}
labels:
{{- include "pcp-satellite-catalog-service.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
selector:
app.kubernetes.io/name: {{ include "pcp-satellite-catalog-service.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
ports:
- name: http
port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
@@ -0,0 +1,27 @@
app:
profile: dev
configLabel: dev
adminClientUrl: "http://pcp-spring-boot-admin-server:38889"
service:
port: 8080
ingress:
enabled: true
host: pcp-satellite-catalog-service.dev.k8s.264.nstart.cloud
extraEnv:
- name: SERVER_PORT
value: "8080"
- name: SPRING_DATASOURCE_URL
value: jdbc:postgresql://pcp-postgres.pcp-dev.svc.altum.local:5432/pcp_satellite_catalog
- name: SPRING_DATASOURCE_USERNAME
valueFrom:
secretKeyRef:
name: pcp-satellite-catalog-db
key: SPRING_DATASOURCE_USERNAME
- name: SPRING_DATASOURCE_PASSWORD
valueFrom:
secretKeyRef:
name: pcp-satellite-catalog-db
key: SPRING_DATASOURCE_PASSWORD
@@ -0,0 +1,14 @@
app:
profile: master
configLabel: master
service:
port: 8080
ingress:
enabled: true
host: pcp-satellite-catalog-service.master.k8s.264.nstart.cloud
extraEnv:
- name: SERVER_PORT
value: "8080"
@@ -0,0 +1,42 @@
replicaCount: 1
image:
repository: registry.example.com/pcp/pcp-satellite-catalog-service
tag: latest
pullPolicy: IfNotPresent
pullSecrets: []
service:
type: ClusterIP
port: 8080
app:
profile: master
configServerUri: "http://spring-cloud-config-server:38888"
configServerFailFast: "true"
configLabel: master
adminClientUrl: ""
serviceBaseUrl: ""
serviceBaseUrlScheme: ""
servicePath: "/swagger/ui"
managementBaseUrl: ""
healthUrl: ""
ingress:
enabled: false
className: ""
annotations: {}
host: ""
path: /
pathType: Prefix
tls: []
extraEnv: []
resources: {}
podAnnotations: {}
podLabels: {}
nameOverride: ""
fullnameOverride: ""
@@ -0,0 +1,6 @@
apiVersion: v2
name: pcp-spring-boot-admin-server
description: Helm chart for deploying pcp-spring-boot-admin-server from GitLab CI/CD.
type: application
version: 0.1.0
appVersion: "1.0.0"
@@ -0,0 +1,18 @@
{{- define "pcp-spring-boot-admin-server.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- define "pcp-spring-boot-admin-server.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- include "pcp-spring-boot-admin-server.name" . | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- define "pcp-spring-boot-admin-server.labels" -}}
app.kubernetes.io/name: {{ include "pcp-spring-boot-admin-server.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
@@ -0,0 +1,68 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "pcp-spring-boot-admin-server.fullname" . }}
labels:
{{- include "pcp-spring-boot-admin-server.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "pcp-spring-boot-admin-server.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
labels:
{{- include "pcp-spring-boot-admin-server.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.image.pullSecrets }}
imagePullSecrets:
{{- range . }}
- name: {{ . }}
{{- end }}
{{- end }}
containers:
- name: {{ include "pcp-spring-boot-admin-server.name" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
env:
- name: SPRING_PROFILES_ACTIVE
value: {{ .Values.app.profile | quote }}
- name: CONFIG_SERVER_URI
value: {{ .Values.app.configServerUri | quote }}
- name: SPRING_CLOUD_CONFIG_LABEL
value: {{ .Values.app.configLabel | quote }}
- name: CONFIG_SERVER_FAIL_FAST
value: {{ .Values.app.configServerFailFast | quote }}
- name: SERVER_PORT
value: {{ .Values.service.port | quote }}
{{- with .Values.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
readinessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 20
periodSeconds: 15
timeoutSeconds: 5
livenessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 40
periodSeconds: 20
timeoutSeconds: 5
resources:
{{- toYaml .Values.resources | nindent 12 }}
@@ -0,0 +1,31 @@
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "pcp-spring-boot-admin-server.fullname" . }}
labels:
{{- include "pcp-spring-boot-admin-server.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className | quote }}
{{- end }}
{{- with .Values.ingress.tls }}
tls:
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
- host: {{ .Values.ingress.host | quote }}
http:
paths:
- path: {{ .Values.ingress.path | quote }}
pathType: {{ .Values.ingress.pathType }}
backend:
service:
name: {{ include "pcp-spring-boot-admin-server.fullname" . }}
port:
number: {{ .Values.service.port }}
{{- end }}
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "pcp-spring-boot-admin-server.fullname" . }}
labels:
{{- include "pcp-spring-boot-admin-server.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
selector:
app.kubernetes.io/name: {{ include "pcp-spring-boot-admin-server.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
ports:
- name: http
port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
@@ -0,0 +1,10 @@
app:
profile: dev
configLabel: dev
service:
port: 38889
ingress:
enabled: true
host: pcp-spring-boot-admin-server.dev.k8s.264.nstart.cloud
@@ -0,0 +1,36 @@
replicaCount: 1
image:
repository: registry.example.com/pcp/pcp-spring-boot-admin-server
tag: latest
pullPolicy: IfNotPresent
pullSecrets: []
service:
type: ClusterIP
port: 38889
app:
profile: master
configServerUri: "http://spring-cloud-config-server:38888"
configServerFailFast: "true"
configLabel: master
ingress:
enabled: false
className: ""
annotations: {}
host: ""
path: /
pathType: Prefix
tls: []
extraEnv: []
resources: {}
podAnnotations: {}
podLabels: {}
nameOverride: ""
fullnameOverride: ""
+6
View File
@@ -0,0 +1,6 @@
apiVersion: v2
name: pcp-stations-service
description: Helm chart for deploying pcp-stations-service from GitLab CI/CD.
type: application
version: 0.1.0
appVersion: "1.0.0"
@@ -0,0 +1,43 @@
{{- define "pcp-stations-service.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- define "pcp-stations-service.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- include "pcp-stations-service.name" . | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- define "pcp-stations-service.labels" -}}
app.kubernetes.io/name: {{ include "pcp-stations-service.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
{{- define "pcp-stations-service.serviceBaseUrl" -}}
{{- if .Values.app.serviceBaseUrl -}}
{{- .Values.app.serviceBaseUrl -}}
{{- else if and .Values.ingress.enabled .Values.ingress.host -}}
{{- $scheme := .Values.app.serviceBaseUrlScheme | default (ternary "https" "http" (gt (len .Values.ingress.tls) 0)) -}}
{{- printf "%s://%s" $scheme .Values.ingress.host -}}
{{- end -}}
{{- end -}}
{{- define "pcp-stations-service.managementBaseUrl" -}}
{{- if .Values.app.managementBaseUrl -}}
{{- .Values.app.managementBaseUrl -}}
{{- else -}}
{{- printf "http://%s:%v" (include "pcp-stations-service.fullname" .) .Values.service.port -}}
{{- end -}}
{{- end -}}
{{- define "pcp-stations-service.healthUrl" -}}
{{- if .Values.app.healthUrl -}}
{{- .Values.app.healthUrl -}}
{{- else -}}
{{- printf "%s/actuator/health" (include "pcp-stations-service.managementBaseUrl" .) -}}
{{- end -}}
{{- end -}}
@@ -0,0 +1,89 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "pcp-stations-service.fullname" . }}
labels:
{{- include "pcp-stations-service.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "pcp-stations-service.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
labels:
{{- include "pcp-stations-service.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.image.pullSecrets }}
imagePullSecrets:
{{- range . }}
- name: {{ . }}
{{- end }}
{{- end }}
containers:
- name: {{ include "pcp-stations-service.name" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
env:
- name: SPRING_PROFILES_ACTIVE
value: {{ .Values.app.profile | quote }}
- name: CONFIG_SERVER_URI
value: {{ .Values.app.configServerUri | quote }}
- name: SPRING_CLOUD_CONFIG_LABEL
value: {{ .Values.app.configLabel | quote }}
- name: CONFIG_SERVER_FAIL_FAST
value: {{ .Values.app.configServerFailFast | quote }}
{{- if .Values.app.adminClientUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_URL
value: {{ .Values.app.adminClientUrl | quote }}
{{- end }}
{{- $serviceBaseUrl := include "pcp-stations-service.serviceBaseUrl" . }}
{{- if $serviceBaseUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_BASE_URL
value: {{ $serviceBaseUrl | quote }}
{{- end }}
{{- if .Values.app.servicePath }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PATH
value: {{ .Values.app.servicePath | quote }}
{{- end }}
{{- $managementBaseUrl := include "pcp-stations-service.managementBaseUrl" . }}
{{- if $managementBaseUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_MANAGEMENT_BASE_URL
value: {{ $managementBaseUrl | quote }}
{{- end }}
{{- $healthUrl := include "pcp-stations-service.healthUrl" . }}
{{- if $healthUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_HEALTH_URL
value: {{ $healthUrl | quote }}
{{- end }}
{{- with .Values.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
readinessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 20
periodSeconds: 15
timeoutSeconds: 5
livenessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 40
periodSeconds: 20
timeoutSeconds: 5
resources:
{{- toYaml .Values.resources | nindent 12 }}
@@ -0,0 +1,31 @@
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "pcp-stations-service.fullname" . }}
labels:
{{- include "pcp-stations-service.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className | quote }}
{{- end }}
{{- with .Values.ingress.tls }}
tls:
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
- host: {{ .Values.ingress.host | quote }}
http:
paths:
- path: {{ .Values.ingress.path | quote }}
pathType: {{ .Values.ingress.pathType }}
backend:
service:
name: {{ include "pcp-stations-service.fullname" . }}
port:
number: {{ .Values.service.port }}
{{- end }}
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "pcp-stations-service.fullname" . }}
labels:
{{- include "pcp-stations-service.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
selector:
app.kubernetes.io/name: {{ include "pcp-stations-service.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
ports:
- name: http
port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
+15
View File
@@ -0,0 +1,15 @@
app:
profile: dev
configLabel: dev
adminClientUrl: "http://pcp-spring-boot-admin-server:38889"
service:
port: 8080
ingress:
enabled: true
host: pcp-stations-service.dev.k8s.264.nstart.cloud
extraEnv:
- name: SERVER_PORT
value: "8080"
@@ -0,0 +1,14 @@
app:
profile: master
configLabel: master
service:
port: 8080
ingress:
enabled: true
host: pcp-stations-service.master.k8s.264.nstart.cloud
extraEnv:
- name: SERVER_PORT
value: "8080"
+42
View File
@@ -0,0 +1,42 @@
replicaCount: 1
image:
repository: registry.example.com/pcp/pcp-stations-service
tag: latest
pullPolicy: IfNotPresent
pullSecrets: []
service:
type: ClusterIP
port: 8080
app:
profile: master
configServerUri: "http://spring-cloud-config-server:38888"
configServerFailFast: "true"
configLabel: master
adminClientUrl: ""
serviceBaseUrl: ""
serviceBaseUrlScheme: ""
servicePath: "/swagger/ui"
managementBaseUrl: ""
healthUrl: ""
ingress:
enabled: false
className: ""
annotations: {}
host: ""
path: /
pathType: Prefix
tls: []
extraEnv: []
resources: {}
podAnnotations: {}
podLabels: {}
nameOverride: ""
fullnameOverride: ""
+6
View File
@@ -0,0 +1,6 @@
apiVersion: v2
name: pcp-tgu-service
description: Helm chart for deploying pcp-tgu-service from GitLab CI/CD.
type: application
version: 0.1.0
appVersion: "1.0.0"
@@ -0,0 +1,18 @@
{{- define "pcp-tgu-service.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- define "pcp-tgu-service.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- include "pcp-tgu-service.name" . | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- define "pcp-tgu-service.labels" -}}
app.kubernetes.io/name: {{ include "pcp-tgu-service.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
@@ -0,0 +1,78 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "pcp-tgu-service.fullname" . }}
labels:
{{- include "pcp-tgu-service.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "pcp-tgu-service.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
labels:
{{- include "pcp-tgu-service.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.image.pullSecrets }}
imagePullSecrets:
{{- range . }}
- name: {{ . }}
{{- end }}
{{- end }}
containers:
- name: {{ include "pcp-tgu-service.name" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
env:
- name: SPRING_PROFILES_ACTIVE
value: {{ .Values.app.profile | quote }}
- name: CONFIG_SERVER_URI
value: {{ .Values.app.configServerUri | quote }}
- name: SPRING_CLOUD_CONFIG_LABEL
value: {{ .Values.app.configLabel | quote }}
- name: CONFIG_SERVER_FAIL_FAST
value: {{ .Values.app.configServerFailFast | quote }}
{{- if .Values.app.adminClientUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_URL
value: {{ .Values.app.adminClientUrl | quote }}
{{- end }}
{{- if .Values.app.serviceBaseUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_BASE_URL
value: {{ .Values.app.serviceBaseUrl | quote }}
{{- end }}
{{- if .Values.app.managementBaseUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_MANAGEMENT_BASE_URL
value: {{ .Values.app.managementBaseUrl | quote }}
{{- end }}
{{- with .Values.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
readinessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 20
periodSeconds: 15
timeoutSeconds: 5
livenessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 40
periodSeconds: 20
timeoutSeconds: 5
resources:
{{- toYaml .Values.resources | nindent 12 }}
@@ -0,0 +1,31 @@
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "pcp-tgu-service.fullname" . }}
labels:
{{- include "pcp-tgu-service.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className | quote }}
{{- end }}
{{- with .Values.ingress.tls }}
tls:
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
- host: {{ .Values.ingress.host | quote }}
http:
paths:
- path: {{ .Values.ingress.path | quote }}
pathType: {{ .Values.ingress.pathType }}
backend:
service:
name: {{ include "pcp-tgu-service.fullname" . }}
port:
number: {{ .Values.service.port }}
{{- end }}
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "pcp-tgu-service.fullname" . }}
labels:
{{- include "pcp-tgu-service.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
selector:
app.kubernetes.io/name: {{ include "pcp-tgu-service.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
ports:
- name: http
port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
+17
View File
@@ -0,0 +1,17 @@
app:
profile: dev
configLabel: dev
adminClientUrl: "http://pcp-spring-boot-admin-server:38889"
serviceBaseUrl: "http://pcp-tgu-service:8080"
managementBaseUrl: "http://pcp-tgu-service:8080"
service:
port: 8080
ingress:
enabled: true
host: pcp-tgu-service.dev.k8s.264.nstart.cloud
extraEnv:
- name: SERVER_PORT
value: "8080"
+14
View File
@@ -0,0 +1,14 @@
app:
profile: master
configLabel: master
service:
port: 8080
ingress:
enabled: true
host: pcp-tgu-service.master.k8s.264.nstart.cloud
extraEnv:
- name: SERVER_PORT
value: "8080"
+39
View File
@@ -0,0 +1,39 @@
replicaCount: 1
image:
repository: registry.example.com/pcp/pcp-tgu-service
tag: latest
pullPolicy: IfNotPresent
pullSecrets: []
service:
type: ClusterIP
port: 8080
app:
profile: master
configServerUri: "http://spring-cloud-config-server:38888"
configServerFailFast: "true"
configLabel: master
adminClientUrl: ""
serviceBaseUrl: ""
managementBaseUrl: ""
ingress:
enabled: false
className: ""
annotations: {}
host: ""
path: /
pathType: Prefix
tls: []
extraEnv: []
resources: {}
podAnnotations: {}
podLabels: {}
nameOverride: ""
fullnameOverride: ""
+6
View File
@@ -0,0 +1,6 @@
apiVersion: v2
name: pcp-ui-service
description: Helm chart for deploying pcp-ui-service from GitLab CI/CD.
type: application
version: 0.1.0
appVersion: "1.0.0"
@@ -0,0 +1,43 @@
{{- define "pcp-ui-service.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- define "pcp-ui-service.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- include "pcp-ui-service.name" . | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- define "pcp-ui-service.labels" -}}
app.kubernetes.io/name: {{ include "pcp-ui-service.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
{{- define "pcp-ui-service.serviceBaseUrl" -}}
{{- if .Values.app.serviceBaseUrl -}}
{{- .Values.app.serviceBaseUrl -}}
{{- else if and .Values.ingress.enabled .Values.ingress.host -}}
{{- $scheme := .Values.app.serviceBaseUrlScheme | default (ternary "https" "http" (gt (len .Values.ingress.tls) 0)) -}}
{{- printf "%s://%s" $scheme .Values.ingress.host -}}
{{- end -}}
{{- end -}}
{{- define "pcp-ui-service.managementBaseUrl" -}}
{{- if .Values.app.managementBaseUrl -}}
{{- .Values.app.managementBaseUrl -}}
{{- else -}}
{{- printf "http://%s:%v" (include "pcp-ui-service.fullname" .) .Values.service.port -}}
{{- end -}}
{{- end -}}
{{- define "pcp-ui-service.healthUrl" -}}
{{- if .Values.app.healthUrl -}}
{{- .Values.app.healthUrl -}}
{{- else -}}
{{- printf "%s/actuator/health" (include "pcp-ui-service.managementBaseUrl" .) -}}
{{- end -}}
{{- end -}}
@@ -0,0 +1,85 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "pcp-ui-service.fullname" . }}
labels:
{{- include "pcp-ui-service.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "pcp-ui-service.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
labels:
{{- include "pcp-ui-service.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.image.pullSecrets }}
imagePullSecrets:
{{- range . }}
- name: {{ . }}
{{- end }}
{{- end }}
containers:
- name: {{ include "pcp-ui-service.name" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
env:
- name: SPRING_PROFILES_ACTIVE
value: {{ .Values.app.profile | quote }}
- name: CONFIG_SERVER_URI
value: {{ .Values.app.configServerUri | quote }}
- name: SPRING_CLOUD_CONFIG_LABEL
value: {{ .Values.app.configLabel | quote }}
- name: CONFIG_SERVER_FAIL_FAST
value: {{ .Values.app.configServerFailFast | quote }}
{{- if .Values.app.adminClientUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_URL
value: {{ .Values.app.adminClientUrl | quote }}
{{- end }}
{{- $serviceBaseUrl := include "pcp-ui-service.serviceBaseUrl" . }}
{{- if $serviceBaseUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_BASE_URL
value: {{ $serviceBaseUrl | quote }}
{{- end }}
{{- $managementBaseUrl := include "pcp-ui-service.managementBaseUrl" . }}
{{- if $managementBaseUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_MANAGEMENT_BASE_URL
value: {{ $managementBaseUrl | quote }}
{{- end }}
{{- $healthUrl := include "pcp-ui-service.healthUrl" . }}
{{- if $healthUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_HEALTH_URL
value: {{ $healthUrl | quote }}
{{- end }}
{{- with .Values.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
readinessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 20
periodSeconds: 15
timeoutSeconds: 5
livenessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 40
periodSeconds: 20
timeoutSeconds: 5
resources:
{{- toYaml .Values.resources | nindent 12 }}
@@ -0,0 +1,31 @@
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "pcp-ui-service.fullname" . }}
labels:
{{- include "pcp-ui-service.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className | quote }}
{{- end }}
{{- with .Values.ingress.tls }}
tls:
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
- host: {{ .Values.ingress.host | quote }}
http:
paths:
- path: {{ .Values.ingress.path | quote }}
pathType: {{ .Values.ingress.pathType }}
backend:
service:
name: {{ include "pcp-ui-service.fullname" . }}
port:
number: {{ .Values.service.port }}
{{- end }}
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "pcp-ui-service.fullname" . }}
labels:
{{- include "pcp-ui-service.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
selector:
app.kubernetes.io/name: {{ include "pcp-ui-service.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
ports:
- name: http
port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
+15
View File
@@ -0,0 +1,15 @@
app:
profile: dev
configLabel: dev
adminClientUrl: "http://pcp-spring-boot-admin-server:38889"
service:
port: 8080
ingress:
enabled: true
host: pcp-ui-service.dev.k8s.264.nstart.cloud
extraEnv:
- name: SERVER_PORT
value: "8080"
+14
View File
@@ -0,0 +1,14 @@
app:
profile: master
configLabel: master
service:
port: 8080
ingress:
enabled: true
host: pcp-ui-service.master.k8s.264.nstart.cloud
extraEnv:
- name: SERVER_PORT
value: "8080"
+47
View File
@@ -0,0 +1,47 @@
replicaCount: 1
image:
repository: registry.example.com/pcp/pcp-ui-service
tag: latest
pullPolicy: IfNotPresent
pullSecrets: []
service:
type: ClusterIP
port: 8080
app:
profile: master
configServerUri: "http://spring-cloud-config-server:38888"
configServerFailFast: "true"
configLabel: master
adminClientUrl: ""
serviceBaseUrl: ""
serviceBaseUrlScheme: ""
managementBaseUrl: ""
healthUrl: ""
ingress:
enabled: false
className: ""
annotations: {}
host: ""
path: /
pathType: Prefix
tls: []
extraEnv: []
resources:
requests:
cpu: "500m"
memory: "1Gi"
limits:
cpu: "1"
memory: "2Gi"
podAnnotations: {}
podLabels: {}
nameOverride: ""
fullnameOverride: ""
+6
View File
@@ -0,0 +1,6 @@
apiVersion: v2
name: pcp-slots-service
description: Helm chart for deploying pcp-slots-service from GitLab CI/CD.
type: application
version: 0.1.0
appVersion: "1.0.0"
+43
View File
@@ -0,0 +1,43 @@
{{- define "slots-service.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- define "slots-service.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- include "slots-service.name" . | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- define "slots-service.labels" -}}
app.kubernetes.io/name: {{ include "slots-service.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
{{- define "slots-service.serviceBaseUrl" -}}
{{- if .Values.app.serviceBaseUrl -}}
{{- .Values.app.serviceBaseUrl -}}
{{- else if and .Values.ingress.enabled .Values.ingress.host -}}
{{- $scheme := .Values.app.serviceBaseUrlScheme | default (ternary "https" "http" (gt (len .Values.ingress.tls) 0)) -}}
{{- printf "%s://%s" $scheme .Values.ingress.host -}}
{{- end -}}
{{- end -}}
{{- define "slots-service.managementBaseUrl" -}}
{{- if .Values.app.managementBaseUrl -}}
{{- .Values.app.managementBaseUrl -}}
{{- else -}}
{{- printf "http://%s:%v" (include "slots-service.fullname" .) .Values.service.port -}}
{{- end -}}
{{- end -}}
{{- define "slots-service.healthUrl" -}}
{{- if .Values.app.healthUrl -}}
{{- .Values.app.healthUrl -}}
{{- else -}}
{{- printf "%s/actuator/health" (include "slots-service.managementBaseUrl" .) -}}
{{- end -}}
{{- end -}}
@@ -0,0 +1,100 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "slots-service.fullname" . }}
labels:
{{- include "slots-service.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
progressDeadlineSeconds: {{ .Values.progressDeadlineSeconds }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "slots-service.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
labels:
{{- include "slots-service.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.image.pullSecrets }}
imagePullSecrets:
{{- range . }}
- name: {{ . }}
{{- end }}
{{- end }}
containers:
- name: {{ include "slots-service.name" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
env:
- name: SPRING_PROFILES_ACTIVE
value: {{ .Values.app.profile | quote }}
- name: CONFIG_SERVER_URI
value: {{ .Values.app.configServerUri | quote }}
- name: SPRING_CLOUD_CONFIG_LABEL
value: {{ .Values.app.configLabel | quote }}
- name: CONFIG_SERVER_FAIL_FAST
value: {{ .Values.app.configServerFailFast | quote }}
{{- if .Values.app.adminClientUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_URL
value: {{ .Values.app.adminClientUrl | quote }}
{{- end }}
{{- $serviceBaseUrl := include "slots-service.serviceBaseUrl" . }}
{{- if $serviceBaseUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_BASE_URL
value: {{ $serviceBaseUrl | quote }}
{{- end }}
{{- if .Values.app.servicePath }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_SERVICE_PATH
value: {{ .Values.app.servicePath | quote }}
{{- end }}
{{- $managementBaseUrl := include "slots-service.managementBaseUrl" . }}
{{- if $managementBaseUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_MANAGEMENT_BASE_URL
value: {{ $managementBaseUrl | quote }}
{{- end }}
{{- $healthUrl := include "slots-service.healthUrl" . }}
{{- if $healthUrl }}
- name: SPRING_BOOT_ADMIN_CLIENT_INSTANCE_HEALTH_URL
value: {{ $healthUrl | quote }}
{{- end }}
{{- with .Values.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.startupProbe.enabled }}
startupProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: {{ .Values.startupProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.startupProbe.periodSeconds }}
timeoutSeconds: {{ .Values.startupProbe.timeoutSeconds }}
failureThreshold: {{ .Values.startupProbe.failureThreshold }}
{{- end }}
readinessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 20
periodSeconds: 15
timeoutSeconds: 5
livenessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 40
periodSeconds: 20
timeoutSeconds: 5
resources:
{{- toYaml .Values.resources | nindent 12 }}
+31
View File
@@ -0,0 +1,31 @@
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "slots-service.fullname" . }}
labels:
{{- include "slots-service.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className | quote }}
{{- end }}
{{- with .Values.ingress.tls }}
tls:
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
- host: {{ .Values.ingress.host | quote }}
http:
paths:
- path: {{ .Values.ingress.path | quote }}
pathType: {{ .Values.ingress.pathType }}
backend:
service:
name: {{ include "slots-service.fullname" . }}
port:
number: {{ .Values.service.port }}
{{- end }}
+16
View File
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "slots-service.fullname" . }}
labels:
{{- include "slots-service.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
selector:
app.kubernetes.io/name: {{ include "slots-service.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
ports:
- name: http
port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
+25
View File
@@ -0,0 +1,25 @@
app:
profile: dev
configLabel: dev
adminClientUrl: "http://pcp-spring-boot-admin-server:38889"
service:
port: 8080
ingress:
enabled: true
host: pcp-slots-service.dev.k8s.264.nstart.cloud
extraEnv:
- name: SERVER_PORT
value: "8080"
- name: SPRING_DATASOURCE_HIKARI_MAXIMUM_POOL_SIZE
value: "20"
- name: SPRING_DATASOURCE_HIKARI_MINIMUM_IDLE
value: "0"
- name: SPRING_DATASOURCE_HIKARI_CONNECTION_TIMEOUT
value: "10000"
- name: SPRING_FLYWAY_CONNECT_RETRIES
value: "10"
- name: SPRING_FLYWAY_CONNECT_RETRIES_INTERVAL
value: "5s"
+24
View File
@@ -0,0 +1,24 @@
app:
profile: master
configLabel: master
service:
port: 8080
ingress:
enabled: true
host: pcp-slots-service.master.k8s.264.nstart.cloud
extraEnv:
- name: SERVER_PORT
value: "8080"
- name: SPRING_DATASOURCE_HIKARI_MAXIMUM_POOL_SIZE
value: "20"
- name: SPRING_DATASOURCE_HIKARI_MINIMUM_IDLE
value: "0"
- name: SPRING_DATASOURCE_HIKARI_CONNECTION_TIMEOUT
value: "10000"
- name: SPRING_FLYWAY_CONNECT_RETRIES
value: "10"
- name: SPRING_FLYWAY_CONNECT_RETRIES_INTERVAL
value: "5s"
+56
View File
@@ -0,0 +1,56 @@
replicaCount: 1
progressDeadlineSeconds: 1800
image:
repository: registry.example.com/pcp/slots-service
tag: latest
pullPolicy: IfNotPresent
pullSecrets: []
service:
type: ClusterIP
port: 8080
app:
profile: master
configServerUri: "http://spring-cloud-config-server:38888"
configServerFailFast: "true"
configLabel: master
adminClientUrl: ""
serviceBaseUrl: ""
serviceBaseUrlScheme: ""
servicePath: "/swagger/ui"
managementBaseUrl: ""
healthUrl: ""
ingress:
enabled: false
className: ""
annotations: {}
host: ""
path: /
pathType: Prefix
tls: []
extraEnv: []
startupProbe:
enabled: true
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 180
resources:
requests:
cpu: "1"
memory: "2Gi"
limits:
cpu: "16"
memory: "8Gi"
podAnnotations: {}
podLabels: {}
nameOverride: "pcp-slots-service"
fullnameOverride: "pcp-slots-service"
@@ -0,0 +1,6 @@
apiVersion: v2
name: spring-cloud-config-server
description: Helm chart for deploying spring-cloud-config-server from GitLab CI/CD.
type: application
version: 0.1.0
appVersion: "1.0.0"
@@ -0,0 +1,18 @@
{{- define "spring-cloud-config-server.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- define "spring-cloud-config-server.fullname" -}}
{{- if .Values.fullnameOverride -}}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
{{- else -}}
{{- include "spring-cloud-config-server.name" . | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- end -}}
{{- define "spring-cloud-config-server.labels" -}}
app.kubernetes.io/name: {{ include "spring-cloud-config-server.name" . }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}
@@ -0,0 +1,75 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "spring-cloud-config-server.fullname" . }}
labels:
{{- include "spring-cloud-config-server.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "spring-cloud-config-server.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
labels:
{{- include "spring-cloud-config-server.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.image.pullSecrets }}
imagePullSecrets:
{{- range . }}
- name: {{ . }}
{{- end }}
{{- end }}
containers:
- name: {{ include "spring-cloud-config-server.name" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.targetPort }}
protocol: TCP
env:
- name: SERVER_PORT
value: {{ .Values.service.targetPort | quote }}
- name: CONFIG_GIT_URI
value: {{ .Values.app.configGitUri | quote }}
- name: CONFIG_GIT_USERNAME
value: {{ .Values.app.configGitUsername | quote }}
- name: CONFIG_GIT_DEFAULT_LABEL
value: {{ .Values.app.configGitDefaultLabel | quote }}
- name: CONFIG_GIT_SEARCH_PATHS
value: {{ .Values.app.configGitSearchPaths | quote }}
- name: CONFIG_GIT_SKIP_SSL_VALIDATION
value: {{ .Values.app.configGitSkipSslValidation | quote }}
- name: CONFIG_GIT_TOKEN
valueFrom:
secretKeyRef:
name: {{ .Values.gitTokenSecret.name | quote }}
key: {{ .Values.gitTokenSecret.key | quote }}
{{- with .Values.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
readinessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 20
periodSeconds: 15
timeoutSeconds: 5
livenessProbe:
httpGet:
path: /actuator/health
port: http
initialDelaySeconds: 40
periodSeconds: 20
timeoutSeconds: 5
resources:
{{- toYaml .Values.resources | nindent 12 }}
@@ -0,0 +1,31 @@
{{- if .Values.ingress.enabled -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "spring-cloud-config-server.fullname" . }}
labels:
{{- include "spring-cloud-config-server.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className | quote }}
{{- end }}
{{- with .Values.ingress.tls }}
tls:
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
- host: {{ .Values.ingress.host | quote }}
http:
paths:
- path: {{ .Values.ingress.path | quote }}
pathType: {{ .Values.ingress.pathType }}
backend:
service:
name: {{ include "spring-cloud-config-server.fullname" . }}
port:
number: {{ .Values.service.port }}
{{- end }}
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "spring-cloud-config-server.fullname" . }}
labels:
{{- include "spring-cloud-config-server.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
selector:
app.kubernetes.io/name: {{ include "spring-cloud-config-server.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
ports:
- name: http
port: {{ .Values.service.port }}
targetPort: http
protocol: TCP

Some files were not shown because too many files have changed in this diff Show More