|
| 1 | +# SPDX-License-Identifier: Apache-2.0 |
| 2 | +# Copyright Contributors to the Egeria project. |
| 3 | +--- |
| 4 | +apiVersion: v1 |
| 5 | +kind: Service |
| 6 | +metadata: |
| 7 | + name: {{ .Release.Name }}-crux-headless |
| 8 | + labels: |
| 9 | + app.kubernetes.io/component: egeria-connector-crux |
| 10 | +spec: |
| 11 | + type: ClusterIP |
| 12 | + clusterIP: None |
| 13 | + ports: |
| 14 | + - name: proxy |
| 15 | + port: 9443 |
| 16 | + protocol: TCP |
| 17 | + targetPort: https |
| 18 | + selector: |
| 19 | + app.kubernetes.io/component: egeria-connector-crux |
| 20 | +... |
| 21 | +--- |
| 22 | +apiVersion: v1 |
| 23 | +kind: Service |
| 24 | +metadata: |
| 25 | + name: {{ .Release.Name }}-crux |
| 26 | + labels: |
| 27 | + app.kubernetes.io/component: egeria-connector-crux |
| 28 | +spec: |
| 29 | + type: ClusterIP |
| 30 | + ports: |
| 31 | + - name: proxy |
| 32 | + port: 9443 |
| 33 | + protocol: TCP |
| 34 | + targetPort: https |
| 35 | + selector: |
| 36 | + app.kubernetes.io/component: egeria-connector-crux |
| 37 | +... |
| 38 | +--- |
| 39 | +apiVersion: apps/v1 |
| 40 | +kind: StatefulSet |
| 41 | +metadata: |
| 42 | + name: {{ .Release.Name }}-crux |
| 43 | + labels: |
| 44 | + app.kubernetes.io/component: egeria-connector-crux |
| 45 | +spec: |
| 46 | + replicas: {{ .Values.crux.replicaCount }} |
| 47 | + selector: |
| 48 | + matchLabels: |
| 49 | + app.kubernetes.io/component: egeria-connector-crux |
| 50 | + serviceName: {{ .Release.Name }}-crux-headless |
| 51 | + template: |
| 52 | + metadata: |
| 53 | + labels: |
| 54 | + app.kubernetes.io/component: egeria-connector-crux |
| 55 | + spec: |
| 56 | + terminationGracePeriodSeconds: 60 |
| 57 | + volumes: |
| 58 | + - name: egeria-crux-connector-volume |
| 59 | + emptyDir: {} |
| 60 | + initContainers: |
| 61 | + - name: init-connector |
| 62 | + image: "{{ if (.Values.image.configure.registry | default .Values.imageDefaults.registry) }}{{ .Values.image.configure.registry | default .Values.imageDefaults.registry }}/{{ end }}\ |
| 63 | + {{ if (.Values.image.configure.namespace | default .Values.imageDefaults.namespace) }}{{ .Values.image.configure.namespace | default .Values.imageDefaults.namespace }}/{{ end }}\ |
| 64 | + {{ .Values.image.configure.name }}\ |
| 65 | + :{{ .Values.image.configure.tag | default .Values.imageDefaults.tag }}" |
| 66 | + imagePullPolicy: {{ .Values.image.configure.pullPolicy | default .Values.imageDefaults.pullPolicy }} |
| 67 | + envFrom: |
| 68 | + - configMapRef: |
| 69 | + name: {{ .Release.Name }}-configmap |
| 70 | + command: |
| 71 | + - "/bin/bash" |
| 72 | + - "-c" |
| 73 | + - > |
| 74 | + cd /opt/egeria/connectors && |
| 75 | + curl --location ${CONNECTOR_URL} --output ${CONNECTOR_JAR} && |
| 76 | + wget ${CRUX_ROCKS_JAR_URL} && |
| 77 | + wget ${ROCKS_JAR_URL} && |
| 78 | + wget ${JNR_JAR_URL} && |
| 79 | + wget ${KAFKA_JAR_URL} |
| 80 | + volumeMounts: |
| 81 | + - mountPath: /opt/egeria/connectors |
| 82 | + name: egeria-crux-connector-volume |
| 83 | + containers: |
| 84 | + - name: proxy |
| 85 | + image: "{{ if (.Values.image.egeria.registry | default .Values.imageDefaults.registry) }}{{ .Values.image.egeria.registry | default .Values.imageDefaults.registry }}/{{ end }}\ |
| 86 | + {{ if (.Values.image.egeria.namespace | default .Values.imageDefaults.namespace) }}{{ .Values.image.egeria.namespace | default .Values.imageDefaults.namespace }}/{{ end }}\ |
| 87 | + {{ .Values.image.egeria.name }}\ |
| 88 | + :{{ .Values.image.egeria.tag | default .Values.imageDefaults.tag }}" |
| 89 | + imagePullPolicy: {{ .Values.image.egeria.pullPolicy | default .Values.imageDefaults.pullPolicy }} |
| 90 | + envFrom: |
| 91 | + - configMapRef: |
| 92 | + name: {{ .Release.Name }}-configmap |
| 93 | + env: |
| 94 | + - name: "LOADER_PATH" |
| 95 | + value: "/opt/egeria/connectors" |
| 96 | + - name: "MALLOC_ARENA_MAX" |
| 97 | + value: "2" |
| 98 | + ports: |
| 99 | + - name: https |
| 100 | + containerPort: 9443 |
| 101 | + readinessProbe: |
| 102 | + tcpSocket: |
| 103 | + port: 9443 |
| 104 | + initialDelaySeconds: 10 |
| 105 | + periodSeconds: 10 |
| 106 | + failureThreshold: 6 |
| 107 | + resources: |
| 108 | + requests: |
| 109 | + memory: "4Gi" |
| 110 | + cpu: "1000m" |
| 111 | + limits: |
| 112 | + memory: "8Gi" |
| 113 | + cpu: "2000m" |
| 114 | + volumeMounts: |
| 115 | + - mountPath: /opt/egeria/connectors |
| 116 | + name: egeria-crux-connector-volume |
| 117 | + readOnly: true |
| 118 | +... |
0 commit comments