This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/deploy/k8s/postgres-clair-deployment.yaml

44 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2019-11-12 16:09:47 +00:00
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: postgres-clair
name: postgres-clair
namespace: quay-enterprise
spec:
replicas: 1
selector:
matchLabels:
app: postgres-clair
template:
metadata:
labels:
app: postgres-clair
spec:
containers:
- env:
- name: POSTGRESQL_USER
# Set the username for the Clair postgres database (clair by default)
value: clair
- name: POSTGRESQL_DATABASE
# Set the name of the Clair postgres database
value: clair
- name: POSTGRESQL_PASSWORD
# Set the password for the Clair postgress user
value: test123
image: registry.access.redhat.com/rhscl/postgresql-10-rhel7:1-35
imagePullPolicy: IfNotPresent
name: postgres-clair
ports:
- containerPort: 5432
protocol: TCP
volumeMounts:
- mountPath: /var/lib/pgsql/data
name: postgredb
serviceAccount: postgres
serviceAccountName: postgres
volumes:
- name: postgredb
persistentVolumeClaim:
claimName: postgres-clair-storage