apiVersion: apps/v1 kind: Deployment metadata: name: clair namespace: quay spec: replicas: 1 selector: matchLabels: app: clair template: metadata: labels: app: clair spec: resources: requests: cpu: "250m" memory: "512Mi" limits: cpu: "3000m" memory: "4Gi" containers: - image: quay.io/projectquay/clair:4.7.2 name: clairv4 ports: - containerPort: 6060 name: endpoint protocol: TCP - containerPort: 8089 name: health protocol: TCP env: - name: CLAIR_CONF value: /clair/config.yaml - name: CLAIR_MODE value: combo volumeMounts: - mountPath: /clair/ name: clair # livenessProbe: # httpGet: # path: /health # port: 6061 # readinessProbe: # httpGet: # path: /health # port: 6061 nodeSelector: kubernetes.io/arch: amd64 volumes: - name: clair persistentVolumeClaim: claimName: clair-pvc --- apiVersion: v1 kind: Service metadata: name: clair namespace: quay spec: ports: - name: endpoint port: 6060 nodePort: 30081 protocol: TCP targetPort: 6060 - name: health port: 8089 nodePort: 30088 protocol: TCP targetPort: 8089 selector: app: clair type: NodePort status: loadBalancer: {}