Skip to content
Snippets Groups Projects
Commit 7f5a0960 authored by dgiannopoulos's avatar dgiannopoulos
Browse files

feat: added cridge to helm chart

parent f43b8cc0
No related branches found
No related tags found
4 merge requests!34Merging develop (merged from 2024Q2_RC) into main creating for 2024Q2 Release,!33Merging 2024Q2_RC into main creating for 2024Q2 Release,!29Resolve "Expose all configurable parameters during Kubernetes deployment",!28Resolve "Kubernetes installation needs to include CRIDGE component"
Pipeline #5486 passed
apiVersion: v1
kind: Config
clusters:
- name: development-cluster
cluster:
certificate-authority: path/to/ca.crt # Path to certificate authority file
server: https://123.45.67.89:6443 # Cluster API server address
contexts:
- name: dev-user@development-cluster
context:
cluster: development-cluster
namespace: development # Default namespace
user: dev-user
current-context: dev-user@development-cluster
users:
- name: dev-user
user:
client-certificate: path/to/cert.crt # Path to the client certificate
client-key: path/to/key.key # Path to the client key
apiVersion: v1
kind: ConfigMap
metadata:
namespace: {{ .Release.Namespace }}
labels:
app: {{ include "openslice.fullname" . }}
org.etsi.osl.service: cridge
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
{{- include "openslice.labels" . | nindent 4 }}
name: {{ include "openslice.fullname" . }}-cridge-kubeconfig
data:
kubeconfig: |-
{{ .Files.Get "files/org.etsi.osl.cridge/kubeconfig.yaml" | indent 4 }}
apiVersion: apps/v1
kind: StatefulSet
metadata:
namespace: {{ .Release.Namespace }}
labels:
app: {{ include "openslice.fullname" . }}
org.etsi.osl.service: cridge
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
{{- include "openslice.labels" . | nindent 4 }}
name: {{ include "openslice.fullname" . }}-cridge
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
serviceName: {{ include "openslice.fullname" . }}-cridge
selector:
matchLabels:
app: {{ include "openslice.fullname" . }}
org.etsi.osl.service: cridge
{{- include "openslice.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
app: {{ include "openslice.fullname" . }}
org.etsi.osl.service: cridge
{{- include "openslice.selectorLabels" . | nindent 8 }}
spec:
initContainers:
- name: init-osscapi
image: busybox:1.28
command: ['sh', '-c', "until nslookup {{ include "openslice.fullname" . }}-osscapi; do echo waiting for osscapi; sleep 2; done"]
containers:
- image: "{{ .Values.image.cridge.repository }}:{{ .Values.image.cridge.tag | default .Chart.AppVersion }}"
name: {{ include "openslice.fullname" . }}-cridge
env:
- name: SPRING_APPLICATION_JSON
value: >-
{
"spring.activemq.brokerUrl": "tcp://{{ include "openslice.fullname" . }}-artemis:61616?jms.watchTopicAdvisories=false",
"spring.activemq.user": "{{ .Values.oscreds.activemq.user }}",
"spring.activemq.password": "{{ .Values.oscreds.activemq.password }}",
"logging.level.org.springframework" : "{{ .Values.spring.logLevel | default 'INFO' }}",
"org.etsi.osl.cridge" : "{{ .Values.cridge.mode | default 'DEBUG' }}"
}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- name: cridge-kubeconfig
readOnly: true
mountPath: /root/.kube
readinessProbe:
exec:
command: ["sh", "-c", "kubectl version --client"]
initialDelaySeconds: 5
periodSeconds: 2
timeoutSeconds: 1
restartPolicy: Always
volumes:
- name: cridge-kubeconfig
configMap:
name: {{ include "openslice.fullname" . }}-cridge-kubeconfig
...@@ -36,6 +36,10 @@ spec: ...@@ -36,6 +36,10 @@ spec:
- name: portalweb-configuration - name: portalweb-configuration
mountPath: /usr/share/nginx/html/nfvportal/js/config.js mountPath: /usr/share/nginx/html/nfvportal/js/config.js
subPath: config.js subPath: config.js
readinessProbe:
httpGet:
path: /tmf-api/serviceCatalogManagement/v4
port: 80
volumes: volumes:
- name: portalweb-configuration - name: portalweb-configuration
configMap: configMap:
......
...@@ -75,6 +75,11 @@ image: ...@@ -75,6 +75,11 @@ image:
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion. # Overrides the image tag whose default is the chart appVersion.
tag: "develop" tag: "develop"
cridge:
repository: labs.etsi.org:5050/osl/code/org.etsi.osl.cridge
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "develop"
bugzillaurl: example.com:443/bugzilla bugzillaurl: example.com:443/bugzilla
bugzillakey: VH2Vw0iI5aYgALFFzVDWqhACwt6Hu3bXla9kSC1Z bugzillakey: VH2Vw0iI5aYgALFFzVDWqhACwt6Hu3bXla9kSC1Z
...@@ -107,6 +112,9 @@ spring: ...@@ -107,6 +112,9 @@ spring:
mysql: mysql:
storage: 10Gi storage: 10Gi
cridge:
mode: "DEBUG"
# Storage class to be used for provisioning. Default is manual # Storage class to be used for provisioning. Default is manual
# storageClass: ~ # storageClass: ~
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment