forked from italia/daf-dataportal-public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdaf-publicdata.yaml
48 lines (48 loc) · 974 Bytes
/
daf-publicdata.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
37
38
39
40
41
42
43
44
45
46
47
48
apiVersion: v1
kind: Service
metadata:
name: publicdata
labels:
app: publicdata
spec:
ports:
- port: 5000
selector:
app: publicdata
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: publicdata-deployment
spec:
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
app: publicdata
spec:
containers:
- name: publicdata
image: 10.98.74.120:5000/publicdata:1.0
imagePullPolicy: Always
lifecycle:
postStart:
exec:
command: ["/bin/sh", "-c", "cat /etc/extra_hosts >> /etc/hosts"]
ports:
- name: client
containerPort: 5000
securityContext:
privileged: true
runAsUser: 0
volumeMounts:
- name: hosts
mountPath: /etc/extra_hosts
imagePullSecrets:
- name: regsecret
volumes:
- name: hosts
hostPath:
path: /etc/hosts