Commit b427f691 authored by 舒成's avatar 舒成

update

parent bef88d4a
# images # images
```bash ```bash
docker pull goharbor/harbor-ui:dev && \ # harbor-ui
docker tag goharbor/harbor-ui:dev registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-ui:dev && \ docker pull goharbor/harbor-ui:v1.6.0 && \
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-ui:dev docker tag goharbor/harbor-ui:v1.6.0 registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-ui:v1.6.0 && \
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-ui:v1.6.0
docker pull goharbor/harbor-adminserver:dev && \ # harbor-adminserver
docker tag goharbor/harbor-adminserver:dev registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-adminserver:dev && \ docker pull goharbor/harbor-adminserver:v1.6.0 && \
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-adminserver:dev docker tag goharbor/harbor-adminserver:v1.6.0 registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-adminserver:v1.6.0 && \
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-adminserver:v1.6.0
docker pull goharbor/harbor-jobservice:dev && \ # harbor-jobservice
docker tag goharbor/harbor-jobservice:dev registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-jobservice:dev && \ docker pull goharbor/harbor-jobservice:v1.6.0 && \
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-jobservice:dev docker tag goharbor/harbor-jobservice:v1.6.0 registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-jobservice:v1.6.0 && \
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-jobservice:v1.6.0
docker pull goharbor/harbor-db:dev && \ # harbor-db
docker tag goharbor/harbor-db:dev registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-db:dev && \ docker pull goharbor/harbor-db:v1.6.0 && \
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-db:dev docker tag goharbor/harbor-db:v1.6.0 registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-db:v1.6.0 && \
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-db:v1.6.0
docker pull goharbor/registry-photon:dev && \ # chartmuseum
docker tag goharbor/registry-photon:dev registry-vpc.cn-qingdao.aliyuncs.com/wod/registry-photon:dev && \ docker pull chartmuseum/chartmuseum:v0.7.1 && \
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/registry-photon:dev docker tag chartmuseum/chartmuseum:v0.7.1 registry-vpc.cn-qingdao.aliyuncs.com/wod/chartmuseum:v0.7.1 && \
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/chartmuseum:v0.7.1
docker pull goharbor/chartmuseum-photon:dev && \ # clair
docker tag goharbor/chartmuseum-photon:dev registry-vpc.cn-qingdao.aliyuncs.com/wod/chartmuseum-photon:dev && \ docker pull quay.io/coreos/clair:v2.0.6 && \
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/chartmuseum-photon:dev docker tag quay.io/coreos/clair:v2.0.6 registry-vpc.cn-qingdao.aliyuncs.com/wod/clair:v2.0.6 && \
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/clair:v2.0.6
docker pull goharbor/clair-photon:dev && \ # notary:server
docker tag goharbor/clair-photon:dev registry-vpc.cn-qingdao.aliyuncs.com/wod/clair-photon:dev && \ docker pull notary:server-0.5.0 && \
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/clair-photon:dev docker tag notary:server-0.5.0 registry-vpc.cn-qingdao.aliyuncs.com/wod/notary-server:0.5.0 && \
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/notary-server:0.5.0
docker pull goharbor/notary-server-photon:dev && \ # notary:signer
docker tag goharbor/notary-server-photon:dev registry-vpc.cn-qingdao.aliyuncs.com/wod/notary-server-photon:dev && \ docker pull notary:signer-0.5.0 && \
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/notary-server-photon:dev docker tag notary:signer-0.5.0 registry-vpc.cn-qingdao.aliyuncs.com/wod/notary-signer:0.5.0 && \
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/notary-signer:0.5.0
# registry
docker pull registry:2.6.2 && \ docker pull registry:2.6.2 && \
docker tag registry:2.6.2 registry-vpc.cn-qingdao.aliyuncs.com/wod/registry:2.6.2 && \ docker tag registry:2.6.2 registry-vpc.cn-qingdao.aliyuncs.com/wod/registry:2.6.2 && \
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/registry:2.6.2 docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/registry:2.6.2
# nginx
docker pull nginx:1.15.2-alpine && \ docker pull nginx:1.15.2-alpine && \
docker tag nginx:1.15.2-alpine registry-vpc.cn-qingdao.aliyuncs.com/wod/nginx:1.15.2-alpine && \ docker tag nginx:1.15.2-alpine registry-vpc.cn-qingdao.aliyuncs.com/wod/nginx:1.15.2-alpine && \
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/nginx:1.15.2-alpine docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/nginx:1.15.2-alpine
# redis
docker pull redis:4.0.1-alpine && \ docker pull redis:4.0.1-alpine && \
docker tag redis:4.0.1-alpine registry-vpc.cn-qingdao.aliyuncs.com/wod/redis:4.0.1-alpine && \ docker tag redis:4.0.1-alpine registry-vpc.cn-qingdao.aliyuncs.com/wod/redis:4.0.1-alpine && \
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/redis:4.0.1-alpine docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/redis:4.0.1-alpine
``` ```
# setup ## overrides
```powershell ```bash
# 1.template cat /etc/kubernetes/helm/harbor/values-overrides.yaml
cd /etc/kubernetes/helm/harbor && helm template . --name harbor --namespace devops > ./dist/harbor.yaml
# 2.helm install
helm install /etc/kubernetes/helm/harbor \
--name harbor \
--namespace devops \
--set harborAdminPassword=spaceIN511 \
--set nodeSelector.kubernetes\.io/hostname=172.31.14.41 \
--set externalDomain=harbor.wodcloud.com
``` ```
```yaml
persistence:
enabled: true
externalProtocol: https
externalDomain: harbor.wodcloud.local
harborAdminPassword: "58772015"
ingress:
enabled: true
adminserver:
image:
repository: registry.cn-qingdao.aliyuncs.com/wod/harbor-adminserver
tag: v1.6.0
volumes:
config:
storageClass: "storageos"
accessMode: ReadWriteOnce
size: 1Gi
jobservice:
image:
repository: registry.cn-qingdao.aliyuncs.com/wod/harbor-jobservice
tag: v1.6.0
ui:
image:
repository: registry.cn-qingdao.aliyuncs.com/wod/harbor-ui
tag: v1.6.0
busybox:
image:
repository: registry.cn-qingdao.aliyuncs.com/wod/busybox
tag: 1.29
database:
internal:
image:
repository: registry.cn-qingdao.aliyuncs.com/wod/harbor-db
tag: v1.6.0
password: "spaceIN511"
volumes:
data:
storageClass: "storageos"
accessMode: ReadWriteOnce
size: 1Gi
registry:
image:
repository: registry.cn-qingdao.aliyuncs.com/wod/registry
tag: 2.6.2
volumes:
data:
# storageClass: "-"
accessMode: ReadWriteOnce
size: 5Gi
nodeSelector:
harbor-registry: enabled
chartmuseum:
enabled: true
image:
repository: registry.cn-qingdao.aliyuncs.com/wod/chartmuseum
tag: v0.7.1
volumes:
data:
storageClass: "storageos"
accessMode: ReadWriteOnce
size: 5Gi
clair:
enabled: true
image:
repository: registry.cn-qingdao.aliyuncs.com/wod/clair
tag: v2.0.6
volumes:
pgData:
storageClass: "storageos"
accessMode: ReadWriteOnce
size: 1Gi
redis:
image:
repository: registry.cn-qingdao.aliyuncs.com/wod/redis
tag: 4.0.1-alpine
usePassword: false
cluster:
enabled: false
master:
persistence:
enabled: false
notary:
enabled: true
server:
image:
repository: registry.cn-qingdao.aliyuncs.com/wod/notary-server
tag: 0.5.0
signer:
image:
repository: registry.cn-qingdao.aliyuncs.com/wod/notary-signer
tag: 0.5.0
```
# images ## setup
```bash ```bash
docker pull goharbor/harbor-ui:v1.6.0 && \ # 1.install
docker tag goharbor/harbor-ui:v1.6.0 registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-ui:v1.6.0 && \
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-ui:v1.6.0
docker pull goharbor/harbor-adminserver:v1.6.0 && \
docker tag goharbor/harbor-adminserver:v1.6.0 registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-adminserver:v1.6.0 && \
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-adminserver:v1.6.0
docker pull goharbor/harbor-jobservice:v1.6.0 && \
docker tag goharbor/harbor-jobservice:v1.6.0 registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-jobservice:v1.6.0 && \
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-jobservice:v1.6.0
docker pull goharbor/harbor-db:v1.6.0 && \
docker tag goharbor/harbor-db:v1.6.0 registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-db:v1.6.0 && \
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/harbor-db:v1.6.0
docker pull chartmuseum/chartmuseum:v0.7.1 && \ # label node
docker tag chartmuseum/chartmuseum:v0.7.1 registry-vpc.cn-qingdao.aliyuncs.com/wod/chartmuseum:v0.7.1 && \ kubectl label node <nodename> harbor-registry=enabled
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/chartmuseum:v0.7.1
docker pull quay.io/coreos/clair:v2.0.6 && \ helm install \
docker tag quay.io/coreos/clair:v2.0.6 registry-vpc.cn-qingdao.aliyuncs.com/wod/clair:v2.0.6 && \ /etc/kubernetes/helm/harbor \
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/clair:v2.0.6 --name=harbor \
--namespace=devops \
-f /etc/kubernetes/helm/harbor/values-overrides.yaml
docker pull notary:server-0.5.0 && \ # uninstall
docker tag notary:server-0.5.0 registry-vpc.cn-qingdao.aliyuncs.com/wod/notary-server:0.5.0 && \ helm delete harbor --purge
docker push registry-vpc.cn-qingdao.aliyuncs.com/wod/notary-server:0.5.0
``` ```
\ No newline at end of file
...@@ -21,7 +21,6 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this ...@@ -21,7 +21,6 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
heritage: {{ .Release.Service }} heritage: {{ .Release.Service }}
release: {{ .Release.Name }} release: {{ .Release.Name }}
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
app: "{{ template "harbor.name" . }}"
{{- end -}} {{- end -}}
{{/* matchLabels */}} {{/* matchLabels */}}
......
...@@ -4,7 +4,7 @@ metadata: ...@@ -4,7 +4,7 @@ metadata:
name: "{{ template "harbor.fullname" . }}-adminserver" name: "{{ template "harbor.fullname" . }}-adminserver"
labels: labels:
{{ include "harbor.labels" . | indent 4 }} {{ include "harbor.labels" . | indent 4 }}
component: adminserver app: harbor-adminserver
data: data:
POSTGRESQL_HOST: "{{ template "harbor.database.host" . }}" POSTGRESQL_HOST: "{{ template "harbor.database.host" . }}"
POSTGRESQL_PORT: "{{ template "harbor.database.port" . }}" POSTGRESQL_PORT: "{{ template "harbor.database.port" . }}"
......
...@@ -4,7 +4,7 @@ metadata: ...@@ -4,7 +4,7 @@ metadata:
name: "{{ template "harbor.fullname" . }}-adminserver" name: "{{ template "harbor.fullname" . }}-adminserver"
labels: labels:
{{ include "harbor.labels" . | indent 4 }} {{ include "harbor.labels" . | indent 4 }}
component: adminserver app: harbor-adminserver
type: Opaque type: Opaque
data: data:
secretKey: {{ .Values.secretKey | b64enc | quote }} secretKey: {{ .Values.secretKey | b64enc | quote }}
......
...@@ -4,19 +4,19 @@ metadata: ...@@ -4,19 +4,19 @@ metadata:
name: "{{ template "harbor.fullname" . }}-adminserver" name: "{{ template "harbor.fullname" . }}-adminserver"
labels: labels:
{{ include "harbor.labels" . | indent 4 }} {{ include "harbor.labels" . | indent 4 }}
component: adminserver app: harbor-adminserver
spec: spec:
replicas: 1 replicas: 1
serviceName: "{{ template "harbor.fullname" . }}-adminserver" serviceName: "{{ template "harbor.fullname" . }}-adminserver"
selector: selector:
matchLabels: matchLabels:
{{ include "harbor.matchLabels" . | indent 6 }} {{ include "harbor.matchLabels" . | indent 6 }}
component: adminserver app: harbor-adminserver
template: template:
metadata: metadata:
labels: labels:
{{ include "harbor.labels" . | indent 8 }} {{ include "harbor.labels" . | indent 8 }}
component: adminserver app: harbor-adminserver
spec: spec:
containers: containers:
- name: adminserver - name: adminserver
......
...@@ -8,4 +8,4 @@ spec: ...@@ -8,4 +8,4 @@ spec:
targetPort: 8080 targetPort: 8080
selector: selector:
{{ include "harbor.matchLabels" . | indent 4 }} {{ include "harbor.matchLabels" . | indent 4 }}
component: adminserver app: harbor-adminserver
\ No newline at end of file \ No newline at end of file
...@@ -5,19 +5,19 @@ metadata: ...@@ -5,19 +5,19 @@ metadata:
name: "{{ template "harbor.fullname" . }}-chartmuseum" name: "{{ template "harbor.fullname" . }}-chartmuseum"
labels: labels:
{{ include "harbor.labels" . | indent 4 }} {{ include "harbor.labels" . | indent 4 }}
component: chartmuseum app: harbor-chartmuseum
spec: spec:
replicas: 1 replicas: 1
serviceName: "{{ template "harbor.fullname" . }}-chartmuseum" serviceName: "{{ template "harbor.fullname" . }}-chartmuseum"
selector: selector:
matchLabels: matchLabels:
{{ include "harbor.matchLabels" . | indent 6 }} {{ include "harbor.matchLabels" . | indent 6 }}
component: chartmuseum app: harbor-chartmuseum
template: template:
metadata: metadata:
labels: labels:
{{ include "harbor.labels" . | indent 8 }} {{ include "harbor.labels" . | indent 8 }}
component: chartmuseum app: harbor-chartmuseum
spec: spec:
containers: containers:
- name: chartmuseum - name: chartmuseum
......
...@@ -11,5 +11,5 @@ spec: ...@@ -11,5 +11,5 @@ spec:
targetPort: 9999 targetPort: 9999
selector: selector:
{{ include "harbor.matchLabels" . | indent 4 }} {{ include "harbor.matchLabels" . | indent 4 }}
component: chartmuseum app: harbor-chartmuseum
{{- end }} {{- end }}
\ No newline at end of file
...@@ -5,7 +5,7 @@ metadata: ...@@ -5,7 +5,7 @@ metadata:
name: {{ template "harbor.fullname" . }}-clair name: {{ template "harbor.fullname" . }}-clair
labels: labels:
{{ include "harbor.labels" . | indent 4 }} {{ include "harbor.labels" . | indent 4 }}
component: clair app: harbor-clair
data: data:
config.yaml: | config.yaml: |
clair: clair:
......
...@@ -5,18 +5,18 @@ metadata: ...@@ -5,18 +5,18 @@ metadata:
name: {{ template "harbor.fullname" . }}-clair name: {{ template "harbor.fullname" . }}-clair
labels: labels:
{{ include "harbor.labels" . | indent 4 }} {{ include "harbor.labels" . | indent 4 }}
component: clair app: harbor-clair
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
{{ include "harbor.matchLabels" . | indent 6 }} {{ include "harbor.matchLabels" . | indent 6 }}
component: clair app: harbor-clair
template: template:
metadata: metadata:
labels: labels:
{{ include "harbor.labels" . | indent 8 }} {{ include "harbor.labels" . | indent 8 }}
component: clair app: harbor-clair
spec: spec:
containers: containers:
- name: clair - name: clair
......
...@@ -13,5 +13,5 @@ spec: ...@@ -13,5 +13,5 @@ spec:
- port: 6060 - port: 6060
selector: selector:
{{ include "harbor.matchLabels" . | indent 4 }} {{ include "harbor.matchLabels" . | indent 4 }}
component: clair app: harbor-clair
{{ end }} {{ end }}
...@@ -5,19 +5,19 @@ metadata: ...@@ -5,19 +5,19 @@ metadata:
name: "{{ template "harbor.fullname" . }}-database" name: "{{ template "harbor.fullname" . }}-database"
labels: labels:
{{ include "harbor.labels" . | indent 4 }} {{ include "harbor.labels" . | indent 4 }}
component: database app: harbor-database
spec: spec:
replicas: 1 replicas: 1
serviceName: "{{ template "harbor.fullname" . }}-database" serviceName: "{{ template "harbor.fullname" . }}-database"
selector: selector:
matchLabels: matchLabels:
{{ include "harbor.matchLabels" . | indent 6 }} {{ include "harbor.matchLabels" . | indent 6 }}
component: database app: harbor-database
template: template:
metadata: metadata:
labels: labels:
{{ include "harbor.labels" . | indent 8 }} {{ include "harbor.labels" . | indent 8 }}
component: database app: harbor-database
spec: spec:
initContainers: initContainers:
- name: "remove-lost-found" - name: "remove-lost-found"
......
...@@ -10,5 +10,5 @@ spec: ...@@ -10,5 +10,5 @@ spec:
- port: 5432 - port: 5432
selector: selector:
{{ include "harbor.matchLabels" . | indent 4 }} {{ include "harbor.matchLabels" . | indent 4 }}
component: database app: harbor-database
{{- end -}} {{- end -}}
\ No newline at end of file
...@@ -4,18 +4,18 @@ metadata: ...@@ -4,18 +4,18 @@ metadata:
name: "{{ template "harbor.fullname" . }}-jobservice" name: "{{ template "harbor.fullname" . }}-jobservice"
labels: labels:
{{ include "harbor.labels" . | indent 4 }} {{ include "harbor.labels" . | indent 4 }}
component: jobservice app: harbor-jobservice
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
{{ include "harbor.matchLabels" . | indent 6 }} {{ include "harbor.matchLabels" . | indent 6 }}
component: jobservice app: harbor-jobservice
template: template:
metadata: metadata:
labels: labels:
{{ include "harbor.labels" . | indent 8 }} {{ include "harbor.labels" . | indent 8 }}
component: jobservice app: harbor-jobservice
spec: spec:
containers: containers:
- name: jobservice - name: jobservice
......
...@@ -10,4 +10,4 @@ spec: ...@@ -10,4 +10,4 @@ spec:
targetPort: 8080 targetPort: 8080
selector: selector:
{{ include "harbor.matchLabels" . | indent 4 }} {{ include "harbor.matchLabels" . | indent 4 }}
component: jobservice app: harbor-jobservice
...@@ -5,7 +5,7 @@ metadata: ...@@ -5,7 +5,7 @@ metadata:
name: {{ template "harbor.fullname" . }}-notary name: {{ template "harbor.fullname" . }}-notary
labels: labels:
{{ include "harbor.labels" . | indent 4 }} {{ include "harbor.labels" . | indent 4 }}
component: notary app: harbor-notary
data: data:
{{ $ca := genCA "harbor-notary-ca" 3650 }} {{ $ca := genCA "harbor-notary-ca" 3650 }}
{{ $cert := genSignedCert (printf "%s-notary-signer" (include "harbor.fullname" .)) nil nil 3650 $ca }} {{ $cert := genSignedCert (printf "%s-notary-signer" (include "harbor.fullname" .)) nil nil 3650 $ca }}
......
...@@ -5,18 +5,18 @@ metadata: ...@@ -5,18 +5,18 @@ metadata:
name: {{ template "harbor.fullname" . }}-notary-server name: {{ template "harbor.fullname" . }}-notary-server
labels: labels:
{{ include "harbor.labels" . | indent 4 }} {{ include "harbor.labels" . | indent 4 }}
component: notary-server app: harbor-notary-server
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
{{ include "harbor.matchLabels" . | indent 6 }} {{ include "harbor.matchLabels" . | indent 6 }}
component: notary-server app: harbor-notary-server
template: template:
metadata: metadata:
labels: labels:
{{ include "harbor.labels" . | indent 8 }} {{ include "harbor.labels" . | indent 8 }}
component: notary-server app: harbor-notary-server
spec: spec:
containers: containers:
- name: notary-server - name: notary-server
......
...@@ -5,18 +5,18 @@ metadata: ...@@ -5,18 +5,18 @@ metadata:
name: {{ template "harbor.fullname" . }}-notary-signer name: {{ template "harbor.fullname" . }}-notary-signer
labels: labels:
{{ include "harbor.labels" . | indent 4 }} {{ include "harbor.labels" . | indent 4 }}
component: notary-signer app: harbor-notary-signer
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
{{ include "harbor.matchLabels" . | indent 6 }} {{ include "harbor.matchLabels" . | indent 6 }}
component: notary-signer app: harbor-notary-signer
template: template:
metadata: metadata:
labels: labels:
{{ include "harbor.labels" . | indent 8 }} {{ include "harbor.labels" . | indent 8 }}
component: notary-signer app: harbor-notary-signer
spec: spec:
containers: containers:
- name: notary-signer - name: notary-signer
......
...@@ -10,7 +10,7 @@ spec: ...@@ -10,7 +10,7 @@ spec:
- port: 4443 - port: 4443
selector: selector:
{{ include "harbor.matchLabels" . | indent 4 }} {{ include "harbor.matchLabels" . | indent 4 }}
component: notary-server app: harbor-notary-server
--- ---
apiVersion: v1 apiVersion: v1
...@@ -24,5 +24,5 @@ spec: ...@@ -24,5 +24,5 @@ spec:
- port: 7899 - port: 7899
selector: selector:
{{ include "harbor.matchLabels" . | indent 4 }} {{ include "harbor.matchLabels" . | indent 4 }}
component: notary-signer app: harbor-notary-signer
{{ end }} {{ end }}
\ No newline at end of file
...@@ -5,14 +5,14 @@ metadata: ...@@ -5,14 +5,14 @@ metadata:
name: {{ template "harbor.fullname" . }}-redis name: {{ template "harbor.fullname" . }}-redis
labels: labels:
{{ include "harbor.labels" . | indent 4 }} {{ include "harbor.labels" . | indent 4 }}
component: redis app: harbor-redis
spec: spec:
replicas: 1 replicas: 1
template: template:
metadata: metadata:
labels: labels:
{{ include "harbor.labels" . | indent 8 }} {{ include "harbor.labels" . | indent 8 }}
component: redis app: harbor-redis
spec: spec:
containers: containers:
- name: redis - name: redis
......
...@@ -5,11 +5,11 @@ metadata: ...@@ -5,11 +5,11 @@ metadata:
name: {{ template "harbor.fullname" . }}-redis name: {{ template "harbor.fullname" . }}-redis
labels: labels:
{{ include "harbor.labels" . | indent 4 }} {{ include "harbor.labels" . | indent 4 }}
component: redis app: harbor-redis
spec: spec:
selector: selector:
{{ include "harbor.matchLabels" . | indent 4 }} {{ include "harbor.matchLabels" . | indent 4 }}
component: redis app: harbor-redis
ports: ports:
- name: redis - name: redis
port: 6379 port: 6379
\ No newline at end of file
...@@ -4,19 +4,19 @@ metadata: ...@@ -4,19 +4,19 @@ metadata:
name: "{{ template "harbor.fullname" . }}-registry" name: "{{ template "harbor.fullname" . }}-registry"
labels: labels:
{{ include "harbor.labels" . | indent 4 }} {{ include "harbor.labels" . | indent 4 }}
component: registry app: harbor-registry
spec: spec:
replicas: 1 replicas: 1
serviceName: "{{ template "harbor.fullname" . }}-registry" serviceName: "{{ template "harbor.fullname" . }}-registry"
selector: selector:
matchLabels: matchLabels:
{{ include "harbor.matchLabels" . | indent 6 }} {{ include "harbor.matchLabels" . | indent 6 }}
component: registry app: harbor-registry
template: template:
metadata: metadata:
labels: labels:
{{ include "harbor.labels" . | indent 8 }} {{ include "harbor.labels" . | indent 8 }}
component: registry app: harbor-registry
spec: spec:
containers: containers:
- name: registry - name: registry
......
...@@ -9,4 +9,4 @@ spec: ...@@ -9,4 +9,4 @@ spec:
- port: 5000 - port: 5000
selector: selector:
{{ include "harbor.matchLabels" . | indent 4 }} {{ include "harbor.matchLabels" . | indent 4 }}
component: registry app: harbor-registry
\ No newline at end of file \ No newline at end of file
...@@ -4,14 +4,14 @@ metadata: ...@@ -4,14 +4,14 @@ metadata:
name: "{{ template "harbor.fullname" . }}-ui" name: "{{ template "harbor.fullname" . }}-ui"
labels: labels:
{{ include "harbor.labels" . | indent 4 }} {{ include "harbor.labels" . | indent 4 }}
component: ui app: harbor-ui
spec: spec:
replicas: 1 replicas: 1
template: template:
metadata: metadata:
labels: labels:
{{ include "harbor.matchLabels" . | indent 8 }} {{ include "harbor.matchLabels" . | indent 8 }}
component: ui app: harbor-ui
spec: spec:
containers: containers:
- name: ui - name: ui
......
...@@ -10,4 +10,4 @@ spec: ...@@ -10,4 +10,4 @@ spec:
targetPort: 8080 targetPort: 8080
selector: selector:
{{ include "harbor.matchLabels" . | indent 4 }} {{ include "harbor.matchLabels" . | indent 4 }}
component: ui app: harbor-ui
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment