Skip to content
Snippets Groups Projects
Verified Commit 4a4db82b authored by Stefan Hynek's avatar Stefan Hynek :drooling_face:
Browse files

feat: recreate from scratch

parent fd356cdb
Branches
Tags
No related merge requests found
Showing
with 269 additions and 144 deletions
dependencies:
- name: mongodb
repository: oci://registry-1.docker.io/bitnamicharts
version: 13.16.3
digest: sha256:27a46532082feffd2dcd2aa68175b8f1b35824f2963e063cf60912f4f12d02e4
generated: "2023-08-17T09:41:59.780328301+02:00"
......@@ -15,10 +15,16 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.2.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
# Depends on MongoDB Community Server
dependencies:
- name: mongodb
version: "13.16.3"
repository: "oci://registry-1.docker.io/bitnamicharts"
# quiver-mongoapi-helm
![Version: 0.2.0](https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.16.0](https://img.shields.io/badge/AppVersion-1.16.0-informational?style=flat-square)
A Helm chart for Kubernetes
## Requirements
| Repository | Name | Version |
|------------|------|---------|
| oci://registry-1.docker.io/bitnamicharts | mongodb | 13.16.3 |
## Values
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | |
| autoscaling.enabled | bool | `false` | |
| autoscaling.maxReplicas | int | `100` | |
| autoscaling.minReplicas | int | `1` | |
| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
| fullnameOverride | string | `""` | |
| image.pullPolicy | string | `"Always"` | |
| image.repository | string | `"docker.gitlab.gwdg.de/subugoe/ocr-d/quiver-mongoapi"` | |
| image.tag | string | `"main"` | |
| imagePullSecrets | list | `[]` | |
| ingress.annotations | object | `{}` | |
| ingress.className | string | `""` | |
| ingress.enabled | bool | `false` | |
| ingress.hosts[0].host | string | `"chart-example.local"` | |
| ingress.hosts[0].paths[0].path | string | `"/"` | |
| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | |
| ingress.tls | list | `[]` | |
| mongodb.auth.enabled | bool | `false` | |
| nameOverride | string | `""` | |
| nodeSelector | object | `{}` | |
| podAnnotations | object | `{}` | |
| podSecurityContext | object | `{}` | |
| replicaCount | int | `1` | |
| resources | object | `{}` | |
| securityContext | object | `{}` | |
| service.port | int | `8084` | |
| service.type | string | `"ClusterIP"` | |
| serviceAccount.annotations | object | `{}` | |
| serviceAccount.create | bool | `true` | |
| serviceAccount.name | string | `""` | |
| tolerations | list | `[]` | |
----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
File added
apiVersion: v1
data:
HOSTNAME: {{ .Release.Name }}-mongodb
kind: ConfigMap
metadata:
creationTimestamp: null
name: {{ include "quiver-mongoapi-helm.fullname" . }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "quiver-mongoapi-helm.fullname" . }}
labels:
{{- include "quiver-mongoapi-helm.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "quiver-mongoapi-helm.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "quiver-mongoapi-helm.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "quiver-mongoapi-helm.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
# Define the environment variable
- name: HOSTNAME
valueFrom:
configMapKeyRef:
# The ConfigMap containing the value you want to assign to SPECIAL_LEVEL_KEY
name: {{ include "quiver-mongoapi-helm.fullname" . }}
# Specify the key associated with the value
key: HOSTNAME
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
livenessProbe:
httpGet:
path: /healthz
port: http
readinessProbe:
httpGet:
path: /healthz
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.autoscaling.enabled }}
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "quiver-mongoapi-helm.fullname" . }}
labels:
{{- include "quiver-mongoapi-helm.labels" . | nindent 4 }}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ include "quiver-mongoapi-helm.fullname" . }}
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
metrics:
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "quiver-mongoapi-helm.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
{{- end }}
{{- end }}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
apiVersion: extensions/v1beta1
{{- end }}
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
{{- include "quiver-mongoapi-helm.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths:
{{- range .paths }}
- path: {{ .path }}
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
pathType: {{ .pathType }}
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
service:
name: {{ $fullName }}
port:
number: {{ $svcPort }}
{{- else }}
serviceName: {{ $fullName }}
servicePort: {{ $svcPort }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: mongo
name: mongo
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
status: {}
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.28.0 (c4137012e)
creationTimestamp: null
labels:
io.kompose.service: mongodb
name: mongodb
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
io.kompose.service: mongodb
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.28.0 (c4137012e)
creationTimestamp: null
labels:
io.kompose.network/quiver-mongoapi-default: "true"
io.kompose.service: mongodb
spec:
containers:
- image: mongodb/mongodb-community-server
imagePullPolicy: {{ .Values.image.pullPolicy }}
name: mongodb
resources: {}
volumeMounts:
- mountPath: /data/db
name: mongo
restartPolicy: Always
volumes:
- name: mongo
persistentVolumeClaim:
claimName: mongo
status: {}
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
creationTimestamp: null
name: quiver-mongoapi-default
spec:
ingress:
- from:
- podSelector:
matchLabels:
io.kompose.network/quiver-mongoapi-default: "true"
podSelector:
matchLabels:
io.kompose.network/quiver-mongoapi-default: "true"
apiVersion: v1
kind: Service
metadata:
name: {{ include "quiver-mongoapi-helm.fullname" . }}
labels:
{{- include "quiver-mongoapi-helm.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
name: http
selector:
{{- include "quiver-mongoapi-helm.selectorLabels" . | nindent 4 }}
{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "quiver-mongoapi-helm.serviceAccountName" . }}
labels:
{{- include "quiver-mongoapi-helm.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.28.0 (c4137012e)
creationTimestamp: null
labels:
io.kompose.service: webserver
name: webserver
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
io.kompose.service: webserver
strategy: {}
template:
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.28.0 (c4137012e)
creationTimestamp: null
labels:
io.kompose.network/quiver-mongoapi-default: "true"
io.kompose.service: webserver
spec:
containers:
- image: docker.gitlab.gwdg.de/subugoe/ocr-d/quiver-mongoapi:main
imagePullPolicy: {{ .Values.image.pullPolicy }}
name: webserver
ports:
- containerPort: 8084
resources: {}
restartPolicy: Always
status: {}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: webserver-ingress
spec:
rules:
- host: quiver-example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: webserver
port:
number: 8084
apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.28.0 (c4137012e)
creationTimestamp: null
labels:
io.kompose.service: webserver
name: webserver
spec:
ports:
- name: "8084"
port: 8084
targetPort: 8084
selector:
io.kompose.service: webserver
status:
loadBalancer: {}
......@@ -5,10 +5,10 @@
replicaCount: 1
image:
repository: nginx
pullPolicy: IfNotPresent
repository: docker.gitlab.gwdg.de/subugoe/ocr-d/quiver-mongoapi
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: ""
tag: "main"
imagePullSecrets: []
nameOverride: ""
......@@ -38,7 +38,7 @@ securityContext: {}
service:
type: ClusterIP
port: 80
port: 8084
ingress:
enabled: false
......@@ -80,3 +80,8 @@ nodeSelector: {}
tolerations: []
affinity: {}
# subchart values
mongodb:
auth:
enabled: false
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment