diff --git a/save-cloud-charts/save-cloud/templates/agent.yaml b/save-cloud-charts/save-cloud/templates/agent.yaml index 01e9aa0a9e..241af739c9 100644 --- a/save-cloud-charts/save-cloud/templates/agent.yaml +++ b/save-cloud-charts/save-cloud/templates/agent.yaml @@ -8,17 +8,6 @@ metadata: #agent services apiVersion: v1 kind: Service -metadata: - name: {{ .Values.backend_cosv.name }} - namespace: {{ .Values.agentNamespace }} -spec: - type: ExternalName - externalName: {{ .Values.backend_cosv.name }}.{{ .Values.namespace }}.svc.cluster.local - ports: - - port: {{ .Values.backend_cosv.containerPort }} ---- -apiVersion: v1 -kind: Service metadata: name: {{ .Values.backend.name }} namespace: {{ .Values.agentNamespace }} diff --git a/save-cloud-charts/save-cloud/templates/gateway.yaml b/save-cloud-charts/save-cloud/templates/gateway.yaml index da9cdffd67..a3dbca437b 100644 --- a/save-cloud-charts/save-cloud/templates/gateway.yaml +++ b/save-cloud-charts/save-cloud/templates/gateway.yaml @@ -55,16 +55,16 @@ spec: - mountPath: /home/cnb/cacerts name: cacerts - mountPath: /security - name: his-certs + name: ca-certs {{ end }} volumes: - {{ include "spring-boot.config-volume" (dict "service" .Values.gateway) | indent 10 | trim }} - name: oauth-credentials secret: secretName: oauth-credentials - - name: his-certs + - name: ca-certs secret: - secretName: his-certs + secretName: ca-certs - name: cacerts emptyDir: {} --- diff --git a/save-cloud-charts/save-cloud/templates/mysql-service.yaml b/save-cloud-charts/save-cloud/templates/mysql-service.yaml new file mode 100644 index 0000000000..93c4bf4d90 --- /dev/null +++ b/save-cloud-charts/save-cloud/templates/mysql-service.yaml @@ -0,0 +1,52 @@ +{{- if .Values.mysql.external -}} +apiVersion: v1 +kind: Endpoints +metadata: + name: mysql-service +subsets: + - addresses: + - ip: {{ .Values.mysql.ip }} + ports: + - port: 3306 + +--- + +apiVersion: v1 +kind: Service +metadata: + name: mysql-service +spec: + ports: + - port: 3306 + targetPort: 3306 + protocol: TCP + selector: {} + type: ClusterIP + +{{- else }} + +apiVersion: v1 +kind: Service +metadata: + name: mysql-service +spec: + ports: + - port: 3306 + selector: + io.kompose.service: mysql + clusterIP: None + +--- + +apiVersion: v1 +kind: Service +metadata: + name: mysql-service-lb +spec: + ports: + - port: 3306 + selector: + io.kompose.service: mysql + type: LoadBalancer + +{{- end }} \ No newline at end of file diff --git a/save-cloud-charts/save-cloud/values.yaml b/save-cloud-charts/save-cloud/values.yaml index e29764789a..651e6660cd 100644 --- a/save-cloud-charts/save-cloud/values.yaml +++ b/save-cloud-charts/save-cloud/values.yaml @@ -201,9 +201,22 @@ neo4j: memory: "2Gi" volumes: data: - mode: selector - selector: + # REQUIRED: specify a volume mode to use for data + # Valid values are share|selector|defaultStorageClass|volume|volumeClaimTemplate|dynamic + # To get up-and-running quickly, for development or testing, use "defaultStorageClass" for a dynamically provisioned volume of the default storage class. + mode: "volume" + # Only used if mode is set to "volume" + # Provide an explicit volume to use + volume: + # If set an init container (running as root) will be added that runs: + # `chown -R :` AND `chmod -R g+rwx` + # on the volume. This is useful for some filesystems (e.g. NFS) where Kubernetes fsUser or fsGroup settings are not respected + setOwnerAndGroupWritableFilePermissions: false + + # Example (using a specific Persistent Volume Claim) + persistentVolumeClaim: + claimName: data-neo4j-0 demo_cpg: name: demo-cpg profile: dev