Commit 0e583b71 authored by Francesco-gmail's avatar Francesco-gmail
Browse files

test

parents
Pipeline #175459 passed with stage
in 6 seconds
image: gitlab-registry.fbk.eu/gscdev/containers/cloud-utils
stages:
- upload
upload:
stage: upload
script:
- chart_version=$(helm package . | awk -F/ '{print $7}') #--version 1.0.0
- curl --request POST --user gitlab-ci-token:$CI_JOB_TOKEN --form "chart=@$chart_version" "${CI_API_V4_URL}/projects/4410/packages/helm/api/stable/charts"
apiVersion: v2
name: common-fbk
description: Function library for fbk charts
type: library
version: 4.4.2
kubeVersion: ">=1.19.0-0"
keywords:
- fbk
- common
home: https://github.com/k8s-at-home/library-charts/tree/main/stable/common
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "name" . }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
# Old without template override: name: {{ template "name" . }}
name: {{ template "ingress.name" . }}
# SHOULD USE name: {{ template "name" . }}
{{- include "labels" . | indent 2 }}
annotations:
kubernetes.io/ingress.class: {{ .Values.ingress.nginx_class | quote }}
{{ if .Values.ingress.nginx_affinity }}
nginx.ingress.kubernetes.io/affinity: "cookie"
nginx.ingress.kubernetes.io/session-cookie-name: "route"
nginx.ingress.kubernetes.io/session-cookie-path: "/"
nginx.ingress.kubernetes.io/session-cookie-expires: "172800"
nginx.ingress.kubernetes.io/session-cookie-max-age: "172800"
{{- end }}
{{- with .Values.ingress.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
rules:
{{- range .Values.ingress.hosts }}
- host: {{ tpl .host $ | quote }}
http:
paths:
{{- if .enableMultiPath -}}
{{- range .paths }}
- path: {{ .path }}
backend:
serviceName: {{ .serviceName }}
servicePort: {{ .servicePort }}
{{- end }}
{{- else }}
{{- range .paths }}
- path: {{ . }}
backend:
serviceName: {{ $fullName }}
servicePort: 80
{{- end }}
{{- end }}
{{- end }}
{{- with .Values.ingress.tls }}
tls:
{{- range . }}
- hosts:
{{- range $elem, $elemVal := .hosts }}
- {{ tpl $elemVal $ | quote }}
{{- end }}
{{- if .secretName }}
secretName: {{ tpl .secretName $ | quote }}
{{- end }}
{{- end }}
{{- end -}}
{{- end }}
\ No newline at end of file
# Default values for the common chart
####################################
# deployment.yaml variables
replicaCount: 1
image:
repository: trecregistry.azurecr.io/trec/microservices/test-fbk-sit-cloud
pullPolicy: Always
pullSecret: trecregistry-credentials
jsonLog: true # Enable log in JSON format
redis:
host: redis
port: 6379
env: [] # Add here the environment variables for the container
resources: {} # Specify here the resource requests and limits
nodeSelector: {}
affinity: {}
tolerations: []
## The following settings are to configure the frequency of the lifeness and readiness probes
livenessProbe:
enabled: true
initialDelaySeconds: 5
timeoutSeconds: 20
periodSeconds: 30
failureThreshold: 4
successThreshold: 1
readinessProbe:
enabled: true
initialDelaySeconds: 5
timeoutSeconds: 20
periodSeconds: 30
failureThreshold: 3
successThreshold: 1
############################
# service.yaml variables
service:
type: ClusterIP
port: 8080
prometheus:
# Enable the annotations used by Prometheus service to scrape the microservice metrics
scrape: true
############################
# ingress.yaml variables
ingress:
path: ""
global:
ingress:
hosts: []
annotations: {}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment