diff --git a/charts/discovery-0.9.3.tgz b/charts/discovery-0.9.3.tgz new file mode 100644 index 0000000..c00f4d6 Binary files /dev/null and b/charts/discovery-0.9.3.tgz differ diff --git a/charts/index.yaml b/charts/index.yaml index ce9d00c..5f75080 100644 --- a/charts/index.yaml +++ b/charts/index.yaml @@ -3,7 +3,29 @@ entries: discovery: - apiVersion: v2 appVersion: 1.5.3 - created: "2024-03-27T20:41:40.459786-04:00" + created: "2024-03-28T06:09:27.674973-04:00" + dependencies: + - name: db + repository: "" + version: 1.0.1 + - name: redis + repository: "" + version: 1.0.0 + - name: celery-worker + repository: "" + version: 0.9.3 + description: The RedHat Product Discovery tool is designed to help users collect + data about their usage of specific Red Hat software. + digest: 09a8228e477742c0ab5231ebe8c6d44c30ca5afaa23d45112c79405a02a40083 + icon: https://quipucords.github.io/discovery-helm-repo/charts/discovery/icon.png + name: discovery + type: application + urls: + - discovery-0.9.3.tgz + version: 0.9.3 + - apiVersion: v2 + appVersion: 1.5.3 + created: "2024-03-28T06:09:27.674035-04:00" dependencies: - name: db repository: "" @@ -23,4 +45,4 @@ entries: urls: - discovery-0.9.2.tgz version: 0.9.2 -generated: "2024-03-27T20:41:40.456106-04:00" +generated: "2024-03-28T06:09:27.672273-04:00" diff --git a/overlays/charts/db/templates/deployment.yaml b/overlays/charts/db/templates/deployment.yaml new file mode 100644 index 0000000..e0a5ef2 --- /dev/null +++ b/overlays/charts/db/templates/deployment.yaml @@ -0,0 +1,65 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "db.fullname" . }} + labels: + {{- include "db.labels" . | nindent 4 }} +spec: + replicas: 1 + selector: + matchLabels: + {{- include "db.selectorLabels" . | nindent 6 }} + strategy: + type: Recreate + template: + metadata: + {{- with .Values.podAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} + labels: + {{- include "db.labels" . | nindent 8 }} + {{- with .Values.podLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} + spec: + {{- with .Values.global.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + serviceAccount: {{ include "discovery.globalServiceAccountName" . }} + serviceAccountName: {{ include "discovery.globalServiceAccountName" . }} + restartPolicy: Always + volumes: + - name: {{ .Release.Name }}-data-volume-claim + persistentVolumeClaim: + claimName: {{ .Release.Name }}-data-volume-claim + containers: + - name: {{ .Chart.Name }} + securityContext: + {{- toYaml .Values.podSecurityContext | nindent 12 }} + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + ports: + - name: http + containerPort: {{ .Values.service.port }} + protocol: TCP + volumeMounts: + - mountPath: /var/lib/pgsql/data + name: {{ .Release.Name }}-data-volume-claim + subPath: data + readinessProbe: + exec: + command: [ "/bin/pg_isready", "-U", "postgres" ] + failureThreshold: 3 + initialDelaySeconds: 30 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 45 + env: + - name: POSTGRESQL_USER + value: {{ .Values.postgresql.user }} + - name: POSTGRESQL_PASSWORD + value: {{ .Values.postgresql.password }} + - name: POSTGRESQL_DATABASE + value: {{ .Values.postgresql.database }}