-
Notifications
You must be signed in to change notification settings - Fork 0
/
http-server.yaml
63 lines (63 loc) · 1.15 KB
/
http-server.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
apiVersion: v1
kind: Namespace
metadata:
name: http-server
---
apiVersion: v1
kind: ServiceAccount
metadata:
namespace: http-server
name: http-server
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: http-server
name: http-server
labels:
app: http-server
spec:
replicas: 2
selector:
matchLabels:
app: http-server
template:
metadata:
labels:
app: http-server
service-mesh: enabled
annotations:
diy-service-mesh/inject: "true"
spec:
serviceAccountName: http-server
automountServiceAccountToken: false
securityContext:
runAsNonRoot: true
runAsUser: 65534
runAsGroup: 65534
fsGroup: 65534
containers:
- name: http-server
image: diy-sm-http-server
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
env:
- name: VERSION
value: "1.0"
- name: FAIL_RATE
value: "0"
---
apiVersion: v1
kind: Service
metadata:
namespace: http-server
name: http-server
spec:
selector:
app: http-server
ports:
- protocol: TCP
port: 80
targetPort: 8080