Skip to content

Commit

Permalink
Flesh out docker-registry-browser chart
Browse files Browse the repository at this point in the history
  • Loading branch information
gtaylor committed Sep 27, 2021
1 parent 491e3f8 commit d68f9e7
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 65 deletions.
24 changes: 3 additions & 21 deletions charts/docker-registry-browser/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
apiVersion: v2
name: docker-registry-browser
description: A Helm chart for Kubernetes

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
description: Web Interface for the Docker Registry HTTP API V2 written in Ruby on Rails.
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.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"
version: 0.3.0
appVersion: "1.3.5"
13 changes: 13 additions & 0 deletions charts/docker-registry-browser/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "docker-registry-browser.fullname" . }}
labels:
{{- include "docker-registry-browser.labels" . | nindent 4 }}
data:
{{/*
Rather than maintain a comprehensive ConfigMap, we map all sub-keys of the "env" value here.
*/}}
{{- range $envKey, $envVal := .Values.env }}
{{ $envKey | upper }}: {{ $envVal | quote }}
{{- end }}
19 changes: 11 additions & 8 deletions charts/docker-registry-browser/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ metadata:
labels:
{{- include "docker-registry-browser.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "docker-registry-browser.selectorLabels" . | nindent 6 }}
Expand Down Expand Up @@ -35,16 +33,21 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: 80
containerPort: 8080
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
path: /ping
port: http
env:
{{- range $key, $value := .Values.env }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- with .Values.envFrom }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
Expand Down
28 changes: 0 additions & 28 deletions charts/docker-registry-browser/templates/hpa.yaml

This file was deleted.

16 changes: 8 additions & 8 deletions charts/docker-registry-browser/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@

replicaCount: 1

# Pass in environment variables to configure the registry browser.
# ref: https://github.com/klausmeyer/docker-registry-browser/blob/master/docs/README.md
env: {}

image:
repository: nginx
repository: klausmeyer/docker-registry-browser
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
Expand Down Expand Up @@ -36,6 +40,9 @@ securityContext: {}
# runAsNonRoot: true
# runAsUser: 1000

volumes: []
volumeMounts: []

service:
type: ClusterIP
port: 80
Expand Down Expand Up @@ -68,13 +75,6 @@ resources: {}
# cpu: 100m
# memory: 128Mi

autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

nodeSelector: {}

tolerations: []
Expand Down

0 comments on commit d68f9e7

Please sign in to comment.