Merge branch 'master' of https://gitea.freeleaps.mathmast.com/freeleaps/freeleaps-ops
This commit is contained in:
commit
cb104808a7
@ -8,9 +8,30 @@ executeFreeleapsPipeline {
|
|||||||
serviceGitRepo = "https://gitea.freeleaps.mathmast.com/freeleaps/freeleaps-service-hub.git"
|
serviceGitRepo = "https://gitea.freeleaps.mathmast.com/freeleaps/freeleaps-service-hub.git"
|
||||||
serviceGitRepoType = 'monorepo'
|
serviceGitRepoType = 'monorepo'
|
||||||
serviceGitCredentialsId = 'freeleaps-ops-git-credentials'
|
serviceGitCredentialsId = 'freeleaps-ops-git-credentials'
|
||||||
executeMode = 'on-demand'
|
executeMode = 'fully'
|
||||||
commitMessageLintEnabled = false
|
commitMessageLintEnabled = false
|
||||||
components = [
|
components = [
|
||||||
|
[
|
||||||
|
name: 'metrics',
|
||||||
|
root: 'apps/metrics',
|
||||||
|
language: 'python',
|
||||||
|
dependenciesManager: 'pip',
|
||||||
|
requirementsFile: 'requirements.txt',
|
||||||
|
buildCacheEnabled: true,
|
||||||
|
buildAgentImage: 'python:3.12-slim',
|
||||||
|
buildArtifacts: ['.'],
|
||||||
|
lintEnabled: false,
|
||||||
|
sastEnabled: false,
|
||||||
|
imageRegistry: 'docker.io',
|
||||||
|
imageRepository: 'freeleaps',
|
||||||
|
imageName: 'metrics',
|
||||||
|
imageBuilder: 'dind',
|
||||||
|
dockerfilePath: 'Dockerfile',
|
||||||
|
imageBuildRoot: '.',
|
||||||
|
imageReleaseArchitectures: ['linux/amd64', 'linux/arm64/v8'],
|
||||||
|
registryCredentialsId: 'freeleaps-devops-docker-hub-credentials',
|
||||||
|
semanticReleaseEnabled: true
|
||||||
|
],
|
||||||
[
|
[
|
||||||
name: 'authentication',
|
name: 'authentication',
|
||||||
root: 'apps/authentication',
|
root: 'apps/authentication',
|
||||||
|
|||||||
@ -15,7 +15,7 @@ authentication:
|
|||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: null
|
repository: null
|
||||||
name: authentication
|
name: authentication
|
||||||
tag: snapshot-c406f6d
|
tag: snapshot-38ff0ae
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
|
|||||||
@ -13,7 +13,7 @@ authentication:
|
|||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: null
|
repository: null
|
||||||
name: authentication
|
name: authentication
|
||||||
tag: snapshot-046f9ff
|
tag: snapshot-4a5bdb4
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
|
|||||||
@ -15,7 +15,7 @@ centralStorage:
|
|||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: null
|
repository: null
|
||||||
name: central_storage
|
name: central_storage
|
||||||
tag: snapshot-12a0d9a
|
tag: snapshot-38ff0ae
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
@ -90,21 +90,21 @@ centralStorage:
|
|||||||
kind: FreeleapsSecretStore
|
kind: FreeleapsSecretStore
|
||||||
name: freeleaps-main-secret-store
|
name: freeleaps-main-secret-store
|
||||||
target:
|
target:
|
||||||
name: "freeleaps-central-storage-secrets"
|
name: freeleaps-central-storage-secrets
|
||||||
creationPolicy: "Owner"
|
creationPolicy: Owner
|
||||||
refreshInterval: 30s
|
refreshInterval: 30s
|
||||||
data:
|
data:
|
||||||
- key: mongodbUri
|
- key: mongodbUri
|
||||||
remoteRef:
|
remoteRef:
|
||||||
key: "freeleaps-alpha-mongodb-uri"
|
key: freeleaps-alpha-mongodb-uri
|
||||||
type: Secret
|
type: Secret
|
||||||
- key: azureStorageDocumentApiKey
|
- key: azureStorageDocumentApiKey
|
||||||
remoteRef:
|
remoteRef:
|
||||||
key: "freeleaps-alpha-azure-storage-document-api-key"
|
key: freeleaps-alpha-azure-storage-document-api-key
|
||||||
type: Secret
|
type: Secret
|
||||||
- key: azureStorageDocumentApiEndpoint
|
- key: azureStorageDocumentApiEndpoint
|
||||||
remoteRef:
|
remoteRef:
|
||||||
key: "freeleaps-alpha-azure-storage-document-api-endpoint"
|
key: freeleaps-alpha-azure-storage-document-api-endpoint
|
||||||
type: Secret
|
type: Secret
|
||||||
vpa:
|
vpa:
|
||||||
minAllowed:
|
minAllowed:
|
||||||
|
|||||||
@ -18,7 +18,7 @@ centralStorage:
|
|||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: null
|
repository: null
|
||||||
name: central_storage
|
name: central_storage
|
||||||
tag: snapshot-046f9ff
|
tag: snapshot-4a5bdb4
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
|
|||||||
@ -16,7 +16,7 @@ chat:
|
|||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: null
|
repository: null
|
||||||
name: chat
|
name: chat
|
||||||
tag: snapshot-72ca055
|
tag: snapshot-1213863
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
|
|||||||
@ -15,7 +15,7 @@ content:
|
|||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: null
|
repository: null
|
||||||
name: content
|
name: content
|
||||||
tag: snapshot-12a0d9a
|
tag: snapshot-38ff0ae
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
@ -90,17 +90,17 @@ content:
|
|||||||
kind: FreeleapsSecretStore
|
kind: FreeleapsSecretStore
|
||||||
name: freeleaps-main-secret-store
|
name: freeleaps-main-secret-store
|
||||||
target:
|
target:
|
||||||
name: "freeleaps-content-alpha-secrets"
|
name: freeleaps-content-alpha-secrets
|
||||||
creationPolicy: "Owner"
|
creationPolicy: Owner
|
||||||
refreshInterval: 30s
|
refreshInterval: 30s
|
||||||
data:
|
data:
|
||||||
- key: mongodbUri
|
- key: mongodbUri
|
||||||
remoteRef:
|
remoteRef:
|
||||||
key: "freeleaps-alpha-mongodb-uri"
|
key: freeleaps-alpha-mongodb-uri
|
||||||
type: Secret
|
type: Secret
|
||||||
- key: freeleapsWwwAsAzureClientSecret
|
- key: freeleapsWwwAsAzureClientSecret
|
||||||
remoteRef:
|
remoteRef:
|
||||||
key: "freeleaps-alpha-www-as-azure-client-secret"
|
key: freeleaps-alpha-www-as-azure-client-secret
|
||||||
type: Secret
|
type: Secret
|
||||||
vpa:
|
vpa:
|
||||||
minAllowed:
|
minAllowed:
|
||||||
|
|||||||
@ -13,7 +13,7 @@ content:
|
|||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: null
|
repository: null
|
||||||
name: content
|
name: content
|
||||||
tag: snapshot-046f9ff
|
tag: snapshot-4a5bdb4
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
|
|||||||
@ -10,7 +10,7 @@ devops:
|
|||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: null
|
repository: null
|
||||||
name: devops
|
name: devops
|
||||||
tag: snapshot-45b4ebd
|
tag: snapshot-38ff0ae
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
|
|||||||
@ -10,7 +10,7 @@ devops:
|
|||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: null
|
repository: null
|
||||||
name: devops
|
name: devops
|
||||||
tag: snapshot-046f9ff
|
tag: snapshot-4a5bdb4
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
|
|||||||
@ -18,7 +18,7 @@ devsvc:
|
|||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: null
|
repository: null
|
||||||
name: devsvc
|
name: devsvc
|
||||||
tag: snapshot-64a4ff7
|
tag: 1.3.0
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
|
|||||||
@ -16,7 +16,7 @@ freeleaps:
|
|||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: null
|
repository: null
|
||||||
name: backend
|
name: backend
|
||||||
tag: snapshot-72ca055
|
tag: snapshot-1213863
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
|
|||||||
@ -8,7 +8,7 @@ frontend:
|
|||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: null
|
repository: null
|
||||||
name: frontend
|
name: frontend
|
||||||
tag: snapshot-72ca055
|
tag: snapshot-1213863
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
|
|||||||
6
freeleaps/helm-pkg/metrics/Chart.yaml
Normal file
6
freeleaps/helm-pkg/metrics/Chart.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
name: metrics
|
||||||
|
description: A Helm Chart of metrics, which part of Freeleaps Platform, powered by Freeleaps.
|
||||||
|
type: application
|
||||||
|
version: 0.0.1
|
||||||
|
appVersion: "0.0.1"
|
||||||
97
freeleaps/helm-pkg/metrics/templates/metrics/deployment.yaml
Normal file
97
freeleaps/helm-pkg/metrics/templates/metrics/deployment.yaml
Normal file
@ -0,0 +1,97 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||||
|
app.kubernetes.io/name: "metrics"
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
name: "metrics"
|
||||||
|
namespace: {{ .Release.Namespace | quote }}
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: "metrics"
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
replicas: {{ .Values.metrics.replicas }}
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||||
|
app.kubernetes.io/name: "metrics"
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
annotations:
|
||||||
|
app.kubernetes.io/config-checksum: {{ include (print $.Template.BasePath "/metrics/metrics-config.yaml") . | sha256sum }}
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: "metrics"
|
||||||
|
image: "{{ coalesce .Values.metrics.image.registry .Values.global.registry "docker.io"}}/{{ coalesce .Values.metrics.image.repository .Values.global.repository }}/{{ .Values.metrics.image.name }}:{{ .Values.metrics.image.tag | default "latest" }}"
|
||||||
|
imagePullPolicy: {{ .Values.metrics.image.imagePullPolicy | default "IfNotPresent" }}
|
||||||
|
ports:
|
||||||
|
{{- range $port := .Values.metrics.ports }}
|
||||||
|
- containerPort: {{ $port.containerPort }}
|
||||||
|
name: {{ $port.name }}
|
||||||
|
protocol: {{ $port.protocol }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.metrics.resources }}
|
||||||
|
resources:
|
||||||
|
{{- toYaml .Values.metrics.resources | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.metrics.probes }}
|
||||||
|
{{- if and (.Values.metrics.probes.liveness) (eq .Values.metrics.probes.liveness.type "httpGet") }}
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: {{ .Values.metrics.probes.liveness.config.path }}
|
||||||
|
port: {{ .Values.metrics.probes.liveness.config.port }}
|
||||||
|
{{- if .Values.metrics.probes.liveness.config.initialDelaySeconds }}
|
||||||
|
initialDelaySeconds: {{ .Values.metrics.probes.liveness.config.initialDelaySeconds }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.metrics.probes.liveness.config.periodSeconds }}
|
||||||
|
periodSeconds: {{ .Values.metrics.probes.liveness.config.periodSeconds }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.metrics.probes.liveness.config.timeoutSeconds }}
|
||||||
|
timeoutSeconds: {{ .Values.metrics.probes.liveness.config.timeoutSeconds }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.metrics.probes.liveness.config.successThreshold }}
|
||||||
|
successThreshold: {{ .Values.metrics.probes.liveness.config.successThreshold }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.metrics.probes.liveness.config.failureThreshold }}
|
||||||
|
failureThreshold: {{ .Values.metrics.probes.liveness.config.failureThreshold }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.metrics.probes.liveness.config.terminationGracePeriodSeconds }}
|
||||||
|
terminationGracePeriodSeconds: {{ .Values.metrics.probes.liveness.config.terminationGracePeriodSeconds }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if and (.Values.metrics.probes.readiness) (eq .Values.metrics.probes.readiness.type "httpGet") }}
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: {{ .Values.metrics.probes.readiness.config.path }}
|
||||||
|
port: {{ .Values.metrics.probes.readiness.config.port }}
|
||||||
|
{{- if .Values.metrics.probes.readiness.config.initialDelaySeconds }}
|
||||||
|
initialDelaySeconds: {{ .Values.metrics.probes.readiness.config.initialDelaySeconds }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.metrics.probes.readiness.config.periodSeconds }}
|
||||||
|
periodSeconds: {{ .Values.metrics.probes.readiness.config.periodSeconds }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.metrics.probes.readiness.config.timeoutSeconds }}
|
||||||
|
timeoutSeconds: {{ .Values.metrics.probes.readiness.config.timeoutSeconds }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.metrics.probes.readiness.config.successThreshold }}
|
||||||
|
successThreshold: {{ .Values.metrics.probes.readiness.config.successThreshold }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.metrics.probes.readiness.config.failureThreshold }}
|
||||||
|
failureThreshold: {{ .Values.metrics.probes.readiness.config.failureThreshold }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end}}
|
||||||
|
env:
|
||||||
|
{{- range $key, $value := .Values.metrics.configs }}
|
||||||
|
- name: {{ $key | snakecase | upper }}
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: metrics-config
|
||||||
|
key: {{ $key | snakecase | upper }}
|
||||||
|
{{- end }}
|
||||||
@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: metrics-config
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
type: Opaque
|
||||||
|
data:
|
||||||
|
STARROCKS_HOST: {{ .Values.metrics.configs.starrocksHost | b64enc | quote }}
|
||||||
|
STARROCKS_PORT: {{ .Values.metrics.configs.starrocksPort | toString | b64enc | quote }}
|
||||||
|
STARROCKS_USER: {{ .Values.metrics.configs.starrocksUser | b64enc | quote }}
|
||||||
|
STARROCKS_PASSWORD: {{ .Values.metrics.configs.starrocksPassword | b64enc | quote }}
|
||||||
|
STARROCKS_DATABASE: {{ .Values.metrics.configs.starrocksDatabase | b64enc | quote }}
|
||||||
|
PROMETHEUS_ENDPOINT: {{ .Values.metrics.configs.prometheusEndpoint | b64enc | quote }}
|
||||||
26
freeleaps/helm-pkg/metrics/templates/metrics/service.yaml
Normal file
26
freeleaps/helm-pkg/metrics/templates/metrics/service.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{{ $namespace := .Release.Namespace }}
|
||||||
|
{{ $appVersion := .Chart.AppVersion | quote }}
|
||||||
|
{{ $releaseService := .Release.Service }}
|
||||||
|
{{ $releaseName := .Release.Name }}
|
||||||
|
{{- range $service := .Values.metrics.services }}
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: {{ $service.name }}
|
||||||
|
namespace: {{ $namespace }}
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/version: {{ $appVersion }}
|
||||||
|
app.kubernetes.io/name: {{ $service.name | quote }}
|
||||||
|
app.kubernetes.io/managed-by: {{ $releaseService }}
|
||||||
|
app.kubernetes.io/instance: {{ $releaseName }}
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: {{ $service.port }}
|
||||||
|
targetPort: {{ $service.targetPort }}
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/version: {{ $appVersion }}
|
||||||
|
app.kubernetes.io/name: "metrics"
|
||||||
|
app.kubernetes.io/managed-by: {{ $releaseService }}
|
||||||
|
app.kubernetes.io/instance: {{ $releaseName }}
|
||||||
|
{{- end }}
|
||||||
32
freeleaps/helm-pkg/metrics/templates/metrics/vpa.yaml
Normal file
32
freeleaps/helm-pkg/metrics/templates/metrics/vpa.yaml
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{{- if .Values.metrics.vpa }}
|
||||||
|
---
|
||||||
|
apiVersion: autoscaling.k8s.io/v1
|
||||||
|
kind: VerticalPodAutoscaler
|
||||||
|
metadata:
|
||||||
|
name: {{ .Release.Name }}-vpa
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
spec:
|
||||||
|
targetRef:
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
name: metrics
|
||||||
|
resourcePolicy:
|
||||||
|
containerPolicies:
|
||||||
|
- containerName: '*'
|
||||||
|
{{- if .Values.metrics.vpa.minAllowed.enabled }}
|
||||||
|
minAllowed:
|
||||||
|
cpu: {{ .Values.metrics.vpa.minAllowed.cpu }}
|
||||||
|
memory: {{ .Values.metrics.vpa.minAllowed.memory }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.metrics.vpa.maxAllowed.enabled }}
|
||||||
|
maxAllowed:
|
||||||
|
cpu: {{ .Values.metrics.vpa.maxAllowed.cpu }}
|
||||||
|
memory: {{ .Values.metrics.vpa.maxAllowed.memory }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.metrics.vpa.controlledResources }}
|
||||||
|
controlledResources:
|
||||||
|
{{- range .Values.metrics.vpa.controlledResources }}
|
||||||
|
- {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
71
freeleaps/helm-pkg/metrics/values.alpha.yaml
Normal file
71
freeleaps/helm-pkg/metrics/values.alpha.yaml
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
global:
|
||||||
|
registry: docker.io
|
||||||
|
repository: freeleaps
|
||||||
|
nodeSelector: {}
|
||||||
|
logIngest:
|
||||||
|
enabled: false
|
||||||
|
metrics:
|
||||||
|
replicas: 1
|
||||||
|
image:
|
||||||
|
registry: docker.io
|
||||||
|
repository: null
|
||||||
|
name: metrics
|
||||||
|
tag: snapshot-38ff0ae
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 8009
|
||||||
|
protocol: TCP
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: '0.1'
|
||||||
|
memory: 64Mi
|
||||||
|
limits:
|
||||||
|
cpu: '0.2'
|
||||||
|
memory: 128Mi
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
type: httpGet
|
||||||
|
config:
|
||||||
|
path: /api/_/livez
|
||||||
|
port: 8009
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 5
|
||||||
|
terminationGracePeriodSeconds: 30
|
||||||
|
readiness:
|
||||||
|
type: httpGet
|
||||||
|
config:
|
||||||
|
path: /api/_/readyz
|
||||||
|
port: 8009
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 5
|
||||||
|
services:
|
||||||
|
- name: metrics-service
|
||||||
|
type: ClusterIP
|
||||||
|
port: 8009
|
||||||
|
targetPort: 8009
|
||||||
|
configs:
|
||||||
|
starrocksHost: freeleaps-starrocks-cluster-fe-service.freeleaps-data-platform.svc
|
||||||
|
starrocksPort: 9030
|
||||||
|
starrocksUser: freeleaps_dw_admin
|
||||||
|
starrocksPassword: r7Y@QTb*7BQN@hDGsN
|
||||||
|
starrocksDatabase: freeleaps
|
||||||
|
prometheusEndpoint: http://kube-prometheus-stack-prometheus.freeleaps-monitoring-system:9090
|
||||||
|
vpa:
|
||||||
|
minAllowed:
|
||||||
|
enabled: false
|
||||||
|
cpu: 100m
|
||||||
|
memory: 64Mi
|
||||||
|
maxAllowed:
|
||||||
|
enabled: true
|
||||||
|
cpu: 100m
|
||||||
|
memory: 128Mi
|
||||||
|
controlledResources:
|
||||||
|
- cpu
|
||||||
|
- memory
|
||||||
71
freeleaps/helm-pkg/metrics/values.prod.yaml
Normal file
71
freeleaps/helm-pkg/metrics/values.prod.yaml
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
global:
|
||||||
|
registry: docker.io
|
||||||
|
repository: freeleaps
|
||||||
|
nodeSelector: {}
|
||||||
|
logIngest:
|
||||||
|
enabled: false
|
||||||
|
metrics:
|
||||||
|
replicas: 1
|
||||||
|
image:
|
||||||
|
registry: docker.io
|
||||||
|
repository: null
|
||||||
|
name: metrics
|
||||||
|
tag: snapshot-38ff0ae
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 8009
|
||||||
|
protocol: TCP
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: '0.1'
|
||||||
|
memory: 64Mi
|
||||||
|
limits:
|
||||||
|
cpu: '0.2'
|
||||||
|
memory: 128Mi
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
type: httpGet
|
||||||
|
config:
|
||||||
|
path: /api/_/livez
|
||||||
|
port: 8009
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 5
|
||||||
|
terminationGracePeriodSeconds: 30
|
||||||
|
readiness:
|
||||||
|
type: httpGet
|
||||||
|
config:
|
||||||
|
path: /api/_/readyz
|
||||||
|
port: 8009
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 5
|
||||||
|
services:
|
||||||
|
- name: metrics-service
|
||||||
|
type: ClusterIP
|
||||||
|
port: 8009
|
||||||
|
targetPort: 8009
|
||||||
|
configs:
|
||||||
|
starrocksHost: freeleaps-starrocks-cluster-fe-service.freeleaps-data-platform.svc
|
||||||
|
starrocksPort: 9030
|
||||||
|
starrocksUser: freeleaps_dw_admin
|
||||||
|
starrocksPassword: r7Y@QTb*7BQN@hDGsN
|
||||||
|
starrocksDatabase: freeleaps
|
||||||
|
prometheusEndpoint: http://kube-prometheus-stack-prometheus.freeleaps-monitoring-system:9090
|
||||||
|
vpa:
|
||||||
|
minAllowed:
|
||||||
|
enabled: false
|
||||||
|
cpu: 100m
|
||||||
|
memory: 64Mi
|
||||||
|
maxAllowed:
|
||||||
|
enabled: true
|
||||||
|
cpu: 100m
|
||||||
|
memory: 128Mi
|
||||||
|
controlledResources:
|
||||||
|
- cpu
|
||||||
|
- memory
|
||||||
71
freeleaps/helm-pkg/metrics/values.yaml
Normal file
71
freeleaps/helm-pkg/metrics/values.yaml
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
global:
|
||||||
|
registry: docker.io
|
||||||
|
repository: freeleaps
|
||||||
|
nodeSelector: {}
|
||||||
|
logIngest:
|
||||||
|
enabled: false
|
||||||
|
metrics:
|
||||||
|
replicas: 1
|
||||||
|
image:
|
||||||
|
registry: docker.io
|
||||||
|
repository: null
|
||||||
|
name: metrics
|
||||||
|
tag: "1.0.0"
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 8009
|
||||||
|
protocol: TCP
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: '0.1'
|
||||||
|
memory: 64Mi
|
||||||
|
limits:
|
||||||
|
cpu: '0.2'
|
||||||
|
memory: 128Mi
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
type: httpGet
|
||||||
|
config:
|
||||||
|
path: /api/_/livez
|
||||||
|
port: 8009
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 5
|
||||||
|
terminationGracePeriodSeconds: 30
|
||||||
|
readiness:
|
||||||
|
type: httpGet
|
||||||
|
config:
|
||||||
|
path: /api/_/readyz
|
||||||
|
port: 8009
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 5
|
||||||
|
services:
|
||||||
|
- name: metrics-service
|
||||||
|
type: ClusterIP
|
||||||
|
port: 8009
|
||||||
|
targetPort: 8009
|
||||||
|
configs:
|
||||||
|
starrocksHost: ""
|
||||||
|
starrocksPort: 8009
|
||||||
|
starrocksUser: ""
|
||||||
|
starrocksPassword: ""
|
||||||
|
starrocksDatabase: ""
|
||||||
|
prometheusEndpoint: ""
|
||||||
|
vpa:
|
||||||
|
minAllowed:
|
||||||
|
enabled: false
|
||||||
|
cpu: 100m
|
||||||
|
memory: 64Mi
|
||||||
|
maxAllowed:
|
||||||
|
enabled: true
|
||||||
|
cpu: 100m
|
||||||
|
memory: 128Mi
|
||||||
|
controlledResources:
|
||||||
|
- cpu
|
||||||
|
- memory
|
||||||
@ -10,6 +10,7 @@ data:
|
|||||||
SERVICE_API_ACCESS_HOST: {{ .Values.notification.configs.serviceApiAccessHost | b64enc | quote }}
|
SERVICE_API_ACCESS_HOST: {{ .Values.notification.configs.serviceApiAccessHost | b64enc | quote }}
|
||||||
SERVICE_API_ACCESS_PORT: {{ .Values.notification.configs.serviceApiAccessPort | toString | b64enc }}
|
SERVICE_API_ACCESS_PORT: {{ .Values.notification.configs.serviceApiAccessPort | toString | b64enc }}
|
||||||
RABBITMQ_HOST: {{ .Values.notification.configs.rabbitmqHost | b64enc | quote }}
|
RABBITMQ_HOST: {{ .Values.notification.configs.rabbitmqHost | b64enc | quote }}
|
||||||
|
AUTH_SERVICE_ENDPOINT: {{ .Values.notification.configs.authServiceEndpoint | b64enc | quote }}
|
||||||
RABBITMQ_PORT: {{ .Values.notification.configs.rabbitmqPort | toString | b64enc }}
|
RABBITMQ_PORT: {{ .Values.notification.configs.rabbitmqPort | toString | b64enc }}
|
||||||
RABBITMQ_USERNAME: {{ .Values.notification.configs.rabbitmqUsername | b64enc | quote }}
|
RABBITMQ_USERNAME: {{ .Values.notification.configs.rabbitmqUsername | b64enc | quote }}
|
||||||
RABBITMQ_VRITUAL_HOST: {{ .Values.notification.configs.rabbitmqVritualHost | b64enc | quote }}
|
RABBITMQ_VRITUAL_HOST: {{ .Values.notification.configs.rabbitmqVritualHost | b64enc | quote }}
|
||||||
|
|||||||
@ -15,7 +15,7 @@ notification:
|
|||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: null
|
repository: null
|
||||||
name: notification
|
name: notification
|
||||||
tag: snapshot-3301aec
|
tag: snapshot-38ff0ae
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
@ -34,7 +34,7 @@ notification:
|
|||||||
config:
|
config:
|
||||||
path: /api/_/readyz
|
path: /api/_/readyz
|
||||||
port: 8003
|
port: 8003
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 30
|
||||||
periodSeconds: 30
|
periodSeconds: 30
|
||||||
timeoutSeconds: 3
|
timeoutSeconds: 3
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
@ -44,7 +44,7 @@ notification:
|
|||||||
config:
|
config:
|
||||||
path: /api/_/livez
|
path: /api/_/livez
|
||||||
port: 8003
|
port: 8003
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 30
|
||||||
periodSeconds: 15
|
periodSeconds: 15
|
||||||
timeoutSeconds: 3
|
timeoutSeconds: 3
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
@ -83,6 +83,7 @@ notification:
|
|||||||
mongodbName: freeleaps2
|
mongodbName: freeleaps2
|
||||||
mongodbPort: 27017
|
mongodbPort: 27017
|
||||||
rabbitmqHost: freeleaps-alpha-rabbitmq.freeleaps-alpha.svc.freeleaps.cluster
|
rabbitmqHost: freeleaps-alpha-rabbitmq.freeleaps-alpha.svc.freeleaps.cluster
|
||||||
|
authServiceEndpoint: http://freeleaps-auth-service.68c0da88a0a7837e84b580eb-alpha.svc.freeleaps.cluster:9000/api/v1/keys/
|
||||||
rabbitmqPort: 5672
|
rabbitmqPort: 5672
|
||||||
rabbitmqUsername: user
|
rabbitmqUsername: user
|
||||||
rabbitmqVritualHost: /
|
rabbitmqVritualHost: /
|
||||||
|
|||||||
@ -13,7 +13,7 @@ notification:
|
|||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: null
|
repository: null
|
||||||
name: notification
|
name: notification
|
||||||
tag: snapshot-046f9ff
|
tag: snapshot-4a5bdb4
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
@ -32,7 +32,7 @@ notification:
|
|||||||
config:
|
config:
|
||||||
path: /api/_/readyz
|
path: /api/_/readyz
|
||||||
port: 8003
|
port: 8003
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 30
|
||||||
periodSeconds: 30
|
periodSeconds: 30
|
||||||
timeoutSeconds: 3
|
timeoutSeconds: 3
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
@ -42,7 +42,7 @@ notification:
|
|||||||
config:
|
config:
|
||||||
path: /api/_/livez
|
path: /api/_/livez
|
||||||
port: 8003
|
port: 8003
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 30
|
||||||
periodSeconds: 15
|
periodSeconds: 15
|
||||||
timeoutSeconds: 3
|
timeoutSeconds: 3
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
@ -69,6 +69,7 @@ notification:
|
|||||||
mongodbName: freeleaps2
|
mongodbName: freeleaps2
|
||||||
mongodbPort: 27017
|
mongodbPort: 27017
|
||||||
rabbitmqHost: freeleaps-prod-rabbitmq-headless.freeleaps-prod.svc.freeleaps.cluster
|
rabbitmqHost: freeleaps-prod-rabbitmq-headless.freeleaps-prod.svc.freeleaps.cluster
|
||||||
|
authServiceEndpoint: http://freeleaps-auth-service.68c0da88a0a7837e84b580eb-prod.svc.freeleaps.cluster:9000/api/v1/keys/
|
||||||
rabbitmqPort: 5672
|
rabbitmqPort: 5672
|
||||||
rabbitmqUsername: user
|
rabbitmqUsername: user
|
||||||
rabbitmqVritualHost: /
|
rabbitmqVritualHost: /
|
||||||
|
|||||||
@ -61,6 +61,8 @@ notification:
|
|||||||
mongodbPort: "27017"
|
mongodbPort: "27017"
|
||||||
# RABBITMQ_HOST
|
# RABBITMQ_HOST
|
||||||
rabbitmqHost: ""
|
rabbitmqHost: ""
|
||||||
|
# AUTH_SERVICE_ENDPOINT
|
||||||
|
authServiceEndpoint: ""
|
||||||
# RABBITMQ_PORT
|
# RABBITMQ_PORT
|
||||||
rabbitmqPort: ""
|
rabbitmqPort: ""
|
||||||
# RABBITMQ_USERNAME
|
# RABBITMQ_USERNAME
|
||||||
|
|||||||
@ -15,7 +15,7 @@ payment:
|
|||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: null
|
repository: null
|
||||||
name: payment
|
name: payment
|
||||||
tag: snapshot-12a0d9a
|
tag: snapshot-38ff0ae
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
@ -96,11 +96,11 @@ payment:
|
|||||||
data:
|
data:
|
||||||
- key: mongodbUri
|
- key: mongodbUri
|
||||||
remoteRef:
|
remoteRef:
|
||||||
key: "freeleaps-alpha-mongodb-uri"
|
key: freeleaps-alpha-mongodb-uri
|
||||||
type: Secret
|
type: Secret
|
||||||
- key: stripeApiKey
|
- key: stripeApiKey
|
||||||
remoteRef:
|
remoteRef:
|
||||||
key: "freeleaps-alpha-stripe-api-key"
|
key: freeleaps-alpha-stripe-api-key
|
||||||
type: Secret
|
type: Secret
|
||||||
vpa:
|
vpa:
|
||||||
minAllowed:
|
minAllowed:
|
||||||
|
|||||||
@ -13,7 +13,7 @@ payment:
|
|||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: null
|
repository: null
|
||||||
name: payment
|
name: payment
|
||||||
tag: snapshot-046f9ff
|
tag: snapshot-4a5bdb4
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
|
|||||||
@ -135,6 +135,27 @@ executeFreeleapsPipeline {
|
|||||||
imageReleaseArchitectures: ['linux/amd64', 'linux/arm64/v8'],
|
imageReleaseArchitectures: ['linux/amd64', 'linux/arm64/v8'],
|
||||||
registryCredentialsId: 'freeleaps-devops-docker-hub-credentials',
|
registryCredentialsId: 'freeleaps-devops-docker-hub-credentials',
|
||||||
semanticReleaseEnabled: true
|
semanticReleaseEnabled: true
|
||||||
|
],
|
||||||
|
[
|
||||||
|
name: 'metrics',
|
||||||
|
root: 'apps/metrcis',
|
||||||
|
language: 'python',
|
||||||
|
dependenciesManager: 'pip',
|
||||||
|
requirementsFile: 'requirements.txt',
|
||||||
|
buildCacheEnabled: true,
|
||||||
|
buildAgentImage: 'python:3.12-slim',
|
||||||
|
buildArtifacts: ['.'],
|
||||||
|
lintEnabled: false,
|
||||||
|
sastEnabled: false,
|
||||||
|
imageRegistry: 'docker.io',
|
||||||
|
imageRepository: 'freeleaps',
|
||||||
|
imageName: 'devops',
|
||||||
|
imageBuilder: 'dind',
|
||||||
|
dockerfilePath: 'Dockerfile',
|
||||||
|
imageBuildRoot: '.',
|
||||||
|
imageReleaseArchitectures: ['linux/amd64', 'linux/arm64/v8'],
|
||||||
|
registryCredentialsId: 'freeleaps-devops-docker-hub-credentials',
|
||||||
|
semanticReleaseEnabled: true
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user