mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-26 04:23:22 +02:00
38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
|
{{ if .Values.clair.enabled }}
|
||
|
apiVersion: extensions/v1beta1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: {{ template "harbor.fullname" . }}-clair
|
||
|
labels:
|
||
|
{{ include "helm.labels" . | indent 4 }}
|
||
|
component: clair
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
{{ include "helm.labels" . | indent 8 }}
|
||
|
component: clair
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: clair
|
||
|
image: {{ .Values.clair.image.repository }}:{{ .Values.clair.image.tag }}
|
||
|
imagePullPolicy: {{ .Values.clair.image.pullPolicy }}
|
||
|
args: ["-insecure-tls", "-config", "/config/config.yaml"]
|
||
|
resources:
|
||
|
{{ toYaml .Values.clair.resources | indent 10 }}
|
||
|
ports:
|
||
|
- containerPort: 6060
|
||
|
volumeMounts:
|
||
|
- name: clair-config
|
||
|
mountPath: /config/config.yaml
|
||
|
subPath: config.yaml
|
||
|
volumes:
|
||
|
- name: clair-config
|
||
|
configMap:
|
||
|
name: "{{ template "harbor.fullname" . }}"
|
||
|
items:
|
||
|
- key: config.yaml
|
||
|
path: config.yaml
|
||
|
{{ end }}
|