summaryrefslogtreecommitdiffstats
path: root/samples/services/modsecurity/yaml/manifest.template
blob: 2206e6d5e4fac5b9345245d5e5b94da59f137447 (plain)
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
37
38
39
40
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: {{ deploy_name }}
  namespace: {{ deploy_namespace }}
  labels:
    app: {{ deploy_name }}
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: {{ deploy_name }}
    spec:
      containers:
        - name: {{ deploy_name }}
          image: {{ image_path }}/{{ image_name }}:{{ image_tag }}
          ports:
           - containerPort: {{ http_port }}
          env:
            - name: PARANOIA
              value: {{ paranoia_level }}

---
apiVersion: v1
kind: Service
metadata:
  name: {{ deploy_name }}
  namespace: {{ deploy_namespace }}
  labels:
    app: {{ deploy_name }}
spec:
  ports:
  - port: {{ http_port }}
    name: http-modsecurity-crs
    targetPort: {{ http_port }}
  selector:
    app: {{ deploy_name }}
---