diff options
author | JingLu5 <lvjing5@huawei.com> | 2018-08-24 10:55:14 +0800 |
---|---|---|
committer | JingLu5 <lvjing5@huawei.com> | 2018-08-28 16:29:03 +0800 |
commit | 09f09a34328079f04d372ff5fb7faf9e180cc7e4 (patch) | |
tree | f5571bfb0c7d0cb9a51a555567e4a2ee535b7e52 /samples/services/modsecurity/yaml/manifest.template | |
parent | c7e0f161092e6affccf50e4faf59d6eef4f4314d (diff) |
Modsecurity as a service
JIRA: CLOVER-68
1. Add Dockerfile and related files to build clover's modsecurity Docekr container
2. Add mainfest to install the Modsecurity in kubernetes cluster
Change-Id: Ia92926e730c04720f931999d7ec30565ce9e54be
Signed-off-by: JingLu5 <lvjing5@huawei.com>
Diffstat (limited to 'samples/services/modsecurity/yaml/manifest.template')
-rw-r--r-- | samples/services/modsecurity/yaml/manifest.template | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/samples/services/modsecurity/yaml/manifest.template b/samples/services/modsecurity/yaml/manifest.template new file mode 100644 index 0000000..afeb9dc --- /dev/null +++ b/samples/services/modsecurity/yaml/manifest.template @@ -0,0 +1,38 @@ +--- +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + name: {{ deploy_name }} + 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 }} + labels: + app: {{ deploy_name }} +spec: + ports: + - port: {{ http_port }} + name: http-modsecurity-crs + targetPort: {{ http_port }} + selector: + app: {{ deploy_name }} +--- |