-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhey-ho-tpl.yaml
48 lines (48 loc) · 911 Bytes
/
hey-ho-tpl.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: apps/v1
kind: Deployment
metadata:
labels:
part-of: hey-ho
app: ${NAME}
name: ${NAME}
spec:
replicas: ${REPLICAS}
selector:
matchLabels:
app: ${NAME}
template:
metadata:
labels:
part-of: hey-ho
app: ${NAME}
spec:
containers:
- name: hey-ho
image: quay.io/jotak/hey-ho:0.1
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
name: http
protocol: TCP
securityContext:
runAsNonRoot: true
runAsUser: ${RUN_AS_USER}
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
seccompProfile:
type: RuntimeDefault
---
apiVersion: v1
kind: Service
metadata:
name: ${NAME}
labels:
part-of: hey-ho
app: ${NAME}
spec:
ports:
- name: http
port: 8080
selector:
app: ${NAME}