Skip to content

Commit

Permalink
Merge branch 'feature/registry' of https://github.com/adrianliechti/d…
Browse files Browse the repository at this point in the history
…evkube into feature/registry
  • Loading branch information
adrianliechti committed Sep 23, 2022
2 parents 74cdb0e + 353e30b commit 0f14454
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/cluster/cluster_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
func RegistryCommand() *cli.Command {
return &cli.Command{
Name: "registry",
Usage: "Connect Grafana",
Usage: "Connect Registry",

Flags: []cli.Flag{
app.ProviderFlag,
Expand Down
32 changes: 29 additions & 3 deletions extension/registry/registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
- localhost
issuerRef:
name: platform
kind: ClusterIssuer
kind: Issuer
group: cert-manager.io
---
apiVersion: apps/v1
Expand All @@ -33,16 +33,39 @@ spec:
containers:
- name: registry
image: registry:2
env:
- name: REGISTRY_HTTP_ADDR
value: 0.0.0.0:80
ports:
- containerPort: 5000
- containerPort: 80
volumeMounts:
- name: data
mountPath: /var/lib/registry
resources: {}
- name: proxy
image: adrianliechti/loop-proxy
args:
- "-port"
- "443"
- "-target"
- "http://localhost"
- "-key-file"
- "certs/tls.key"
- "-cert-file"
- "certs/tls.crt"
ports:
- containerPort: 443
volumeMounts:
- name: certs
mountPath: "/app/certs"
resources: {}
volumes:
- name: data
persistentVolumeClaim:
claimName: registry
- name: certs
secret:
secretName: registry-tls
---
apiVersion: v1
kind: Service
Expand All @@ -57,7 +80,10 @@ spec:
ports:
- name: http
port: 80
targetPort: 5000
targetPort: 80
- name: https
port: 443
targetPort: 443
---
kind: PersistentVolumeClaim
apiVersion: v1
Expand Down

0 comments on commit 0f14454

Please sign in to comment.