mirror of https://github.com/goharbor/harbor.git
42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
{{ if .Values.notary.enabled }}
|
|
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ template "harbor.fullname" . }}-notary-signer
|
|
labels:
|
|
{{ include "harbor.labels" . | indent 4 }}
|
|
component: notary-signer
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
{{ include "harbor.matchLabels" . | indent 6 }}
|
|
component: notary-signer
|
|
template:
|
|
metadata:
|
|
labels:
|
|
{{ include "harbor.labels" . | indent 8 }}
|
|
component: notary-signer
|
|
spec:
|
|
containers:
|
|
- name: notary-signer
|
|
image: {{ .Values.notary.signer.image.repository }}:{{ .Values.notary.signer.image.tag }}
|
|
imagePullPolicy: {{ .Values.notary.signer.image.pullPolicy }}
|
|
resources:
|
|
{{ toYaml .Values.notary.signer.resources | indent 10 }}
|
|
env:
|
|
- name: MIGRATIONS_PATH
|
|
value: migrations/signer/postgresql
|
|
- name: DB_URL
|
|
value: {{ template "harbor.database.notarySigner" . }}
|
|
- name: NOTARY_SIGNER_DEFAULTALIAS
|
|
value: {{ .Values.notary.signer.env.NOTARY_SIGNER_DEFAULTALIAS }}
|
|
volumeMounts:
|
|
- name: notary-config
|
|
mountPath: /etc/notary
|
|
volumes:
|
|
- name: notary-config
|
|
configMap:
|
|
name: "{{ template "harbor.fullname" . }}-notary"
|
|
{{ end }}
|