-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# This is a combination of 8 commits.
# This is the 1st commit message: dev # This is the commit message #2: dev # This is the commit message #3: dev # This is the commit message #4: dev # This is the commit message #5: dev # This is the commit message #6: dev # This is the commit message #7: dev # This is the commit message #8: dev
- Loading branch information
Wulf Thimm
committed
Feb 16, 2021
1 parent
d819a6b
commit 86e7486
Showing
66 changed files
with
2,348 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
# Copyright (c) 2020 Gitpod GmbH. All rights reserved. | ||
# Licensed under the MIT License. See License-MIT.txt in the project root for license information. | ||
|
||
apiVersion: v1 | ||
appVersion: "0.1.5" | ||
description: The core chart for Gitpod | ||
name: gitpod | ||
version: 0.4.0 | ||
version: 0.6.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: v1 | ||
appVersion: 2.7.1 | ||
description: A Helm chart for Docker Registry | ||
home: https://hub.docker.com/_/registry/ | ||
icon: https://hub.docker.com/public/images/logos/mini-logo.svg | ||
maintainers: | ||
- email: [email protected] | ||
name: jpds | ||
- email: [email protected] | ||
name: rendhalver | ||
name: docker-registry | ||
sources: | ||
- https://github.com/docker/distribution-library-image | ||
version: 1.8.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
approvers: | ||
- jpds | ||
- rendhalver | ||
reviewers: | ||
- jpds | ||
- rendhalver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# Docker Registry Helm Chart | ||
|
||
This directory contains a Kubernetes chart to deploy a private Docker Registry. | ||
|
||
## Prerequisites Details | ||
|
||
* PV support on underlying infrastructure (if persistence is required) | ||
|
||
## Chart Details | ||
|
||
This chart will do the following: | ||
|
||
* Implement a Docker registry deployment | ||
|
||
## Installing the Chart | ||
|
||
To install the chart, use the following: | ||
|
||
```console | ||
$ helm install stable/docker-registry | ||
``` | ||
|
||
## Configuration | ||
|
||
The following table lists the configurable parameters of the docker-registry chart and | ||
their default values. | ||
|
||
| Parameter | Description | Default | | ||
|:----------------------------|:-------------------------------------------------------------------------------------------|:----------------| | ||
| `image.pullPolicy` | Container pull policy | `IfNotPresent` | | ||
| `image.repository` | Container image to use | `registry` | | ||
| `image.tag` | Container image tag to deploy | `2.7.1` | | ||
| `imagePullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) | | ||
| `persistence.accessMode` | Access mode to use for PVC | `ReadWriteOnce` | | ||
| `persistence.enabled` | Whether to use a PVC for the Docker storage | `false` | | ||
| `persistence.deleteEnabled` | Enable the deletion of image blobs and manifests by digest | `nil` | | ||
| `persistence.size` | Amount of space to claim for PVC | `10Gi` | | ||
| `persistence.storageClass` | Storage Class to use for PVC | `-` | | ||
| `persistence.existingClaim` | Name of an existing PVC to use for config | `nil` | | ||
| `service.port` | TCP port on which the service is exposed | `5000` | | ||
| `service.type` | service type | `ClusterIP` | | ||
| `service.clusterIP` | if `service.type` is `ClusterIP` and this is non-empty, sets the cluster IP of the service | `nil` | | ||
| `service.nodePort` | if `service.type` is `NodePort` and this is non-empty, sets the node port of the service | `nil` | | ||
| `replicaCount` | k8s replicas | `1` | | ||
| `updateStrategy` | update strategy for deployment | `{}` | | ||
| `podAnnotations` | Annotations for pod | `{}` | | ||
| `podLabels` | Labels for pod | `{}` | | ||
| `podDisruptionBudget` | Pod disruption budget | `{}` | | ||
| `resources.limits.cpu` | Container requested CPU | `nil` | | ||
| `resources.limits.memory` | Container requested memory | `nil` | | ||
| `priorityClassName ` | priorityClassName | `""` | | ||
| `storage` | Storage system to use | `filesystem` | | ||
| `tlsSecretName` | Name of secret for TLS certs | `nil` | | ||
| `secrets.htpasswd` | Htpasswd authentication | `nil` | | ||
| `secrets.s3.accessKey` | Access Key for S3 configuration | `nil` | | ||
| `secrets.s3.secretKey` | Secret Key for S3 configuration | `nil` | | ||
| `secrets.swift.username` | Username for Swift configuration | `nil` | | ||
| `secrets.swift.password` | Password for Swift configuration | `nil` | | ||
| `haSharedSecret` | Shared secret for Registry | `nil` | | ||
| `configData` | Configuration hash for docker | `nil` | | ||
| `s3.region` | S3 region | `nil` | | ||
| `s3.regionEndpoint` | S3 region endpoint | `nil` | | ||
| `s3.bucket` | S3 bucket name | `nil` | | ||
| `s3.encrypt` | Store images in encrypted format | `nil` | | ||
| `s3.secure` | Use HTTPS | `nil` | | ||
| `swift.authurl` | Swift authurl | `nil` | | ||
| `swift.container` | Swift container | `nil` | | ||
| `nodeSelector` | node labels for pod assignment | `{}` | | ||
| `tolerations` | pod tolerations | `[]` | | ||
| `ingress.enabled` | If true, Ingress will be created | `false` | | ||
| `ingress.annotations` | Ingress annotations | `{}` | | ||
| `ingress.labels` | Ingress labels | `{}` | | ||
| `ingress.path` | Ingress service path | `/` | | ||
| `ingress.hosts` | Ingress hostnames | `[]` | | ||
| `ingress.tls` | Ingress TLS configuration (YAML) | `[]` | | ||
|
||
Specify each parameter using the `--set key=value[,key=value]` argument to | ||
`helm install`. | ||
|
||
To generate htpasswd file, run this docker command: | ||
`docker run --entrypoint htpasswd registry:2 -Bbn user password > ./htpasswd`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
1. Get the application URL by running these commands: | ||
{{- if .Values.ingress.enabled }} | ||
{{- range .Values.ingress.hosts }} | ||
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ . }}{{ $.Values.ingress.path }} | ||
{{- end }} | ||
{{- else if contains "NodePort" .Values.service.type }} | ||
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ template "docker-registry.fullname" . }}) | ||
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") | ||
echo http://$NODE_IP:$NODE_PORT | ||
{{- else if contains "LoadBalancer" .Values.service.type }} | ||
NOTE: It may take a few minutes for the LoadBalancer IP to be available. | ||
You can watch the status of by running 'kubectl get svc -w {{ template "docker-registry.fullname" . }}' | ||
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "docker-registry.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') | ||
echo http://$SERVICE_IP:{{ .Values.service.externalPort }} | ||
{{- else if contains "ClusterIP" .Values.service.type }} | ||
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "docker-registry.name" . }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") | ||
echo "Visit http://127.0.0.1:8080 to use your application" | ||
kubectl -n {{ .Release.Namespace }} port-forward $POD_NAME 8080:5000 | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{{/* vim: set filetype=mustache: */}} | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "docker-registry.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create a default fully qualified app name. | ||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). | ||
*/}} | ||
{{- define "docker-registry.fullname" -}} | ||
{{- if .Values.fullnameOverride -}} | ||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} | ||
{{- else -}} | ||
{{- $name := default .Chart.Name .Values.nameOverride -}} | ||
{{- if contains $name .Release.Name -}} | ||
{{- .Release.Name | trunc 63 | trimSuffix "-" -}} | ||
{{- else -}} | ||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ template "docker-registry.fullname" . }}-config | ||
labels: | ||
app: {{ template "docker-registry.name" . }} | ||
chart: {{ .Chart.Name }}-{{ .Chart.Version }} | ||
heritage: {{ .Release.Service }} | ||
release: {{ .Release.Name }} | ||
data: | ||
config.yml: |- | ||
{{ toYaml .Values.configData | indent 4 }} |
Oops, something went wrong.