mirror of https://github.com/goharbor/harbor.git
44 lines
1.4 KiB
YAML
44 lines
1.4 KiB
YAML
{{ if .Values.notary.enabled }}
|
|
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ template "harbor.fullname" . }}-notary-server
|
|
labels:
|
|
{{ include "harbor.labels" . | indent 4 }}
|
|
component: notary-server
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
{{ include "harbor.matchLabels" . | indent 6 }}
|
|
component: notary-server
|
|
template:
|
|
metadata:
|
|
labels:
|
|
{{ include "harbor.labels" . | indent 8 }}
|
|
component: notary-server
|
|
spec:
|
|
containers:
|
|
- name: notary-server
|
|
image: {{ .Values.notary.server.image.repository }}:{{ .Values.notary.server.image.tag }}
|
|
imagePullPolicy: {{ .Values.notary.server.image.pullPolicy }}
|
|
resources:
|
|
{{ toYaml .Values.notary.server.resources | indent 10 }}
|
|
env:
|
|
- name: DB_URL
|
|
value: "mysql://server:{{ .Values.notary.db.password }}@tcp({{ template "harbor.fullname" . }}-notary-db:3306)/notaryserver?parseTime=True"
|
|
volumeMounts:
|
|
- name: notary-config
|
|
mountPath: /etc/notary
|
|
- name: root-certificate
|
|
mountPath: /root.crt
|
|
subPath: root.crt
|
|
volumes:
|
|
- name: notary-config
|
|
configMap:
|
|
name: "{{ template "harbor.fullname" . }}-notary"
|
|
- name: root-certificate
|
|
secret:
|
|
secretName: "{{ template "harbor.fullname" . }}-registry"
|
|
{{ end }}
|