File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ apiVersion : apps/v1
2+ kind : Deployment
3+ metadata :
4+ name : trafficgen
5+ labels :
6+ app : trafficgen
7+ spec :
8+ replicas : 1
9+ selector :
10+ matchLabels :
11+ app : trafficgen
12+ template :
13+ metadata :
14+ labels :
15+ app : trafficgen
16+ spec :
17+ containers :
18+ - name : trafficgen
19+ image : REPLACE_WITH_YOUR_IMAGE:latest
20+ imagePullPolicy : IfNotPresent
21+ ports :
22+ - containerPort : 5000
23+ env :
24+ - name : TRAFFICGEN_MAX_JSON_BYTES
25+ value : " 1048576"
26+ - name : TRAFFICGEN_ENFORCE_HTTPS
27+ value : " "
28+ - name : TRAFFICGEN_TLS_CERT_FILE
29+ value : /tls/tls.crt
30+ - name : TRAFFICGEN_TLS_KEY_FILE
31+ value : /tls/tls.key
32+ volumeMounts :
33+ - name : tls-certs
34+ mountPath : /tls
35+ readOnly : true
36+ livenessProbe :
37+ httpGet :
38+ path : /api/health
39+ port : 5000
40+ initialDelaySeconds : 20
41+ periodSeconds : 15
42+ readinessProbe :
43+ httpGet :
44+ path : /api/health
45+ port : 5000
46+ initialDelaySeconds : 5
47+ periodSeconds : 10
48+ resources :
49+ requests :
50+ cpu : 100m
51+ memory : 128Mi
52+ limits :
53+ cpu : 500m
54+ memory : 512Mi
55+ volumes :
56+ - name : tls-certs
57+ secret :
58+ secretName : trafficgen-tls
59+ optional : true
60+ ---
61+ apiVersion : v1
62+ kind : Service
63+ metadata :
64+ name : trafficgen
65+ labels :
66+ app : trafficgen
67+ spec :
68+ type : ClusterIP
69+ selector :
70+ app : trafficgen
71+ ports :
72+ - name : http
73+ port : 5000
74+ targetPort : 5000
You can’t perform that action at this time.
0 commit comments