Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
charts
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rancher商店
charts
Commits
ba28335c
Commit
ba28335c
authored
Aug 15, 2019
by
Guangbo Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump docker-registry to v1.8.1
parent
ebeb53fe
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
55 additions
and
19 deletions
+55
-19
logo.png
charts/docker-registry/logo.png
+0
-0
Chart.yaml
charts/docker-registry/v1.8.1/Chart.yaml
+2
-2
README.md
charts/docker-registry/v1.8.1/README.md
+5
-1
app-readme.md
charts/docker-registry/v1.8.1/app-readme.md
+11
-0
questions.yml
charts/docker-registry/v1.8.1/questions.yml
+8
-8
NOTES.txt
charts/docker-registry/v1.8.1/templates/NOTES.txt
+1
-1
deployment.yaml
charts/docker-registry/v1.8.1/templates/deployment.yaml
+19
-4
ingress.yaml
charts/docker-registry/v1.8.1/templates/ingress.yaml
+3
-0
secret.yaml
charts/docker-registry/v1.8.1/templates/secret.yaml
+0
-0
service.yaml
charts/docker-registry/v1.8.1/templates/service.yaml
+1
-1
values.yaml
charts/docker-registry/v1.8.1/values.yaml
+5
-2
No files found.
charts/docker-registry/logo.png
0 → 100644
View file @
ba28335c
113 KB
charts/docker-registry/v1.8.1/Chart.yaml
View file @
ba28335c
apiVersion
:
v1
apiVersion
:
v1
description
:
A Helm chart for Docker Registry
description
:
A Helm chart for Docker Registry
name
:
docker-registry
name
:
docker-registry
version
:
1.
6
.1
version
:
1.
8
.1
appVersion
:
2.
6.2
appVersion
:
2.
7.1
home
:
https://hub.docker.com/_/registry/
home
:
https://hub.docker.com/_/registry/
icon
:
file://../logo.png
icon
:
file://../logo.png
sources
:
sources
:
...
...
charts/docker-registry/v1.8.1/README.md
View file @
ba28335c
...
@@ -7,10 +7,11 @@ their default values.
...
@@ -7,10 +7,11 @@ their default values.
|:----------------------------|:-------------------------------------------------------------------------------------------|:----------------|
|:----------------------------|:-------------------------------------------------------------------------------------------|:----------------|
|
`image.pullPolicy`
| Container pull policy |
`IfNotPresent`
|
|
`image.pullPolicy`
| Container pull policy |
`IfNotPresent`
|
|
`image.repository`
| Container image to use |
`registry`
|
|
`image.repository`
| Container image to use |
`registry`
|
|
`image.tag`
| Container image tag to deploy |
`2.
6.2
`
|
|
`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) |
|
`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.accessMode`
| Access mode to use for PVC |
`ReadWriteOnce`
|
|
`persistence.enabled`
| Whether to use a PVC for the Docker storage |
`false`
|
|
`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.size`
| Amount of space to claim for PVC |
`10Gi`
|
|
`persistence.storageClass`
| Storage Class to use for PVC |
`-`
|
|
`persistence.storageClass`
| Storage Class to use for PVC |
`-`
|
|
`persistence.existingClaim`
| Name of an existing PVC to use for config |
`nil`
|
|
`persistence.existingClaim`
| Name of an existing PVC to use for config |
`nil`
|
...
@@ -21,6 +22,7 @@ their default values.
...
@@ -21,6 +22,7 @@ their default values.
|
`replicaCount`
| k8s replicas |
`1`
|
|
`replicaCount`
| k8s replicas |
`1`
|
|
`updateStrategy`
| update strategy for deployment |
`{}`
|
|
`updateStrategy`
| update strategy for deployment |
`{}`
|
|
`podAnnotations`
| Annotations for pod |
`{}`
|
|
`podAnnotations`
| Annotations for pod |
`{}`
|
|
`podLabels`
| Labels for pod |
`{}`
|
|
`resources.limits.cpu`
| Container requested CPU |
`nil`
|
|
`resources.limits.cpu`
| Container requested CPU |
`nil`
|
|
`resources.limits.memory`
| Container requested memory |
`nil`
|
|
`resources.limits.memory`
| Container requested memory |
`nil`
|
|
`priorityClassName `
| priorityClassName |
`""`
|
|
`priorityClassName `
| priorityClassName |
`""`
|
...
@@ -34,6 +36,7 @@ their default values.
...
@@ -34,6 +36,7 @@ their default values.
|
`haSharedSecret`
| Shared secret for Registry |
`nil`
|
|
`haSharedSecret`
| Shared secret for Registry |
`nil`
|
|
`configData`
| Configuration hash for docker |
`nil`
|
|
`configData`
| Configuration hash for docker |
`nil`
|
|
`s3.region`
| S3 region |
`nil`
|
|
`s3.region`
| S3 region |
`nil`
|
|
`s3.regionEndpoint`
| S3 region endpoint |
`nil`
|
|
`s3.bucket`
| S3 bucket name |
`nil`
|
|
`s3.bucket`
| S3 bucket name |
`nil`
|
|
`s3.encrypt`
| Store images in encrypted format |
`nil`
|
|
`s3.encrypt`
| Store images in encrypted format |
`nil`
|
|
`s3.secure`
| Use HTTPS |
`nil`
|
|
`s3.secure`
| Use HTTPS |
`nil`
|
...
@@ -43,6 +46,7 @@ their default values.
...
@@ -43,6 +46,7 @@ their default values.
|
`tolerations`
| pod tolerations |
`[]`
|
|
`tolerations`
| pod tolerations |
`[]`
|
|
`ingress.enabled`
| If true, Ingress will be created |
`false`
|
|
`ingress.enabled`
| If true, Ingress will be created |
`false`
|
|
`ingress.annotations`
| Ingress annotations |
`{}`
|
|
`ingress.annotations`
| Ingress annotations |
`{}`
|
|
`ingress.labels`
| Ingress labels |
`{}`
|
|
`ingress.path`
| Ingress service path |
`/`
|
|
`ingress.path`
| Ingress service path |
`/`
|
|
`ingress.hosts`
| Ingress hostnames |
`[]`
|
|
`ingress.hosts`
| Ingress hostnames |
`[]`
|
|
`ingress.tls`
| Ingress TLS configuration (YAML) |
`[]`
|
|
`ingress.tls`
| Ingress TLS configuration (YAML) |
`[]`
|
...
...
charts/docker-registry/v1.8.1/app-readme.md
View file @
ba28335c
# Docker Registry Helm Chart
# Docker Registry Helm Chart
This directory contains a Kubernetes chart to deploy a private Docker Registry.
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
\ No newline at end of file
charts/docker-registry/v1.8.1/questions.yml
View file @
ba28335c
...
@@ -34,7 +34,7 @@ questions:
...
@@ -34,7 +34,7 @@ questions:
required
:
true
required
:
true
group
:
"
Storage
System
Settings"
group
:
"
Storage
System
Settings"
show_if
:
"
storage=s3"
show_if
:
"
storage=s3"
-
variable
:
secret.s3.accessKey
-
variable
:
secret
s
.s3.accessKey
default
:
"
"
default
:
"
"
description
:
"
Access
Key
for
S3
configuration
"
description
:
"
Access
Key
for
S3
configuration
"
type
:
string
type
:
string
...
@@ -42,7 +42,7 @@ questions:
...
@@ -42,7 +42,7 @@ questions:
required
:
true
required
:
true
group
:
"
Storage
System
Settings"
group
:
"
Storage
System
Settings"
show_if
:
"
storage=s3"
show_if
:
"
storage=s3"
-
variable
:
secret.s3.secretKey
-
variable
:
secret
s
.s3.secretKey
default
:
"
"
default
:
"
"
description
:
"
Secret
Key
for
S3
configuration
"
description
:
"
Secret
Key
for
S3
configuration
"
type
:
password
type
:
password
...
@@ -67,7 +67,7 @@ questions:
...
@@ -67,7 +67,7 @@ questions:
group
:
"
Storage
System
Settings"
group
:
"
Storage
System
Settings"
show_if
:
"
storage=s3"
show_if
:
"
storage=s3"
# azure configuration
# azure configuration
-
variable
:
secret.azure.accountName
-
variable
:
secret
s
.azure.accountName
default
:
"
"
default
:
"
"
description
:
"
Azure
storage
account
name"
description
:
"
Azure
storage
account
name"
type
:
string
type
:
string
...
@@ -75,7 +75,7 @@ questions:
...
@@ -75,7 +75,7 @@ questions:
required
:
true
required
:
true
group
:
"
Storage
System
Settings"
group
:
"
Storage
System
Settings"
show_if
:
"
storage=azure"
show_if
:
"
storage=azure"
-
variable
:
secret.azure.accountKey
-
variable
:
secret
s
.azure.accountKey
default
:
"
"
default
:
"
"
description
:
"
Azure
storage
account
key"
description
:
"
Azure
storage
account
key"
type
:
password
type
:
password
...
@@ -83,7 +83,7 @@ questions:
...
@@ -83,7 +83,7 @@ questions:
required
:
true
required
:
true
group
:
"
Storage
System
Settings"
group
:
"
Storage
System
Settings"
show_if
:
"
storage=azure"
show_if
:
"
storage=azure"
-
variable
:
secret.azure.container
-
variable
:
secret
s
.azure.container
default
:
"
"
default
:
"
"
description
:
"
Azure
storage
container
name"
description
:
"
Azure
storage
container
name"
type
:
string
type
:
string
...
@@ -108,7 +108,7 @@ questions:
...
@@ -108,7 +108,7 @@ questions:
required
:
true
required
:
true
group
:
"
Storage
System
Settings"
group
:
"
Storage
System
Settings"
show_if
:
"
storage=swift"
show_if
:
"
storage=swift"
-
variable
:
secret.swift.username
-
variable
:
secret
s
.swift.username
default
:
"
"
default
:
"
"
description
:
"
Username
for
Swift
configuration"
description
:
"
Username
for
Swift
configuration"
type
:
string
type
:
string
...
@@ -116,7 +116,7 @@ questions:
...
@@ -116,7 +116,7 @@ questions:
required
:
true
required
:
true
group
:
"
Storage
System
Settings"
group
:
"
Storage
System
Settings"
show_if
:
"
storage=swift"
show_if
:
"
storage=swift"
-
variable
:
secret.swift.password
-
variable
:
secret
s
.swift.password
default
:
"
"
default
:
"
"
description
:
"
Password
for
Swift
configuration"
description
:
"
Password
for
Swift
configuration"
type
:
password
type
:
password
...
@@ -134,7 +134,7 @@ questions:
...
@@ -134,7 +134,7 @@ questions:
group
:
"
Persistent
Storage"
group
:
"
Persistent
Storage"
subquestions
:
subquestions
:
-
variable
:
persistence.size
-
variable
:
persistence.size
default
:
"
1
0Gi"
default
:
"
5
0Gi"
description
:
"
Docker
registry
Registry
Persistent
Volume
Size"
description
:
"
Docker
registry
Registry
Persistent
Volume
Size"
type
:
string
type
:
string
label
:
Docker Registry Volume Size
label
:
Docker Registry Volume Size
...
...
charts/docker-registry/v1.8.1/templates/NOTES.txt
View file @
ba28335c
...
@@ -15,5 +15,5 @@
...
@@ -15,5 +15,5 @@
{{- else if contains "ClusterIP" .Values.service.type }}
{{- 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}")
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"
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl
port-forward $POD_NAME 8080:{{ .Values.service.port }}
kubectl
-n {{ .Release.Namespace }} port-forward $POD_NAME 8080:5000
{{- end }}
{{- end }}
charts/docker-registry/v1.8.1/templates/deployment.yaml
View file @
ba28335c
apiVersion
:
extensions/v1beta
1
apiVersion
:
apps/v
1
kind
:
Deployment
kind
:
Deployment
metadata
:
metadata
:
name
:
{{
template "docker-registry.fullname" .
}}
name
:
{{
template "docker-registry.fullname" .
}}
...
@@ -14,11 +14,18 @@ spec:
...
@@ -14,11 +14,18 @@ spec:
{{
toYaml .Values.updateStrategy | indent 4
}}
{{
toYaml .Values.updateStrategy | indent 4
}}
{{
- end
}}
{{
- end
}}
minReadySeconds
:
5
minReadySeconds
:
5
selector
:
matchLabels
:
app
:
{{
template "docker-registry.name" .
}}
release
:
{{
.Release.Name
}}
template
:
template
:
metadata
:
metadata
:
labels
:
labels
:
app
:
{{
template "docker-registry.name" .
}}
app
:
{{
template "docker-registry.name" .
}}
release
:
{{
.Release.Name
}}
release
:
{{
.Release.Name
}}
{{
- if .Values.podLabels
}}
{{
toYaml .Values.podLabels | indent 8
}}
{{
- end
}}
annotations
:
annotations
:
checksum/config
:
{{
include (print $.Template.BasePath "/configmap.yaml") . | sha256sum
}}
checksum/config
:
{{
include (print $.Template.BasePath "/configmap.yaml") . | sha256sum
}}
{{
- if $.Values.podAnnotations
}}
{{
- if $.Values.podAnnotations
}}
...
@@ -46,21 +53,21 @@ spec:
...
@@ -46,21 +53,21 @@ spec:
-
serve
-
serve
-
/etc/docker/registry/config.yml
-
/etc/docker/registry/config.yml
ports
:
ports
:
-
containerPort
:
{{
.Values.service.port
}}
-
containerPort
:
5000
livenessProbe
:
livenessProbe
:
httpGet
:
httpGet
:
{{
- if .Values.tlsSecretName
}}
{{
- if .Values.tlsSecretName
}}
scheme
:
HTTPS
scheme
:
HTTPS
{{
- end
}}
{{
- end
}}
path
:
/
path
:
/
port
:
{{
.Values.service.port
}}
port
:
5000
readinessProbe
:
readinessProbe
:
httpGet
:
httpGet
:
{{
- if .Values.tlsSecretName
}}
{{
- if .Values.tlsSecretName
}}
scheme
:
HTTPS
scheme
:
HTTPS
{{
- end
}}
{{
- end
}}
path
:
/
path
:
/
port
:
{{
.Values.service.port
}}
port
:
5000
resources
:
resources
:
{{
toYaml .Values.resources | indent 12
}}
{{
toYaml .Values.resources | indent 12
}}
env
:
env
:
...
@@ -117,6 +124,10 @@ spec:
...
@@ -117,6 +124,10 @@ spec:
{{
- end
}}
{{
- end
}}
-
name
:
REGISTRY_STORAGE_S3_REGION
-
name
:
REGISTRY_STORAGE_S3_REGION
value
:
{{
required ".Values.s3.region is required" .Values.s3.region
}}
value
:
{{
required ".Values.s3.region is required" .Values.s3.region
}}
{{
- if .Values.s3.regionEndpoint
}}
-
name
:
REGISTRY_STORAGE_S3_REGIONENDPOINT
value
:
{{
.Values.s3.regionEndpoint
}}
{{
- end
}}
-
name
:
REGISTRY_STORAGE_S3_BUCKET
-
name
:
REGISTRY_STORAGE_S3_BUCKET
value
:
{{
required ".Values.s3.bucket is required" .Values.s3.bucket
}}
value
:
{{
required ".Values.s3.bucket is required" .Values.s3.bucket
}}
{{
- if .Values.s3.encrypt
}}
{{
- if .Values.s3.encrypt
}}
...
@@ -143,6 +154,10 @@ spec:
...
@@ -143,6 +154,10 @@ spec:
-
name
:
REGISTRY_STORAGE_SWIFT_CONTAINER
-
name
:
REGISTRY_STORAGE_SWIFT_CONTAINER
value
:
{{
required ".Values.swift.container is required" .Values.swift.container
}}
value
:
{{
required ".Values.swift.container is required" .Values.swift.container
}}
{{
- end
}}
{{
- end
}}
{{
- if .Values.persistence.deleteEnabled
}}
-
name
:
REGISTRY_STORAGE_DELETE_ENABLED
value
:
"
true"
{{
- end
}}
volumeMounts
:
volumeMounts
:
{{
- if .Values.secrets.htpasswd
}}
{{
- if .Values.secrets.htpasswd
}}
-
name
:
auth
-
name
:
auth
...
...
charts/docker-registry/v1.8.1/templates/ingress.yaml
View file @
ba28335c
...
@@ -11,6 +11,9 @@ metadata:
...
@@ -11,6 +11,9 @@ metadata:
chart
:
{{
.Chart.Name
}}
-{{ .Chart.Version | replace "+" "_" }}
chart
:
{{
.Chart.Name
}}
-{{ .Chart.Version | replace "+" "_" }}
release
:
{{
.Release.Name
}}
release
:
{{
.Release.Name
}}
heritage
:
{{
.Release.Service
}}
heritage
:
{{
.Release.Service
}}
{{
- if .Values.ingress.labels
}}
{{
toYaml .Values.ingress.labels | indent 4
}}
{{
- end
}}
annotations
:
annotations
:
{{
- range $key
,
$value
:
= .Values.ingress.annotations
}}
{{
- range $key
,
$value
:
= .Values.ingress.annotations
}}
{{
$key
}}:
{{
$value | quote
}}
{{
$key
}}:
{{
$value | quote
}}
...
...
charts/docker-registry/v1.8.1/templates/secret.yaml
View file @
ba28335c
charts/docker-registry/v1.8.1/templates/service.yaml
View file @
ba28335c
...
@@ -20,7 +20,7 @@ spec:
...
@@ -20,7 +20,7 @@ spec:
-
port
:
{{
.Values.service.port
}}
-
port
:
{{
.Values.service.port
}}
protocol
:
TCP
protocol
:
TCP
name
:
{{
.Values.service.name
}}
name
:
{{
.Values.service.name
}}
targetPort
:
{{
.Values.service.port
}}
targetPort
:
5000
{{
- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort)))
}}
{{
- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort)))
}}
nodePort
:
{{
.Values.service.nodePort
}}
nodePort
:
{{
.Values.service.nodePort
}}
{{
- end
}}
{{
- end
}}
...
...
charts/docker-registry/v1.8.1/values.yaml
View file @
ba28335c
...
@@ -10,10 +10,11 @@ updateStrategy:
...
@@ -10,10 +10,11 @@ updateStrategy:
# maxUnavailable: 0
# maxUnavailable: 0
podAnnotations
:
{}
podAnnotations
:
{}
podLabels
:
{}
image
:
image
:
repository
:
registry
repository
:
r
anchercharts/r
egistry
tag
:
2.
6.2
tag
:
2.
7.1
pullPolicy
:
IfNotPresent
pullPolicy
:
IfNotPresent
# imagePullSecrets:
# imagePullSecrets:
# - name: docker
# - name: docker
...
@@ -34,6 +35,7 @@ ingress:
...
@@ -34,6 +35,7 @@ ingress:
annotations
:
annotations
:
# kubernetes.io/ingress.class: nginx
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# kubernetes.io/tls-acme: "true"
labels
:
{}
tls
:
tls
:
# Secrets must be manually created in the namespace.
# Secrets must be manually created in the namespace.
# - secretName: chart-example-tls
# - secretName: chart-example-tls
...
@@ -81,6 +83,7 @@ secrets:
...
@@ -81,6 +83,7 @@ secrets:
# Options for s3 storage type:
# Options for s3 storage type:
# s3:
# s3:
# region: us-east-1
# region: us-east-1
# regionEndpoint: s3.us-east-1.amazonaws.com
# bucket: my-bucket
# bucket: my-bucket
# encrypt: false
# encrypt: false
# secure: true
# secure: true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment