Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mherwig committed Feb 4, 2025
1 parent 9e778f8 commit f06e8fc
Show file tree
Hide file tree
Showing 5 changed files with 125 additions and 0 deletions.
9 changes: 9 additions & 0 deletions manifest/helm/cosmoparrot/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright 2024 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: Apache-2.0
apiVersion: v2
name: cosmoparrot
description: A Helm cosmoparrot for deploying Cosmoparrot
type: application
version: 0.1.0
appVersion: "latest"
35 changes: 35 additions & 0 deletions manifest/helm/cosmoparrot/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Copyright 2024 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: Apache-2.0
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Chart.Name }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ .Chart.Name }}
template:
metadata:
labels:
app: {{ .Chart.Name }}
spec:
containers:
- name: {{ .Chart.Name }}-container
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- containerPort: {{ .Values.service.port }}
env:
- name: COSMOPARROT_PORT
value: "{{ .Values.service.port }}"
- name: COSMOPARROT_STOREKEYREQUESTHEADERS
value: "{{ join "," .Values.cosmoparrot.storeKeyRequestHeaders }}"
resources:
limits:
cpu: "{{ .Values.resources.limits.cpu }}"
memory: "{{ .Values.resources.limits.memory }}"
requests:
cpu: "{{ .Values.resources.requests.cpu }}"
memory: "{{ .Values.resources.requests.memory }}"
29 changes: 29 additions & 0 deletions manifest/helm/cosmoparrot/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright 2024 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: Apache-2.0
{{- if .Values.ingress.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Chart.Name }}-ingress
annotations:
{{- toYaml .Values.ingress.annotations | nindent 4 }}
spec:
rules:
- host: {{ .Values.ingress.host }}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ .Values.service.name }}
port:
number: {{ .Values.service.port }}
{{- if .Values.ingress.tls.enabled }}
tls:
- hosts:
- {{ .Values.ingress.host }}
secretName: {{ .Values.ingress.tls.secretName }}
{{- end }}
{{- end }}
14 changes: 14 additions & 0 deletions manifest/helm/cosmoparrot/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2024 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: Apache-2.0
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.service.name }}
spec:
selector:
app: {{ .Chart.Name }}
ports:
- protocol: TCP
port: {{ .Values.service.port }}
targetPort: {{ .Values.service.port }}
38 changes: 38 additions & 0 deletions manifest/helm/cosmoparrot/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Copyright 2024 Deutsche Telekom IT GmbH
#
# SPDX-License-Identifier: Apache-2.0

replicaCount: 1

image:
repository: cosmoparrot
tag: latest
pullPolicy: IfNotPresent

service:
name: cosmoparrot
type: ClusterIP
port: 8080

ingress:
enabled: false
host: cosmoparrot.example.com
annotations: []
tls:
enabled: false
secretName: cosmoparrot-tls

resources:
limits:
cpu: "1"
memory: "512Mi"
requests:
cpu: "0.5"
memory: "256Mi"

cosmoparrot:
storeKeyRequestHeaders: []
# Example:
# storeKeyRequestHeaders:
# - X-Request-ID
# - X-Correlation-ID

0 comments on commit f06e8fc

Please sign in to comment.