From 28085fb339dd501093da412aedb7e0dca5e7dbd2 Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Sat, 16 Mar 2024 14:20:52 +0800 Subject: [PATCH] itsm-backend-ticketing.yaml: update --- helmfiles/itsm-backend-ticketing.yaml | 89 ++++++++++++++------------- 1 file changed, 46 insertions(+), 43 deletions(-) diff --git a/helmfiles/itsm-backend-ticketing.yaml b/helmfiles/itsm-backend-ticketing.yaml index 2309cce..86e4cfd 100644 --- a/helmfiles/itsm-backend-ticketing.yaml +++ b/helmfiles/itsm-backend-ticketing.yaml @@ -1,49 +1,52 @@ repositories: -- name: stable - url: https://charts.onwalk.net - username: {{ requiredEnv "ARF_USERNAME" }} - password: {{ requiredEnv "ARF_PASSWORD" | quote }} + - name: stable + url: https://charts.onwalk.net + username: {{ requiredEnv "ARF_USERNAME" }} + password: {{ requiredEnv "ARF_PASSWORD" | quote }} -templates: - default: &default - namespace: itsm-tools-stg - createNamespace: false - chart: stable/app-backend - version: 0.1.3 +common: + namespace: itsm-tools-stg + createNamespace: false + chart: stable/app-backend + version: 0.1.3 + values: + service: + type: ClusterIP + ports: + - name: http + port: 8000 + targetPort: http + protocol: TCP + - name: grpc + port: 9000 + targetPort: grpc + protocol: TCP + containerPorts: + - name: http + port: 8000 + protocol: TCP + - name: grpc + port: 9000 + protocol: TCP releases: - name: itsm-ticketing - <<: *default + <<: {{"{{" }} include "common" . | nindent 4 {{ "}}" }} set: - - name: service.ports[0].name - value: http - - name: service.ports[0].protocol - value: TCP - - name: service.ports[0].port - value: 8000 - - name: service.ports[0].targetPort - value: http - - name: service.ports[1].name - value: grpc - - name: service.ports[1].protocol - value: TCP - - name: service.ports[1].port - value: 9000 - - name: service.ports[1].targetPort - value: grpc - - name: ports[0].name - value: http - - name: ports[0].protocol - value: TCP - - name: ports[0].containerPort - value: 3000 - - name: ports[1].name - value: http - - name: ports[1].protocol - value: TCP - - name: ports[2].containerPort - value: 3000 - - name: image.repository - value: artifact.onwalk.net/itsm/ticketing - - name: image.tag - value: 'unknown-fa7fed7' + - name: image.repository + value: artifact.onwalk.net/itsm/ticketing + - name: image.tag + value: 'unknown-fa7fed7' + - name: volumeMounts + value: + - name: ticketing-config + mountPath: /ticketing/conf + - name: volumes + value: + - name: ticketing-config + secret: + secretName: itsm + defaultMode: 420 + items: + - key: ticketing.yaml + path: config.yaml