Skip to content

Commit

Permalink
chore: add examples files for skaffold profile for harbor
Browse files Browse the repository at this point in the history
  • Loading branch information
SdgJlbl committed May 17, 2024
1 parent 56305b4 commit 615f4a8
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/secrets/secret-harbor-dockerconfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
data:
.dockerconfigjson: eyJhdXRocyI6eyJyZWdpc3RyeS5vcmctMi5jb206MzAwNDYiOnsidXNlcm5hbWUiOiJhZG1pbiIsInBhc3N3b3JkIjoiaGFyYm9yUEBzc3dvcmQyNDAzIiwiYXV0aCI6IllXUnRhVzQ2YUdGeVltOXlVRUJ6YzNkdmNtUXlOREF6In0sInJlZ2lzdHJ5Lm9yZy0yLmNvbSI6eyJ1c2VybmFtZSI6ImFkbWluIiwicGFzc3dvcmQiOiJoYXJib3JQQHNzd29yZDI0MDMiLCJhdXRoIjoiWVdSdGFXNDZhR0Z5WW05eVVFQnpjM2R2Y21ReU5EQXoifX19
kind: Secret
metadata:
creationTimestamp: null
name: docker-config
namespace: org-2
type: kubernetes.io/dockerconfigjson
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
9 changes: 9 additions & 0 deletions examples/values/coredns-custom-harbor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

apiVersion: v1
kind: ConfigMap
metadata:
name: coredns-custom
namespace: kube-system
data:
test.override: |
rewrite name registry.org-2.com harbor.harbor.svc.cluster.local
22 changes: 22 additions & 0 deletions examples/values/harbor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
service:
type: NodePort

ports:
http: 30000
https: 30046

nodePorts:
http: 30000
https: 30046


externalURL: https://registry.org-2.com:30046
adminPassword: "harborP@ssword2403"

nginx:
containerPorts:
http: 30000
https: 30046
tls:
commonName: registry.org-2.com
existingSecret: harbor-registry-tls
5 changes: 5 additions & 0 deletions skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ apiVersion: skaffold/v4beta2
kind: Config

requires:
- path: examples/secrets/skaffold.yaml
activeProfiles:
- name: org-2-harbor
activatedBy:
- org-2-harbor
- path: examples/values/serviceAccounts/skaffold.yaml

build:
Expand Down

0 comments on commit 615f4a8

Please sign in to comment.