forked from open-policy-agent/contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
36 lines (36 loc) · 941 Bytes
/
deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: image-enforcer
spec:
replicas: 1
template:
metadata:
labels:
app: image-enforcer
spec:
containers:
- name: clair-layer-sync
image: openpolicyagent/clair-layer-sync:0.1-dev
imagePullPolicy: Always
args:
- "-clair-url=http://clairsvc:6060/v1"
- "-repository=openpolicyagent/opa,openpolicyagent/clair-layer-sync,library/wordpress"
- name: opa
image: openpolicyagent/opa:0.4.9
args:
- "run"
- "--server"
- "--log-level=info"
- "/config/default.rego"
ports:
- name: http
containerPort: 8181
volumeMounts:
- readOnly: true
mountPath: /config
name: config
volumes:
- name: config
configMap:
name: image-enforcer