Skip to content

Commit

Permalink
feat: generate certificates for registry
Browse files Browse the repository at this point in the history
Signed-off-by: Guilhem Barthés <[email protected]>
  • Loading branch information
guilhem-barthes committed Apr 16, 2024
1 parent f14fa43 commit 35249f3
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
25 changes: 25 additions & 0 deletions examples/secrets/secret-harbor-tls.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: harbor
namespace: harbor
spec:
secretName: harbor-registry-tls
duration: 2160h
renewBefore: 360h # 15 days
subject:
organizations:
- MyOrg2MSP
isCA: false
privateKey:
algorithm: RSA
encoding: PKCS1
size: 2048
usages:
- server auth
- client auth
dnsNames:
- registry.org-2.com
issuerRef:
name: substra-issuer
kind: ClusterIssuer
3 changes: 3 additions & 0 deletions examples/secrets/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ profiles:
- op: add
path: /deploy/kubectl/manifests/-
value: "./secret-harbor-dockerconfig.yaml"
- op: add
path: /deploy/kubectl/manifests/-
value: "./secret-harbor-tls.yaml"
- op: add
path: /deploy/kubectl/manifests/-
value: "../values/coredns-custom-harbor.yaml"
Expand Down
3 changes: 2 additions & 1 deletion examples/values/harbor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ nginx:
http: 30000
https: 30046
tls:
commonName: registry.org-2.com
commonName: registry.org-2.com
existingSecret: harbor-registry-tls

0 comments on commit 35249f3

Please sign in to comment.